generated from abernier/tpl-react-three
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
31 lines (31 loc) · 879 Bytes
/
devcontainer.json
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
{
//
// devcontainer: https://containers.dev/implementors/json_reference/
//
// this is inspired from https://youtu.be/AYRxDoUxcfQ?t=1103s (see: https://github.com/github/codespaces-preact/blob/782235cc78702dc2a46a6906979356b51ac269d5/.devcontainer/devcontainer.json)
//
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:22",
// "hostRequirements": {
// "cpus": 4
// },
"waitFor": "onCreateCommand",
"updateContentCommand": "npm ci",
"postCreateCommand": "",
"postAttachCommand": "npm run dev -- --port 5173",
"customizations": {
"codespaces": {
"openFiles": ["src/App.tsx"]
},
"vscode": {
"settings": {},
"extensions": ["dbaeumer.vscode-eslint"]
}
},
"portsAttributes": {
"5173": {
"label": "Vite dev server",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [5173]
}