Files
dasemuandClaude Sonnet 5 3731f24a96 chore: bootstrap Claude setup
Add root CLAUDE.md, docs/architecture.md, .claude/settings.json hooks
(PostToolUse type-check, Stop build+test gate), and a version.yml workflow
alongside the existing ci.yml (now also builds apps/web and scopes
triggers to master). Record bootstrap version 2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-18 15:03:16 +02:00

26 lines
719 B
JSON

{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "FILE=$(jq -r '.tool_input.file_path // empty'); case \"$FILE\" in *.ts|*.tsx) WS=$(echo \"$FILE\" | grep -oE 'apps/(server|web)' | head -1); if [ -n \"$WS\" ]; then npx --prefix \"$CLAUDE_PROJECT_DIR\" -y tsc --noEmit -p \"$CLAUDE_PROJECT_DIR/$WS/tsconfig.json\" >&2 || true; fi ;; esac"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "cd \"$CLAUDE_PROJECT_DIR\" && npm run build --workspace apps/server && npm test"
}
]
}
]
}
}