src/yake/main.js
function getTasksFromTaskfile()
{
    // tasks will already be loaded and are in the global collection so get it
    const tc = TASKS.globals.globalTaskCollection; 
    //this time the preloads come after the custom tasks - no choice
    const collection = TASKS.loadPreloadedTasks(tc);
    return collection;
}
function getTasksFromTaskfile()
{
    // tasks will already be loaded and are in the global collection so get it
    const tc = TASKS.globals.globalTaskCollection; 
    //this time the preloads come after the custom tasks - no choice
    const collection = TASKS.loadPreloadedTasks(tc);
    return collection;
}
function getTasksFromTaskfile ( ) { // tasks will already be loaded and are in the global collection so get it const tc = TASKS . globals . globalTaskCollection ; //this time the preloads come after the custom tasks - no choice const collection = TASKS . loadPreloadedTasks ( tc ) ; return collection ; }
In taskfile mode the tasks are defined before the mainline gets called through the
use of the YAKE.task function. Hence by the time this function gets called
those tasks are already in a global collection. So retreived them, add default tasks
return the collection

@return     {TaskCollection}  The tasks from taskfile.
In taskfile mode the tasks are defined before the mainline gets called through the use of the YAKE . task function . Hence by the time this function gets called those tasks are already in a global collection . So retreived them add default tasks return the collection