git-hook-scripts

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i git-hook-scripts

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ukupat