-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer.json
More file actions
52 lines (52 loc) · 1.59 KB
/
.devcontainer.json
File metadata and controls
52 lines (52 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/typescript-node
{
"name": "openhomefoundation/sotoh.openhomefoundation.org",
"image": "mcr.microsoft.com/devcontainers/typescript-node:22-bookworm",
"forwardPorts": [
4321
],
"portsAttributes": {
"4321": {
"label": "Preview"
}
},
// Add the IDs of extensions you want installed when the container is created.
"customizations": {
"vscode": {
"extensions": [
"astro-build.astro-vscode",
"vunguyentuan.vscode-css-variables",
"esbenp.prettier-vscode",
"yzhang.markdown-all-in-one",
"davidanson.vscode-markdownlint",
"jock.svg",
"Gruntfuggly.todo-tree"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true
}
}
},
"mounts": [
"source=claude-config,target=/home/node/.claude,type=volume"
],
"remoteEnv": {
"CLAUDE_CONFIG_DIR": "/home/node/.claude"
},
"postCreateCommand": "npm install && curl -fsSL https://claude.ai/install.sh | bash && sudo chown -R node:node /home/node/.claude",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// moved settings under customizations.vscode.settings
}