From 38a255f1d1799ec896800c014f9603f0362102a4 Mon Sep 17 00:00:00 2001 From: ScorpioCoding Date: Wed, 3 Jan 2018 06:30:23 +0100 Subject: [PATCH 1/5] sc: mod: gitignore file - package-lock.json --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index e420acc..877a3a2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ build components *.orig .idea +package-lock.json + From 250484d78d73a775c1b2542c1215d013654b8409 Mon Sep 17 00:00:00 2001 From: ScorpioCoding Date: Wed, 3 Jan 2018 06:32:01 +0100 Subject: [PATCH 2/5] sc mod: package.json - add: dep. plugin-error --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e88d6c9..a816052 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ ], "dependencies": { "chalk": "^1.1.3", - "gulp-util": "^3.0.8" + "gulp-util": "^3.0.8", + "plugin-error": "^0.1.2" }, "devDependencies": { "gulp": "^3.9.1", From 7102d39f003347f8229d8305bb70d24d389e6579 Mon Sep 17 00:00:00 2001 From: ScorpioCoding Date: Wed, 3 Jan 2018 06:38:19 +0100 Subject: [PATCH 3/5] sc mod: index.js - plugin-error repalcement for gutil.pluginError --- index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b3bcef1..4df679f 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,14 @@ /*jshint node:true */ +//2018-01-02 sc mod: require plugin-error to replace gutil.PluginError + "use strict"; var colors = require('chalk'); -var gutil = require('gulp-util'); +//sc mod start +//var gutil = require('gulp-util'); +var pulginError = require('plugin-error'); +//sc mod stop function options() { return module.exports.options } @@ -78,7 +83,10 @@ 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) { From dc84be5ba2cf741f131bc4472b63dbb5f8a32eb5 Mon Sep 17 00:00:00 2001 From: ScorpioCoding Date: Wed, 3 Jan 2018 06:40:10 +0100 Subject: [PATCH 4/5] sc mod: package.json - add: dep. fancy-log --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a816052..e5d213d 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ ], "dependencies": { "chalk": "^1.1.3", + "fancy-log": "^1.3.2", "gulp-util": "^3.0.8", "plugin-error": "^0.1.2" }, From f7ab0bd6ad84ca107d7e52c0cfae234b4f06f448 Mon Sep 17 00:00:00 2001 From: ScorpioCoding Date: Wed, 3 Jan 2018 06:44:06 +0100 Subject: [PATCH 5/5] sc mod: index.js - fancy-log repalcement for gutil.log --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4df679f..4095c4a 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ /*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"; @@ -8,6 +10,7 @@ var colors = require('chalk'); //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 } @@ -92,7 +95,10 @@ function runSequence(gulp) { 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 } }