Skip to content

Add husky pre-commit hook running build + tests#55

Merged
heyitsStylez merged 1 commit intomainfrom
precommit-hook
May 7, 2026
Merged

Add husky pre-commit hook running build + tests#55
heyitsStylez merged 1 commit intomainfrom
precommit-hook

Conversation

@heyitsStylez
Copy link
Copy Markdown
Owner

Summary

  • Install husky as a devDependency; prepare script wires up the hook on npm install
  • .husky/pre-commit runs npm run build then npm test — same gates as CI
  • No Prettier or typecheck step (plain JS, no TS in this repo)
  • Update CLAUDE.md and CONTRIBUTING.md to document the hook

Test plan

  • npm run build passes
  • npm test passes (85 tests)
  • Hook fires on commit (this PR's commit ran through it cleanly)
  • Fresh clone + npm install installs the hook via prepare

🤖 Generated with Claude Code

Gates every commit on the same checks CI runs (`npm run build` then
`npm test`). No Prettier or typecheck — plain JS, no TS in this repo.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hyperwheel Ready Ready Preview, Comment May 7, 2026 10:16am

@heyitsStylez heyitsStylez merged commit c617eaf into main May 7, 2026
4 checks passed
@heyitsStylez heyitsStylez deleted the precommit-hook branch May 7, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant