npm-hooks-git
v0.1.28
Published
Easily write githook scripts in js for your node projects
Readme
npm git hooks
Introduction
Easily trigger npm scripts for your nodejs projects using git hooks
How it works
After install, package copies its own hooks scripts into .git/hooks folder which links to the projects top-level githooks folder. It is assumed that there will be npm scripts that reflect the types of githooks configured for the project. For example. If your project has pre-commit.js hooks, then an npm script named npm-pre-commit will be triggered during a commit.
