From 3ff65a734f3010511b40d219340306212ae68fcb Mon Sep 17 00:00:00 2001 From: Kenneth Date: Sat, 13 Sep 2025 22:25:29 +0000 Subject: [PATCH] chore: add devcontainer file Co-authored-by: Ona --- .devcontainer/devcontainer.json | 61 +++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..56983ce --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,61 @@ +{ + "name": "React + Bun + Convex Development", + "image": "mcr.microsoft.com/devcontainers/javascript-node:24", + "features": { + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "moby": false + } + }, + "postCreateCommand": "curl -fsSL https://bun.sh/install | bash && source ~/.bashrc && bun install", + "customizations": { + "vscode": { + "extensions": [ + "biomejs.biome", + "bradlc.vscode-tailwindcss", + "ms-vscode.vscode-typescript-next", + "esbenp.prettier-vscode", + "ms-vscode.vscode-json", + "formulahendry.auto-rename-tag", + "christian-kohler.path-intellisense", + "ms-vscode.vscode-eslint", + "convex.convex-vscode" + ], + "settings": { + "editor.defaultFormatter": "biomejs.biome", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit", + "source.fixAll": "explicit" + }, + "typescript.preferences.importModuleSpecifier": "relative", + "typescript.suggest.autoImports": true, + "emmet.includeLanguages": { + "typescript": "html", + "typescriptreact": "html" + }, + "tailwindCSS.experimental.classRegex": [ + ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], + ["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] + ] + } + } + }, + "forwardPorts": [3000, 5173, 8080], + "portsAttributes": { + "3000": { + "label": "Development Server", + "onAutoForward": "notify" + }, + "5173": { + "label": "Vite Dev Server", + "onAutoForward": "notify" + }, + "8080": { + "label": "Preview Server", + "onAutoForward": "notify" + } + }, + "remoteUser": "node" +}