Files

137 lines
3.8 KiB
JSON

// SPDX-FileCopyrightText: 2024-2026 Jonah Aragon and the Privacy Guides contributors
// SPDX-License-Identifier: MIT
{
"name": "Privacy Guides",
"build": {
"dockerfile": "../Dockerfile",
"context": ".."
},
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "24"
}
},
"overrideCommand": true,
"portsAttributes": {
"1337": {
"label": "Website Live Preview",
"onAutoForward": "notify"
},
"8000": {
"label": "Main",
"onAutoForward": "silent"
},
"8001": {
"label": "Articles",
"onAutoForward": "silent"
}
},
"otherPortsAttributes": {
"onAutoForward": "ignore"
},
"mounts": [
"source=${env:HOME}${env:USERPROFILE}/.config,target=/root/.config,type=bind"
],
"onCreateCommand": "npm install -g all-contributors-cli",
"updateContentCommand": "git submodule update --init theme/assets/brand",
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/opt/venv/bin/python",
"python.terminal.activateEnvironment": true,
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Build development blog",
"type": "shell",
"command": "./run.sh --blog serve --dev-addr=localhost:8001",
"group": "test",
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"reveal": "always",
"panel": "dedicated",
"group": "Live server"
}
},
{
"label": "Build development website",
"type": "shell",
"command": "./run.sh serve",
"group": "test",
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"reveal": "always",
"panel": "dedicated",
"group": "Live server",
"focus": true
}
},
{
"label": "Build production website",
"type": "shell",
"command": "./run.sh build",
"options": { "env": { "BUILD_CONTEXT": "production" } },
"group": "build"
},
{
"label": "Build production blog",
"type": "shell",
"command": "./run.sh --blog build --dev-addr=localhost:8001",
"options": { "env": { "BUILD_CONTEXT": "production" } },
"group": "build"
},
{
"label": "Caddy",
"type": "shell",
"command": "caddy run --config .devcontainer/Caddyfile",
"group": "test",
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"reveal": "never",
"panel": "dedicated"
}
}
]
}
},
"extensions": [
"EditorConfig.EditorConfig",
"rvben.rumdl",
"wholroyd.jinja",
"mikestead.dotenv",
"redhat.vscode-yaml",
"ecmel.vscode-html-css",
"yzhang.markdown-all-in-one",
"bierner.markdown-checkbox",
"bierner.markdown-emoji",
"bierner.markdown-footnotes",
"bierner.markdown-preview-github-styles",
"esbenp.prettier-vscode",
"ltex-plus.vscode-ltex-plus",
"ms-python.python",
"ms-python.vscode-python-envs",
"github.vscode-github-actions",
"matthewpi.caddyfile-support",
"ms-vsliveshare.vsliveshare"
]
},
"codespaces": {
"repositories": {
"privacyguides/brand": {
"permissions": {
"content": "read"
}
}
}
}
}
}