s-githooks
v0.0.3-alpha.5
Published
provides a configurable hooks
Downloads
2
Readme
s-githooks
provides a configurable git-hooks
- [x] Implement custom git-hooks
Install
npm install s-githooks --save-dev
Usage
Add s-githooks
to your package.json
Fill it
For example:
{
"s-githooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "npm run verifycommit"
}
}
Run the CLI script to update the git hooks with the commands from the config:
# [Optional] These 2 steps can be skipped for non-husky users
git config core.hooksPath .git/hooks/
rm -rf .git/hooks
# Update ./git/hooks
npx s-githooks