From 3ae583fab6d54933c9453213e45f918a27416145 Mon Sep 17 00:00:00 2001 From: Flavio Cysne Date: Thu, 10 May 2018 10:19:51 -0300 Subject: [PATCH 1/3] Migrating away from gulp-util Following changes suggested in https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 to avoid future issues with deprecated code from Gulp. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0841d10..f23c4e9 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,11 @@ "devDependencies": { "chalk": "^1.1.1", "debug": "^2.2.0", + "fancy-log": "^1.3.2", "gulp": "^3.9.1", - "gulp-util": "^3.0.7", "jshint": "^2.5.6", "json-loader": "^0.5.4", + "plugin-error": "^1.0.1" "progress-bar-webpack-plugin": "^1.6.0", "temp": "^0.8.3", "webpack": "^1.12.14", From 6bc5cc2d9bf9c69deba6206459fd7feedbe7a3ac Mon Sep 17 00:00:00 2001 From: Flavio Cysne Date: Thu, 10 May 2018 10:20:38 -0300 Subject: [PATCH 2/3] Migrating away from gulp-util Following changes suggested in https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 to avoid future issues with deprecated code from Gulp. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f23c4e9..e4ca619 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "gulp": "^3.9.1", "jshint": "^2.5.6", "json-loader": "^0.5.4", - "plugin-error": "^1.0.1" + "plugin-error": "^1.0.1", "progress-bar-webpack-plugin": "^1.6.0", "temp": "^0.8.3", "webpack": "^1.12.14", From 362e47c9601702fca6c6b4922e3d2085607beb76 Mon Sep 17 00:00:00 2001 From: Flavio Cysne Date: Thu, 10 May 2018 10:23:09 -0300 Subject: [PATCH 3/3] Migrating away from gulp-util Following changes suggested in https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 to avoid future issues with deprecated code from Gulp. --- gulpfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ba5d223..76a808b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,7 +7,8 @@ debug.enable(debugName); debug = debug(debugName); var gulp = require('gulp'); -var gutil = require('gulp-util'); +var log = require('fancy-log'); +var PluginError = require('plugin-error'); var path = require('path'); var fs = require('fs'); var temp = require('temp'); @@ -25,8 +26,8 @@ var paths = { gulp.task('default', function(done) { Webpack().run(function(err, stats) { - if(err) throw new gutil.PluginError('webpack', err); - gutil.log('[webpack]', stats.toString({ + if(err) throw new PluginError('webpack', err); + log('[webpack]', stats.toString({ colors: true, })); done();