Grunt Task for Checking Existence of Programs on PATH
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.
This plugin requires Grunt
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
) the names of Grunt tasks to run if the patch check for the
srcprograms are successful.
true) whether the patch check for the
srcprograms are mandatory, i.e., if they are not successful, stop processing. Set this to
falsein combination with the
tasksoption to execute a task if a program exists or skip a task if a program does not exist.
Run this task with the
grunt path-check command.
Task targets, files and options may be specified according to the Grunt Configuring tasks guide.
// [...]gruntloadNpmTasks"grunt-shell";gruntloadNpmTasks"grunt-path-check";gruntinitConfig"shell":"generate-txt":command: "w3m -dump doc.html >doc.txt""path-check":"generate-txt":src: "w3m"options:mandatory: falsetasks: "shell:generate-txt";gruntregisterTask"default" "path-check:generate-txt" ;// [...]