-
Notifications
You must be signed in to change notification settings - Fork 25
/
.devcontainer.json
50 lines (50 loc) · 1.4 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:18",
"containerEnv": {
"DATA_WORKSPACE": "/workspaces/data"
},
"remoteEnv": {
"VITE_BUNDLE_HOST": "https://${localEnv:CODESPACE_NAME}-5173.${localEnv:GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}/bundle",
"VITE_BUNDLE_SSE": "true"
},
"onCreateCommand": "rm -rf web && git clone https://github.com/pi-base/web.git && cd web && pnpm install && pnpm run --filter core build",
"postAttachCommand": {
"viewer": "cd web && pnpm run --filter viewer dev --host --open",
"compile": "cd web && pnpm run --filter compile dev",
"core": "cd web && pnpm run --filter core dev",
// See https://github.com/orgs/community/discussions/4068
"publicize": "gh codespace ports visibility 3141:public -c $CODESPACE_NAME"
},
"forwardPorts": [3141, 5173],
"portsAttributes": {
"3141": {
"label": "compile"
},
"5173": {
"label": "viewer"
}
},
"customizations": {
"codespaces": {
"openFiles": [
"codespace-welcome.md"
]
},
"vscode": {
"extensions": [
"pi-base.pi-base"
],
"settings": {
"workbench.editorAssociations": {
"codespace-welcome.md": "vscode.markdown.preview.editor"
},
"files.exclude": {
"web": true
}
}
}
},
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
}
}