Skip to content
forked from silentport/branch

ensure that script commands in package. json are only allowed to execute on specified git branches

Notifications You must be signed in to change notification settings

php-workx/branch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-git-branch

Build Status undefined

Ensure that script commands in package.json are only allowed to execute on specified git branches

Installation

This module should be installed as one of your project's devDependencies:

npm install --save-dev check-git-branch

You might also want to consider using cross-env:

npm install --save-dev cross-env

Usage

example of the scripts section in your project's package.json:

"scripts": {
   "build": "branch master && cross-env NODE_ENV=production node build/build.js",
   "build-test": "branch dev && cross-env NODE_ENV=sandbox node build/build.js"
},

About

ensure that script commands in package. json are only allowed to execute on specified git branches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%