CLAUDE.md documents commands, the spec-first workflow, the functional-core rule and a do-not list. A Claude Code Stop hook blocks finishing while typecheck or unit tests fail. Permissions deny reading env files, hook bypass flags, hard resets and recursive deletes, and ask before CI edits or any push. Husky pre-commit now also typechecks and runs unit tests; pre-push runs coverage and the mutation gate when src/domain changed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
9 lines
458 B
Plaintext
Executable File
9 lines
458 B
Plaintext
Executable File
# Pushing is gated harder than committing: full coverage, and mutation when the domain core changed.
|
|
pnpm --filter @mintel/web test:coverage || exit 1
|
|
|
|
base="$(git merge-base HEAD origin/main 2>/dev/null || git rev-list --max-parents=0 HEAD | tail -n 1)"
|
|
if git diff --name-only "$base"...HEAD | grep -q '^apps/web/src/domain/'; then
|
|
echo "src/domain changed: running mutation gate (about 2 minutes)"
|
|
pnpm --filter @mintel/web test:mutation || exit 1
|
|
fi
|