Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.06 KB

README.md

File metadata and controls

62 lines (44 loc) · 2.06 KB

Npm Package Npm Downloads Build Status node codebeat badge Dependency Status JavaScript Style Guide

git-master-merged (Chinese Doc)

Check whether the latest commit of master has been merged into current branch for git projects.

Installation

Install with npm globally:

$ npm install --global git-master-merged

or as a development dependency for your project:

$ npm install --save-dev git-master-merged

Usage

If installed globally, just run following command in git project directory:

$ git-master-merged

If installed as a development dependency, set up a check script in package.json:

"scripts": {
  "git-master-merged": "git-master-merged"
}

Then run command in project directory:

$ npm run git-master-merged

Also, you can use git-master-merged as a requirement of dist or publish, set up dist and scripts in package.json:

"scripts": {
  "dist": "git-master-merged && webpack --config webpack.config.js",
  "publish": "git-master-merged && other publish commands"
}

ChangeLog

ChangeLog

Licence

MIT