From 1eb6c534d890f15d0c0b16e9ce4354bea8ed046c Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 25 May 2026 17:14:44 +0530 Subject: [PATCH] feat: add local install hook --- .devcontainer/devcontainer.json | 3 +-- .devcontainer/scripts/post-create.sh | 8 ++++++++ .gitignore | 2 +- .vscode/launch.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f029d73..f9edc8e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -63,8 +63,7 @@ "ms-python.debugpy", "ms-azuretools.vscode-docker", "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode", - "bradlc.vscode-tailwindcss" + "esbenp.prettier-vscode" ] } } diff --git a/.devcontainer/scripts/post-create.sh b/.devcontainer/scripts/post-create.sh index 835fce4..00d02bc 100755 --- a/.devcontainer/scripts/post-create.sh +++ b/.devcontainer/scripts/post-create.sh @@ -116,4 +116,12 @@ wait "$ui_pid" || fail "npm ci ui" wait "$ts_pid" || fail "npm ci ts_validator" step_done +# Optional personal hook: gitignored script for per-developer tools (e.g. +# claude, codex, etc.). Runs only if present; safe to omit. +LOCAL_HOOK="$ROOT_DIR/.devcontainer/install.local.sh" +if [[ -f "$LOCAL_HOOK" ]]; then + printf '\n==> Running local install hook (%s)\n' "$LOCAL_HOOK" + bash "$LOCAL_HOOK" +fi + printf '\nDevcontainer bootstrap complete in %ds.\n' "$((SECONDS - SCRIPT_START))" diff --git a/.gitignore b/.gitignore index 4dedc77..e4ccaf3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ infrastructure/ prd/ .vercel -api/.env.devcontainer +.devcontainer/install.local.sh venv/ .venv/ .playwright-mcp diff --git a/.vscode/launch.json b/.vscode/launch.json index 24b2291..8493ec6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,7 +4,7 @@ // - Python interpreter selected in VS Code (devcontainer sets this // automatically; otherwise pick `./venv/bin/python` via the // "Python: Select Interpreter" command). -// - api/.env exists (copy from api/.env.example, or api/.env.devcontainer +// - api/.env exists (copy from api/.env.example // is created automatically by the devcontainer post-create script). // - api/.env.test exists for the test configurations (copy from // api/.env.example and point at a throwaway database).