Skip to content

Commit e3fed64

Browse files
authored
Add devcontainer for Codespaces support
Add `.devcontainer/devcontainer.json` using the Node 22 dev container image. Post-create runs `npm ci`. Includes Biome and TypeScript Next VS Code extensions with format-on-save. Add Open in GitHub Codespaces badge to README. Closes #12
1 parent 656ba01 commit e3fed64

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "OpenDecree TypeScript SDK",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
4+
"postCreateCommand": "npm ci",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"biomejs.biome",
9+
"ms-vscode.vscode-typescript-next"
10+
],
11+
"settings": {
12+
"editor.defaultFormatter": "biomejs.biome",
13+
"editor.formatOnSave": true
14+
}
15+
}
16+
},
17+
"forwardPorts": []
18+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![License](https://img.shields.io/github/license/opendecree/decree-typescript)](LICENSE)
88
[![Project Status: WIP](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
99
[![codecov](https://codecov.io/gh/opendecree/decree-typescript/graph/badge.svg)](https://codecov.io/gh/opendecree/decree-typescript)
10+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/opendecree/decree-typescript)
1011

1112
TypeScript SDK for [OpenDecree](https://github.com/opendecree/decree) -- schema-driven configuration management.
1213

0 commit comments

Comments
 (0)