From 2004c580a3bc3498cd937c818a55696a05c14579 Mon Sep 17 00:00:00 2001 From: zeevdr Date: Wed, 3 Jun 2026 13:05:09 +0300 Subject: [PATCH] feat: add devcontainer for Codespaces support Adds .devcontainer/devcontainer.json using the official Node 22 dev container image. Post-create runs npm ci so the environment is ready immediately. Configures Biome and the TypeScript Next extensions with format-on-save. Adds the Open in GitHub Codespaces badge to README. Closes #12 Co-Authored-By: Claude Sonnet 4.6 --- .devcontainer/devcontainer.json | 18 ++++++++++++++++++ README.md | 1 + 2 files changed, 19 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..4314f68 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "name": "OpenDecree TypeScript SDK", + "image": "mcr.microsoft.com/devcontainers/javascript-node:22", + "postCreateCommand": "npm ci", + "customizations": { + "vscode": { + "extensions": [ + "biomejs.biome", + "ms-vscode.vscode-typescript-next" + ], + "settings": { + "editor.defaultFormatter": "biomejs.biome", + "editor.formatOnSave": true + } + } + }, + "forwardPorts": [] +} diff --git a/README.md b/README.md index 9ba666a..d84d653 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [![License](https://img.shields.io/github/license/opendecree/decree-typescript)](LICENSE) [![Project Status: WIP](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip) [![codecov](https://codecov.io/gh/opendecree/decree-typescript/graph/badge.svg)](https://codecov.io/gh/opendecree/decree-typescript) +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/opendecree/decree-typescript) TypeScript SDK for [OpenDecree](https://github.com/opendecree/decree) -- schema-driven configuration management.