git-master-merged
v1.0.0
Published
Check whether the latest commit of master has been merged into current branch for git projects.
Downloads
13
Readme
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"
}