npm.io
2.2.3 • Published 4 years agoCLI

git-bubu-check

Licence
ISC
Version
2.2.3
Deps
2
Size
4 kB
Vulns
21
Weekly
0

git-bubu-check

Install

npm install husky --save-dev
npm install git-bubu-check --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/commit-msg "npx git-bubu-check"

Make a commit:

git add .
git commit -m "Keep calm and commit"
# `npm run git-bubu-check` will run