feat: add local install hook

This commit is contained in:
Abhishek Kumar 2026-05-25 17:14:44 +05:30
parent 6b33addb25
commit 1eb6c534d8
4 changed files with 11 additions and 4 deletions

View file

@ -63,8 +63,7 @@
"ms-python.debugpy",
"ms-azuretools.vscode-docker",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss"
"esbenp.prettier-vscode"
]
}
}

View file

@ -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))"

2
.gitignore vendored
View file

@ -11,7 +11,7 @@ infrastructure/
prd/
.vercel
api/.env.devcontainer
.devcontainer/install.local.sh
venv/
.venv/
.playwright-mcp

2
.vscode/launch.json vendored
View file

@ -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).