1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

build: creates a devcontainer configuration for contributors (#10937)

* set up a devcontainer configuration

* also install postgresql for that part of the CONTRIBUTING guidance

* set up a devcontainer configuration

* also install postgresql for that part of the CONTRIBUTING guidance

* forgot to revert node 22 to node 20

* slim down devcontainer file
This commit is contained in:
Ari Kalfus 2025-03-12 13:54:34 -04:00 committed by GitHub
parent 4eb5d9a7ac
commit 9b91a60c75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{
"name": "Node.js",
// "Officially" maintained node devcontainer image from Microsoft
// https://github.com/devcontainers/templates/tree/main/src/javascript-node
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm ci"
}

View File

@ -96,6 +96,8 @@ If you intend on reporting or contributing a fix related to security vulnerabili
## Development
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/badges/shields?quickstart=1)
1. Install Node 20 or later. You can use the [package manager][] of your choice.
Tests need to pass in Node 20 and 22.
2. Clone this repository.