src/yake.js
function watch(glob, taskName)
 {
    var watcher = chokidar.watch(glob, {persistent: true,});
    watcher.on('ready', ()=>
    {
        watcher.on('all', (event, path)=>
        {
            invokeTask(taskName);
        });
    });
 }
function watch(glob, taskName)
 {
    var watcher = chokidar.watch(glob, {persistent: true,});
    watcher.on('ready', ()=>
    {
        watcher.on('all', (event, path)=>
        {
            invokeTask(taskName);
        });
    });
 }
function watch ( glob , taskName ) { var watcher = chokidar . watch ( glob , { persistent : true , } ) ; watcher . on ( 'ready' , ( ) => { watcher . on ( 'all' , ( event , path ) => { invokeTask ( taskName ) ; } ) ; } ) ; }
Watch files and then invoke a task
Watch files and then invoke a task