Skip to content

Commit aa2a408

Browse files
Add devcontainer used to run tests with node 18.x
1 parent 2605d8c commit aa2a408

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// For format details, see
2+
// https://aka.ms/devcontainer.json.
3+
// For config options, see:
4+
// https://github.com/devcontainers/templates/tree/main/src/typescript-node
5+
{
6+
"name": "studio-dev",
7+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-bullseye",
8+
"postCreateCommand": "npm install",
9+
"customizations": {
10+
"vscode": {
11+
"extensions": ["ms-vscode-remote.remote-containers", "ms-vscode.vscode-typescript-next", "esbenp.prettier-vscode", "Orta.vscode-jest"]
12+
}
13+
},
14+
"portsAttributes": {
15+
"80": {
16+
"label": "Application",
17+
"onAutoForward": "openBrowserOnce"
18+
},
19+
"3000": {
20+
"label": "Application",
21+
"onAutoForward": "openBrowserOnce"
22+
},
23+
"6006": {
24+
"label": "Storybook",
25+
"onAutoForward": "openBrowserOnce"
26+
}
27+
},
28+
"forwardPorts": [80, 3000, 6006]
29+
}

0 commit comments

Comments
 (0)