This package helps you to integrate git hooks into your Javascript project workflow.
npm i --save-dev hooking-git
yarn cache clean hooking-git && yarn add --dev hooking-git
- remove dependendecy from the project
yarn remove hooking-git
ornpm uninstall --save hooking-git
- remove
<git-root>/.git/hooks
Specify the used hooks in your package.json
:
{
...,
"hooking-git": {
"pre-push": "yarn lint && yarn test"
}
}
- pre-push
- pre-commit
- post-merge
- post-commit