packages/browser-sync-ui/lib/UI.js
function taskRunner (ui) {

    return function (item, cb) {

        ui.logger.debug("Starting Step: " + item.step);

        /**
         * Give each step access to the UI Instance
         */
        item.fn(ui, function (err, out) {
            if (err) {
                return cb(err);
            }
            if (out) {
                handleOut(ui, out);
            }
            ui.logger.debug("{green:Step Complete: " + item.step);
            cb();
        });
    };
}
function taskRunner (ui) {

    return function (item, cb) {

        ui.logger.debug("Starting Step: " + item.step);

        /**
         * Give each step access to the UI Instance
         */
        item.fn(ui, function (err, out) {
            if (err) {
                return cb(err);
            }
            if (out) {
                handleOut(ui, out);
            }
            ui.logger.debug("{green:Step Complete: " + item.step);
            cb();
        });
    };
}
function taskRunner ( ui ) { return function ( item , cb ) { ui . logger . debug ( "Starting Step: " + item . step ) ; /**
         * Give each step access to the UI Instance
         */ item . fn ( ui , function ( err , out ) { if ( err ) { return cb ( err ) ; } if ( out ) { handleOut ( ui , out ) ; } ui . logger . debug ( "{green:Step Complete: " + item . step ) ; cb ( ) ; } ) ; } ; }
Run each setup task in sequence
@param ui
@returns {Function}
Run each setup task in sequence