0.0.3-alpha.5 • Published 11 months ago

s-githooks v0.0.3-alpha.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

s-githooks

provides a configurable git-hooks

  • 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

0.0.3-alpha.5

11 months ago

0.0.3-alpha.4

11 months ago

0.0.3-alpha.3

1 year ago

0.0.3-alpha.2

1 year ago

0.0.3-alpha.1

1 year ago

0.0.3-alpha.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago