Check that we have no pending changes before proceeding.
npm install grunt-checkpending --save-dev
And in your Gruntfile:
grunt.loadNpmTasks('grunt-checkpending');
Include the task as one of your multitasks, e.g.:
grunt.registerTask("deploy", ["test", "checkpending", "copy"]
To skip checks:
grunt --no-checkpending
To force checks (disables skipping), add the second param with true
:
grunt.registerTask("deploy", ["test", "checkbranch:develop:true", "copy"]