[build] remove deprecated gulp-utils
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const exec = require('./exec');
|
||||
const gutil = require('gulp-util');
|
||||
const through = require('through2');
|
||||
const col = gutil.colors;
|
||||
|
||||
const PluginError = require('plugin-error');
|
||||
const colors = require('ansi-colors');
|
||||
const log = require('fancy-log');
|
||||
|
||||
class Neko {
|
||||
|
||||
@@ -13,7 +13,7 @@ class Neko {
|
||||
run() {
|
||||
let stream = null;
|
||||
const bufferContents = (file, enc, callback) => {
|
||||
gutil.log(this.tag, col.cyan("run"), col.magenta(file.path));
|
||||
log(this.tag, colors.cyan("run"), colors.magenta(file.path));
|
||||
|
||||
exec('.', ['neko', file.path].join(' '))
|
||||
.then(() => {
|
||||
@@ -21,7 +21,7 @@ class Neko {
|
||||
callback();
|
||||
})
|
||||
.catch((error) => {
|
||||
stream.emit('error', new gutil.PluginError({plugin: this.tag, message: error}));
|
||||
stream.emit('error', new PluginError({plugin: this.tag, message: error}));
|
||||
callback();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user