1.3.0 • Published 6 years ago

husky-conf v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Husky Configuration Build Status

Configure husky in your project.

Install

$ npm i -g husky-conf

Usage

  Configure husky for your project.

  Usage:
    $ husky-conf <option>

  Options:
      init    i  Initialize husky
      add    a  Add husky hook
      remove    r  Remove existing husky hook
      version    v  Check version of husky-conf

  Examples:
    $ husky-conf --help
    $ husky-conf version
    $ husky-conf init
    $ husky-conf add commit-msg
    $ husky-conf remove commit-msg

Hooks

Husky supports all git hooks (https://git-scm.com/docs/githooks). Simply add the corresponding npm script to your package.json.

Git hooknpm script
applypatch-msgapplypatchmsg
commit-msgcommitmsg
post-applypatchpostapplypatch
post-checkoutpostcheckout
post-commitpostcommit
post-mergepostmerge
post-receivepostreceive
post-rewritepostrewrite
post-updatepostupdate
pre-applypatchpreapplypatch
pre-auto-gcpreautogc
pre-commitprecommit
pre-pushprepush
pre-rebaseprerebase
pre-receiveprereceive
prepare-commit-msgpreparecommitmsg
push-to-checkoutpushtocheckout
updateupdate

Uninstall

$ npm uninstall -g husky-conf

License

MIT © Joydip Roy (rjoydip)