Skip to content

Commit fa99f99

Browse files
authored
set up a devcontainer configuration
1 parent dc43239 commit fa99f99

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.devcontainer/devcontainer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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/javascript-node
3+
{
4+
"name": "Node.js",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {
10+
"ghcr.io/devcontainers/features/github-cli:1": {},
11+
"ghcr.io/devcontainers-extra/features/prettier:1": {}
12+
},
13+
14+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15+
// "forwardPorts": [],
16+
17+
// Use 'postCreateCommand' to run commands after the container is created.
18+
// "postCreateCommand": "yarn install",
19+
"postCreateCommand": "npm ci",
20+
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
"vscode": {
24+
"extensions": [
25+
"christian-kohler.npm-intellisense",
26+
"dbaeumer.vscode-eslint",
27+
"esbenp.prettier-vscode"
28+
]
29+
}
30+
}
31+
32+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
33+
// "remoteUser": "root"
34+
}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ If you intend on reporting or contributing a fix related to security vulnerabili
9696

9797
## Development
9898

99+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/badges/shields?quickstart=1)
100+
99101
1. Install Node 20 or later. You can use the [package manager][] of your choice.
100102
Tests need to pass in Node 20 and 22.
101103
2. Clone this repository.

0 commit comments

Comments
 (0)