Skip to content

gd4Ark/husky-hg

 
 

Repository files navigation

husky

Modern native Hg hooks made easy, Based on husky

Husky improves your commits and more 🐶 woof!

Install

npm install husky --save-dev

Usage

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

Documentation

https://typicode.github.io/husky

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Shell 1.2%