src/yake/tasks.js
function loadPreloadedTasks(taskCollection)
{
    const preTasks = [
        {
            name : 'help',
            description : 'list all tasks',
            prerequisites : [],
            action : function actionHelp()
            {
                /* eslint-disable no-console */
                console.log('this is the help task running ');
                /* eslint-enable no-console */
            },
        },
    ];
    const collection = loadTasksFromArray(preTasks, taskCollection);

    return collection;
}
function loadPreloadedTasks(taskCollection)
{
    const preTasks = [
        {
            name : 'help',
            description : 'list all tasks',
            prerequisites : [],
            action : function actionHelp()
            {
                /* eslint-disable no-console */
                console.log('this is the help task running ');
                /* eslint-enable no-console */
            },
        },
    ];
    const collection = loadTasksFromArray(preTasks, taskCollection);

    return collection;
}
function loadPreloadedTasks ( taskCollection ) { const preTasks = [ { name : 'help' , description : 'list all tasks' , prerequisites : [ ] , action : function actionHelp ( ) { /* eslint-disable no-console */ console . log ( 'this is the help task running ' ) ; /* eslint-enable no-console */ } , } , ] ; const collection = loadTasksFromArray ( preTasks , taskCollection ) ; return collection ; }
Yake provides for a set of standard tasks to be preloaded. This function performs that process.

@param {TaskCollection}      taskCollection into which the tasks are to be loaded

@return {TaskCollection}    the same one that was passed in but updated
Yake provides for a set of standard tasks to be preloaded . This function performs that process .