0.2.2 • Published 3 years ago

git-hooks-scripts v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

git-hooks-scripts

Version MIT License

Run custom scripts as Git hooks.

Installation

npm install --save-dev git-hooks-scripts

Usage

Add your scripts under a section called git-hooks-scripts in your package.json file:

"git-hooks-scripts": {
  "pre-commit": "eslint ."
}

You can also get arguments from Git via the GIT_HOOKS_PARAMS environment variable. For example, to setup commitlint, you can do the following:

"git-hooks-scripts": {
  "commit-msg": "commitlint -E GIT_HOOKS_PARAMS"
}
0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago