Skip to content

Commit fb65f97

Browse files
committed
build(codespaces): add devcontainer.json
1 parent d1fb425 commit fb65f97

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
3+
{
4+
"name": "Node.js",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
11+
// Configure tool-specific properties.
12+
"customizations": {
13+
// Configure properties specific to VS Code.
14+
"vscode": {
15+
"settings": {
16+
"workbench.colorTheme": "Visual Studio Dark",
17+
"workbench.iconTheme": "material-icon-theme"
18+
},
19+
"extensions": [
20+
"bierner.markdown-preview-github-styles",
21+
"dbaeumer.vscode-eslint",
22+
"eamodio.gitlens",
23+
"EditorConfig.EditorConfig",
24+
"esbenp.prettier-vscode",
25+
"pkief.material-icon-theme",
26+
"streetsidesoftware.code-spell-checker",
27+
"yzhang.markdown-all-in-one"
28+
]
29+
}
30+
},
31+
32+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33+
// "forwardPorts": [3000],
34+
35+
// Use 'portsAttributes' to set default properties for specific forwarded ports.
36+
// More info: https://containers.dev/implementors/json_reference/#port-attributes
37+
// "portsAttributes": {
38+
// "3000": {
39+
// "label": "Hello Remote World",
40+
// "onAutoForward": "notify"
41+
// }
42+
// },
43+
44+
// Use 'postCreateCommand' to run commands after the container is created.
45+
"postCreateCommand": "yarn install"
46+
47+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
48+
// "remoteUser": "root"
49+
}

0 commit comments

Comments
 (0)