Skip to content

Commit a973733

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

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.devcontainer/devcontainer.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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": "Default 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+
"firsttris.vscode-jest-runner",
26+
"pkief.material-icon-theme",
27+
"streetsidesoftware.code-spell-checker",
28+
"yzhang.markdown-all-in-one"
29+
]
30+
}
31+
},
32+
33+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
34+
// "forwardPorts": [3000],
35+
36+
// Use 'portsAttributes' to set default properties for specific forwarded ports.
37+
// More info: https://containers.dev/implementors/json_reference/#port-attributes
38+
// "portsAttributes": {
39+
// "3000": {
40+
// "label": "Hello Remote World",
41+
// "onAutoForward": "notify"
42+
// }
43+
// },
44+
45+
// Use 'postCreateCommand' to run commands after the container is created.
46+
"postCreateCommand": "yarn install"
47+
48+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
49+
// "remoteUser": "root"
50+
}

cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"tsconfig.tsbuildinfo",
1010
"package.json",
1111
"yarn.lock",
12+
"devcontainer.json",
1213
".gitpod.yml",
1314
"*.tgz"
1415
],

0 commit comments

Comments
 (0)