packages/browser-sync-ui/lib/UI.js
function handleOut (ui, out) {

    if (out.options) {
        Object.keys(out.options).forEach(function (key) {
            ui.options = ui.options.set(key, out.options[key]);
        });
    }

    if (out.optionsIn) {
        out.optionsIn.forEach(function (item) {
            ui.options = ui.options.setIn(item.path, item.value);
        });
    }

    if (out.instance) {
        Object.keys(out.instance).forEach(function (key) {
            ui[key] = out.instance[key];
        });
    }
}
function handleOut (ui, out) {

    if (out.options) {
        Object.keys(out.options).forEach(function (key) {
            ui.options = ui.options.set(key, out.options[key]);
        });
    }

    if (out.optionsIn) {
        out.optionsIn.forEach(function (item) {
            ui.options = ui.options.setIn(item.path, item.value);
        });
    }

    if (out.instance) {
        Object.keys(out.instance).forEach(function (key) {
            ui[key] = out.instance[key];
        });
    }
}
function handleOut ( ui , out ) { if ( out . options ) { Object . keys ( out . options ) . forEach ( function ( key ) { ui . options = ui . options . set ( key , out . options [ key ] ) ; } ) ; } if ( out . optionsIn ) { out . optionsIn . forEach ( function ( item ) { ui . options = ui . options . setIn ( item . path , item . value ) ; } ) ; } if ( out . instance ) { Object . keys ( out . instance ) . forEach ( function ( key ) { ui [ key ] = out . instance [ key ] ; } ) ; } }
Setup tasks may return options or instance properties to be set
@param {UI} ui
@param {Object} out
Setup tasks may return options or instance properties to be set