From e7172eda90c9dd2032bfd362c7b38ae80d70da39 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 20 May 2023 03:49:48 -0400 Subject: add devcontainer --- .devcontainer/devcontainer.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..7ec99b2 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,39 @@ +{ + "image": "ghcr.io/cachix/devenv:latest", + "waitFor": "onCreateCommand", + + "updateContentCommand": "pnpm install", + "postCreateCommand": "", + "postAttachCommand": { + "serve": "pnpm dev" + }, + + "customizations": { + "vscode": { + "extensions": [ + "astro-build.astro-vscode", + "mkhl.direnv", + "editorconfig.editorconfig", + "dbaeumer.vscode-eslint", + "github.vscode-github-actions", + "me-dutour-mathieu.vscode-github-actions", + "ecmel.vscode-html-css", + "ms-vscode.vscode-typescript-next", + "bierner.lit-html", + "esbenp.prettier-vscode", + "rvest.vs-code-prettier-eslint", + "syler.sass-indented", + "bradlc.vscode-tailwindcss" + ] + } + }, + + "portsAttributes": { + "3000": { + "label": "website", + "onAutoForward": "openPreview" + } + }, + + "forwardPorts": [3000] +} -- cgit v1.2.3