示例#1
0
 function onError(err) {
     anybar('red');
     gutil.log(gutil.colors.red(err.message));
     notifier.notify({
       'title': 'ERROR',
       'message': err.message
     });
 }
示例#2
0
 function onError(err) {
     anybar('red')
     gutil.log(gutil.colors.red(err.message))
     var notifier = require('node-notifier')
     notifier.notify({
         'title': 'ERROR',
         'message': err.message
     })
 }
示例#3
0
 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
 }
示例#4
0
WebpackAnybarPlugin.prototype.broadcast = function(status, info) {
    const { port } = this.options;
    return anybar(typeof status === 'function' ? status(info) : status, { port });
};
示例#5
0
 .on('end', function(){
     anybar('green')
 })