This commit is contained in:
Fuxing Loh 2026-05-30 08:55:03 -07:00 committed by GitHub
commit 94463bb138
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 37 additions and 0 deletions

8
.devcontainer/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm
ENV BUN_INSTALL=/usr/local/bun
RUN set -eux; \
curl -fsSL https://bun.sh/install | bash; \
ln -sf /usr/local/bun/bin/bun /usr/local/bin/bun; \
ln -sf /usr/local/bun/bin/bunx /usr/local/bin/bunx

View File

@ -0,0 +1,14 @@
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"customizations": {
"vscode": {
"extensions": ["oven.bun-vscode"]
}
},
"postCreateCommand": "bun install --frozen-lockfile && bash ./.devcontainer/setup-gstack.sh",
"remoteUser": "node"
}

15
.devcontainer/setup-gstack.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
SKILL_DIR="$HOME/.claude/skills"
mkdir -p "$SKILL_DIR"
target="$SKILL_DIR"
# Copy repo contents into ~/.claude/skills without deleting existing files.
cp -a "$REPO_ROOT"/. "$target"/
echo "Skill directory: $SKILL_DIR"
echo "Copied project root into: $target"