var cjsTasks = require('gulp-commonjs-tasks');
var taskLoader = cjsTasks.taskLoader;
var taskInfo = cjsTasks.taskInfo;
You can also retrieve this object directly.
var taskLoader = require('gulp-commonjs-tasks/task-loader');
The return value of taskLoader.load()
is an object which contains the following keys.
{
taskNames: [ list of task names ],
defaultTaskNames: [ list of default task names ],
addHelpTask: [ adds a help task ],
taskTree: [ Function: returns all tasks ],
cliHelp: [ Function: returns formatted help string ]
}
You can also retrieve this object directly.
var taskInfo = require('gulp-commonjs-tasks/task-info');
{
cliHelp: [ Function: returns formatted help string ],
taskTree: [ Function: returns all tasks ]
}
{
a: [ boolean: wether or not to display tasks without descriptions ],
all: [ boolean: wether or not to display tasks without descriptions ]
}
Returns flattened tree of all tasks.