1.0.4 • Published 8 years ago

grunt-checkbranch v1.0.4

Weekly downloads
119
License
MIT
Repository
github
Last release
8 years ago

grunt-checkbranch

Checks that we are on a correct git branch before proceeding.

Build Status

npm install grunt-checkbranch --save-dev

And in your Gruntfile:

grunt.loadNpmTasks('grunt-checkbranch');

Usage

Include the task as one of your multitasks, optionally passing the desired branch (default: master) after a colon, e.g.:

grunt.registerTask("deploy", ["test", "checkbranch:develop", "copy"]

Pass a "negated" branch where further tasks are not allowed by prepending an exclamation mark:

grunt.registerTask("deploy", ["test", "checkbranch:!master", "copy"]

To skip checks:

grunt --no-checkbranch

To force checks (disables skipping), add the third param with true:

grunt.registerTask("deploy", ["test", "checkbranch:develop:true", "copy"]

Contributors

1.0.4

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago