mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
f0df663c90
Add a development container for contributors and document how to use it. - Add .devcontainer/devcontainer.json - Add .devcontainer/Dockerfile - Update docs/CONTRIBUTING.md with Dev Container section - devcontainer.json parses successfully and opens in vscode without issues - all build.sh variants, recommended tools & lint/typecheck run without issues Closes #499
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"name": "headplane",
|
|
"build": {
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
|
"upgradePackages": true,
|
|
"username": "vscode"
|
|
},
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"nodeGypDependencies": true,
|
|
"version": "22.18"
|
|
},
|
|
"ghcr.io/devcontainers/features/go:1": {
|
|
"version": "1.25.1"
|
|
},
|
|
"ghcr.io/devcontainers/features/nix:1": {
|
|
"extraNixConfig": "experimental-features = nix-command flakes,accept-flake-config = true"
|
|
}
|
|
},
|
|
"containerEnv": {
|
|
"COREPACK_ENABLE_DOWNLOAD_PROMPT": "0"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode",
|
|
"golang.go",
|
|
"ms-azuretools.vscode-docker",
|
|
"ms-vscode.vscode-typescript-next"
|
|
],
|
|
"settings": {
|
|
"editor.formatOnSave": true,
|
|
"go.useLanguageServer": true
|
|
}
|
|
}
|
|
},
|
|
"forwardPorts": [3000, 5173],
|
|
"postCreateCommand": "pnpm config set store-dir $HOME/.pnpm-store --global && pnpm install",
|
|
"remoteUser": "vscode",
|
|
"updateRemoteUserUID": true
|
|
}
|