feat: tested & refined devcontainer

This commit is contained in:
Waleed Latif
2025-03-04 10:40:40 -08:00
parent 3470036a40
commit d309176c5e
4 changed files with 87 additions and 27 deletions

View File

@@ -17,7 +17,15 @@
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash",
"args": ["--login"]
}
},
"terminal.integrated.shellIntegration.enabled": true
},
"extensions": [
"dbaeumer.vscode-eslint",
@@ -36,13 +44,15 @@
"forwardPorts": [3000, 5432],
"postCreateCommand": "sh .devcontainer/post-create.sh",
"postCreateCommand": "bash -c 'bash .devcontainer/post-create.sh || true'",
"postStartCommand": "bash -c 'if [ ! -f ~/.bashrc ] || ! grep -q \"sim-start\" ~/.bashrc; then cp .devcontainer/.bashrc ~/.bashrc; fi'",
"remoteUser": "node",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
"version": "20"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers-contrib/features/npm-package:1": {