captain-git-hook

2.0.0 • Public • Published

captain-git-hook version build

define git hooks as scripts in your package.json (requires node >= 0.12)

Usage

package.json

{
  "scripts": {
    "pre-commit": "echo 'this prevents commiting' && exit 1"
  }
}

Add a script to your package.json for any git hook you want to listen to.

Currently supported hooks:

pre-commit
post-commit
post-merge
pre-push

Installation

npm i captain-git-hook

LICENSE

The MIT License (MIT) Maximilian Hoffmann

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    36
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    36
  • 1.1.1
    1
  • 1.1.0
    1
  • 1.0.6
    1

Package Sidebar

Install

npm i captain-git-hook

Weekly Downloads

49

Version

2.0.0

License

MIT

Unpacked Size

4.24 kB

Total Files

7

Last publish

Collaborators

  • maxhoffmann