Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Commit f5c1901

Browse files
committed
devcontainer (codespace config)
1 parent 951d042 commit f5c1901

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"hostRequirements": {
4+
"cpus": 4
5+
},
6+
"waitFor": "onCreateCommand",
7+
"updateContentCommand": "npm install",
8+
"postCreateCommand": "",
9+
"postAttachCommand": {
10+
"server": "npm start"
11+
},
12+
"customizations": {
13+
"codespaces": {
14+
"openFiles": [
15+
"src/App.jsx"
16+
]
17+
}
18+
},
19+
"portsAttributes": {
20+
"3000": {
21+
"label": "Application",
22+
"onAutoForward": "openPreview"
23+
}
24+
},
25+
"forwardPorts": [3000]
26+
}

.devcontainer/icon.svg

Lines changed: 9 additions & 0 deletions
Loading

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run application",
6+
"type": "node",
7+
"request": "launch",
8+
"cwd": "${workspaceFolder}",
9+
"console": "integratedTerminal",
10+
"runtimeExecutable": "npm",
11+
"runtimeArgs": [
12+
"run-script",
13+
"start"
14+
],
15+
"skipFiles": [
16+
"<node_internals>/**"
17+
]
18+
}
19+
]
20+
}

jsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node"
4+
}
5+
}

0 commit comments

Comments
 (0)