Skip to content

Commit 04d5509

Browse files
committed
Initialize devcontainer.json
1 parent ac9acea commit 04d5509

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.devcontainer/devcontainer.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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": "Node.js & TypeScript",
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+
// Features to add to the dev container. More info: https://containers.dev/features.
8+
"features": {
9+
"ghcr.io/eitsupi/devcontainer-features/nushell:0": {}
10+
},
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
"forwardPorts": [
13+
3000
14+
],
15+
// Use 'postCreateCommand' to run commands after the container is created.
16+
"onCreateCommand": "pnpm self-update",
17+
"postCreateCommand": "pnpm install --config.confirmModulesPurge=false",
18+
// "postStartCommand": "pnpm dev",
19+
20+
// Configure tool-specific properties.
21+
"customizations": {
22+
"jetbrains": {
23+
"backend": "Rider",
24+
}
25+
},
26+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
27+
// "remoteUser": "root"
28+
}

package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,14 @@
4242
"typescript": "^5.7.2",
4343
"vue-tsc": "^2.1.10"
4444
},
45-
"packageManager": "[email protected]"
45+
"packageManager": "[email protected]",
46+
"pnpm": {
47+
"onlyBuiltDependencies": [
48+
"@parcel/watcher",
49+
"core-js",
50+
"esbuild",
51+
"sharp",
52+
"vue-demi"
53+
]
54+
}
4655
}

0 commit comments

Comments
 (0)