s-githooks

0.0.3-alpha.5 • Public • Published

s-githooks

provides a configurable git-hooks

  • [x] Implement custom git-hooks

NPM version

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

MIT License © 2023 Song wuk

Readme

Keywords

Package Sidebar

Install

npm i s-githooks

Weekly Downloads

1

Version

0.0.3-alpha.5

License

MIT

Unpacked Size

13.1 kB

Total Files

10

Last publish

Collaborators

  • songwuk