0.0.3-alpha.5 • Published 2 years ago
s-githooks v0.0.3-alpha.5
s-githooks
provides a configurable git-hooks
- 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
Thanks
License
0.0.3-alpha.5
2 years ago
0.0.3-alpha.4
2 years ago
0.0.3-alpha.3
2 years ago
0.0.3-alpha.2
2 years ago
0.0.3-alpha.1
2 years ago
0.0.3-alpha.0
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago