zero_friction / .devcontainer /devcontainer.json
Ming Wang
chore: upgrade codespace to 8 cpu 16gb ram
0c1bfbb
Raw History Blame Contribute Delete
1.22 kB
{
"name": "PulseFabric Monitor",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"forwardPorts": [4200, 3000],
"portsAttributes": {
"4200": { "label": "Angular Frontend", "onAutoForward": "notify" },
"3000": { "label": "JSON Server API", "onAutoForward": "notify" }
},
"hostRequirements": {
"cpus": 8,
"memory": "16gb"
},
"updateContentCommand": "npm install -g @angular/cli && cd frontend && npm ci --prefer-offline --no-audit && cd ../backend && npm ci --prefer-offline --no-audit || true",
"postCreateCommand": "git checkout -b feat/$(echo $GITHUB_USER)-$(date +%Y%m%d-%H%M%S)",
"postStartCommand": "cd /workspaces/Zero-friction && git pull origin main && cd frontend && npm ci --prefer-offline --no-audit && cd ../backend && npm ci --prefer-offline --no-audit || true",
"customizations": {
"vscode": {
"extensions": [
"Angular.ng-template",
"GitHub.copilot",
"GitHub.copilot-chat",
"dbaeumer.vscode-eslint"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"git.branchProtection": ["main"],
"git.branchProtectionPrompt": "alwaysCommitToNewBranch"
}
}
}
}