Skip to content

Commit 6ac46ed

Browse files
feat: try add devcontainer
fix ast-grep#39
1 parent e42dcbf commit 6ac46ed

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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:1-22-bookworm",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {
10+
// "ghcr.io/devcontainers/features/go:1": {}
11+
// },
12+
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
// "forwardPorts": [],
15+
16+
// Use 'postCreateCommand' to run commands after the container is created.
17+
"postCreateCommand": {
18+
"Configure Build Tools": "npm install -g pnpm"
19+
},
20+
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
"vscode": {
24+
"settings": {
25+
"terminal.integrated.defaultProfile.linux": "bash",
26+
"terminal.integrated.profiles.linux": {
27+
"bash": {
28+
"path": "/bin/bash",
29+
"icon": "terminal-bash"
30+
}
31+
}
32+
},
33+
"extensions": [
34+
"dbaeumer.vscode-eslint",
35+
"dprint.dprint"
36+
]
37+
}
38+
},
39+
40+
// More info: https://aka.ms/dev-containers-non-root.
41+
"remoteUser": "node"
42+
}

0 commit comments

Comments
 (0)