Skip to content

Commit 6cec45e

Browse files
authored
chore: add github codespace config (#355)
1 parent ce26073 commit 6cec45e

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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/typescript-node
3+
{
4+
"name": "nolebase-integrations",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-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-contrib/features/pnpm:2": {}
11+
},
12+
13+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14+
"forwardPorts": [5173, 4173],
15+
"portsAttributes": {
16+
"5173": {
17+
"label": "dev port"
18+
},
19+
"4173": {
20+
"label": "build port"
21+
}
22+
},
23+
24+
// Use 'postCreateCommand' to run commands after the container is created.
25+
"postCreateCommand": "pnpm i",
26+
// "postStartCommand": "pnpm docs:dev",
27+
28+
// Configure tool-specific properties.
29+
"customizations": {
30+
"vscode": {
31+
// Set *default* container specific settings.json values on container create.
32+
"extensions": [
33+
"streetsidesoftware.code-spell-checker",
34+
"mikestead.dotenv",
35+
"EditorConfig.EditorConfig",
36+
"usernamehw.errorlens",
37+
"dbaeumer.vscode-eslint",
38+
"antfu.goto-alias",
39+
"lokalise.i18n-ally",
40+
"antfu.iconify",
41+
"yzhang.markdown-all-in-one",
42+
"antfu.unocss",
43+
"Vue.volar",
44+
"vitest.explorer",
45+
"redhat.vscode-yaml"
46+
]
47+
},
48+
"codespaces": {
49+
"openFiles": [
50+
"./README.md"
51+
]
52+
}
53+
}
54+
55+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
56+
// "remoteUser": "root"
57+
}

0 commit comments

Comments
 (0)