[build] remove deprecated gulp-utils

This commit is contained in:
2017-12-30 17:53:25 +03:00
parent 0dd878224b
commit ecb0629494
12 changed files with 93 additions and 135 deletions

View File

@@ -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();
});