function onError(err) { anybar('red'); gutil.log(gutil.colors.red(err.message)); notifier.notify({ 'title': 'ERROR', 'message': err.message }); }
function onError(err) { anybar('red') gutil.log(gutil.colors.red(err.message)) var notifier = require('node-notifier') notifier.notify({ 'title': 'ERROR', 'message': err.message }) }
function rebundle() { anybar('yellow') var bundle = bundler.bundle() .on('error', onError) .pipe(source(outputFile)) .on('error', onError) .pipe(gulp.dest(DEBUG_ROOT + '/scripts')) .on('error', onError) .on('end', function(){ anybar('green') }) return bundle }
WebpackAnybarPlugin.prototype.broadcast = function(status, info) { const { port } = this.options; return anybar(typeof status === 'function' ? status(info) : status, { port }); };
.on('end', function(){ anybar('green') })