Skip to content

maxhoffmann/captain-git-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

✅ define git hooks as scripts in your package.json

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published