1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Update onCreateCommand to install Copilot CLI

This commit is contained in:
hubwriter
2025-09-19 14:16:27 +01:00
committed by GitHub
parent d02ff172db
commit 281e1943e2

View File

@@ -59,9 +59,11 @@
},
// Lifecycle commands
"onCreateCommand": "npm ci",
// Install dependencies then install Copilot CLI
"onCreateCommand": "npm ci && npm config set \"//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\" && npm config set \"@github:registry=https://npm.pkg.github.com/\" && npm install -g @github/copilot",
// Start a web server and keep it running
"postStartCommand": "nohup bash -c 'npm start &'",
// Set the port to be public
// Set port 4000 to be public
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.