Modern native Hg hooks made easy, Based on husky
Husky improves your commits and more 🐶 woof!
npm install husky --save-dev
Edit package.json > prepare
script and run it once:
npm set-script prepare "husky install"
npm run prepare
Add a hook:
npx husky add pre-commit "npm test"
hg add .husky/pre-commit
Make a commit:
hg commit -m "Keep calm and commit"
# `npm test` will run