grunt-checkpending

Check that we have no pending changes before proceeding.

npm install grunt-checkpending
2 downloads in the last day
2 downloads in the last week
11 downloads in the last month

grunt-checkpending

Check that we have no pending changes before proceeding.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-checkpending --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-checkpending');

The "checkpending" task

Overview

Include the task as one of your multitasks, e.g.:

grunt.registerTask("default", ["test", "checkpending", "deploy"]

In the example above, the deploy task will only be executed, if your project has no pending changes in Git - otherwise the run will result in a fatal error.

You may override this behavior by passing --no-checkpending via command line. You can disable --no-checkpending (i.e. force the check) by setting a param for the task, e.g. checkpending:true.

Release History

(none)

npm loves you