0.3.1 • Published 7 years ago
check-code-ahead-of-master v0.3.1
Check-code-ahead-of-master
Check whether current branch code ahead of master before building
Install
npm i check-code-ahead-of-masterUsage
Add a command before your building command in package.json, for example
scripts: {
"build": "ccaom && webpack...",The ccaom command does following things:
if git has remote repository, the command will check remote
origin/masterbranch otherwise will check localmaterbranch.if current branch is behind master, the command will throw an error and abort the process.
Licence
MIT