mirror of
https://codeberg.org/Kankys/NewLukasBlog.git
synced 2025-12-06 13:26:05 +00:00
husky
Modern native Git hooks made easy
Husky improves your commits and more 🐶 woof!
Install
npm install husky --save-dev
Usage
Edit package.json > prepare script and run it once:
npm pkg set scripts.prepare="husky install"
npm run prepare
Add a hook:
npx husky add .husky/pre-commit "npm test"
git add .husky/pre-commit
Make a commit:
git commit -m "Keep calm and commit"
# `npm test` will run