ci(gh): add .devcontainer for GitHub Codespaces

This commit is contained in:
Amruth Pillai
2022-03-24 09:16:54 +00:00
committed by GitHub
parent c95efee8ec
commit 786937f847
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "16-bullseye" }
},
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "lokalise.i18n-ally"],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 3100, 3200, 5432],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pnpm install",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}