Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b440860

Browse files
authoredOct 17, 2023
build: Add support for GitHub Codespaces (#609)
1 parent ba5760e commit b440860

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed
 

‎.devcontainer/devcontainer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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-20-bullseye",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {},
10+
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "npm install",
16+
"customizations": {
17+
"vscode": {
18+
"extensions": [
19+
"esbenp.prettier-vscode",
20+
"streetsidesoftware.code-spell-checker"
21+
]
22+
}
23+
},
24+
"portsAttributes": {
25+
"6006": {
26+
"label": "Storybook",
27+
"onAutoForward": "notify"
28+
}
29+
}
30+
31+
// Configure tool-specific properties.
32+
// "customizations": {},
33+
34+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
35+
// "remoteUser": "root"
36+
}

‎.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"cSpell.words": ["combobox", "cssprop", "noopener", "noreferrer", "Umbraco"]
2+
"cSpell.words": ["combobox", "cssprop", "noopener", "noreferrer", "Umbraco"],
3+
"npm.enableRunFromFolder": true
34
}

‎.vscode/tasks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "build",
7+
"group": {
8+
"kind": "build",
9+
"isDefault": true
10+
},
11+
"problemMatcher": [],
12+
"label": "npm: build",
13+
"detail": "Builds each package"
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)
Please sign in to comment.