grunt-path-check
Grunt Task for Checking Existence of Programs on PATH.
In case a program is not found a warning is issues and
Grunt by default stop processing until option --force
is used.
Getting Started
This plugin requires Grunt ~0.4.0
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-path-check --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
Task Options
-
tasks
: (default[]
) the names of Grunt tasks to run if the patch check for thesrc
programs are successful. -
mandatory
: (defaulttrue
) whether the patch check for thesrc
programs are mandatory, i.e., if they are not successful, stop processing. Set this tofalse
in combination with thetasks
option to execute a task if a program exists or skip a task if a program does not exist.
Task Usage
Run this task with the grunt path-check
command.
Task targets, files and options may be specified according to the Grunt Configuring tasks guide.
Usage Example
// [...]grunt;grunt;grunt;grunt;// [...]