1.0.1 • Published 8 years ago

git-hook-scripts v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

git-hook-scripts

Collection of Git hook scripts

npm version

Available scripts

  • check-issue-nr-in-commit-msg - checks if commit message has an Issue number marked down
  • npm-install-after-merge - calls npm install if package.json or bower.json has been changed after merge

Installation

Install npm and use it to install git-hook-scripts

$ npm install --save-dev git-hook-scripts

Usage

In JavaScript

var scripts = require('git-hook-scripts');

scripts.npmInstallAfterMerge();
scripts.checkIssueNrInCommitMsg();

CLI

Usage: ./node_modules/.bin/git-hook-scripts [options] [command]


Commands:

  check-issue-nr-in-commit-msg|issue-nr   Checks if commit message has an Issue number marked down
  npm-install-after-merge|install         Calls npm install if package.json or bower.json has been changed after merge

Contribute

  1. Implement a Git hook script,
  2. move the script to ./src,
  3. write the command to ./git-hook-scripts (more info about commander.js) and
  4. make a pull request.

License

MIT

1.0.1

8 years ago

1.0.0

8 years ago

0.0.0

8 years ago