Skip to content

feat: scriptize pre-commit hook install via npm run setup-hook - #58

Merged
AmisKwok merged 2 commits into
mainfrom
feat/docs-setup-hook
Aug 13, 2026
Merged

feat: scriptize pre-commit hook install via npm run setup-hook#58
AmisKwok merged 2 commits into
mainfrom
feat/docs-setup-hook

Conversation

@AmisKwok

Copy link
Copy Markdown
Member

Add website/scripts/pre-commit (the tracked hook template) and website/scripts/install-hook.mjs, plus a setup-hook npm script. After cloning, running 'cd website && npm install && npm run setup-hook' installs the hook into .git/hooks so commits auto-build and sync the docs site. This keeps the hook source in the repo instead of relying on a local-only .git/hooks file.

AmisKwok and others added 2 commits August 14, 2026 05:54
Add website/scripts/pre-commit (the tracked hook template) and website/scripts/install-hook.mjs, plus a setup-hook npm script. After cloning, running 'cd website && npm install && npm run setup-hook' installs the hook into .git/hooks so commits auto-build and sync the docs site. This keeps the hook source in the repo instead of relying on a local-only .git/hooks file.
@AmisKwok
AmisKwok merged commit 88b61d7 into main Aug 13, 2026
6 checks passed
@AmisKwok
AmisKwok deleted the feat/docs-setup-hook branch August 13, 2026 22:01
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