Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scorpiocoding #101

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,5 @@ build
components
*.orig
.idea
package-lock.json

20 changes: 17 additions & 3 deletions index.js
@@ -1,9 +1,17 @@
/*jshint node:true */

//2018-01-02 sc mod: gulp-util deprecation
//2018-01-02 sc mod: require plugin-error to replace gutil.PluginError
//2018-01-02 sc mod: require fancy-log to replace gutil.log

"use strict";

var colors = require('chalk');
var gutil = require('gulp-util');
//sc mod start
//var gutil = require('gulp-util');
var pulginError = require('plugin-error');
var log = require('fancy-log');
//sc mod stop

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

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

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

if(callBack) {
callBack(error);
} else if(error) {
gutil.log(colors.red(error.toString()));
//sc mod start
//gutil.log(colors.red(error.toString()));
log(colors.red(error.toString()));
//sc mod stop
}
}

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