Skip to content

Commit

Permalink
Drop dependency on deprecated gulp-util
Browse files Browse the repository at this point in the history
Closes #99
  • Loading branch information
demurgos committed Dec 29, 2017
1 parent 37e17be commit 7defcf8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1,124 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,5 @@ build
components
*.orig
.idea
package-lock.json
yarn.lock
7 changes: 4 additions & 3 deletions index.js
Expand Up @@ -3,7 +3,8 @@
"use strict";

var colors = require('chalk');
var gutil = require('gulp-util');
var fancyLog = require('fancy-log');
var PluginError = require('plugin-error');

function options() { return module.exports.options }

Expand Down Expand Up @@ -78,13 +79,13 @@ function runSequence(gulp) {

var error;
if(e && e.err) {
error = new gutil.PluginError('run-sequence(' + e.task + ')', e.err, { showStack: options().showErrorStackTrace });
error = new PluginError('run-sequence(' + e.task + ')', e.err, { showStack: options().showErrorStackTrace });
}

if(callBack) {
callBack(error);
} else if(error) {
gutil.log(colors.red(error.toString()));
fancyLog(colors.red(error.toString()));
}
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -24,7 +24,8 @@
],
"dependencies": {
"chalk": "^1.1.3",
"gulp-util": "^3.0.8"
"fancy-log": "^1.3.2",
"plugin-error": "^0.1.2"
},
"devDependencies": {
"gulp": "^3.9.1",
Expand Down

0 comments on commit 7defcf8

Please sign in to comment.