0.0.3-alpha.5 • Published 3 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-devUsage
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-githooksThanks
License
0.0.3-alpha.5
3 years ago
0.0.3-alpha.4
3 years ago
0.0.3-alpha.3
3 years ago
0.0.3-alpha.2
3 years ago
0.0.3-alpha.1
3 years ago
0.0.3-alpha.0
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
0.0.0
3 years ago