Skip to content

Latest commit

History

History
37 lines (24 loc) 路 481 Bytes

README.md

File metadata and controls

37 lines (24 loc) 路 481 Bytes

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 set-script prepare "husky install"
npm run prepare

Add a hook:

npx husky add .husky/pre-commit "npm test"

Make a commit:

$ git commit -m "Keep calm and commit"
# `npm test` will run

Documentation

https://typicode.github.io/husky