From 01c4214221083c5f01b2254b2e11bd18aa74786a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 29 Aug 2015 21:57:46 +0200 Subject: [PATCH] don't stop on gulp errors --- gulpfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d304250e..2d94da73 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -16,6 +16,7 @@ var runSequence = require('run-sequence'); // handle errors var onError = function(error) { console.log(chalk.red('You fucked up:', error.message, 'on line' , error.lineNumber)); + this.emit('end'); } @@ -24,11 +25,11 @@ var onError = function(error) { // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ console.log(""); -console.log(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); +console.log(chalk.gray(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>")); console.log(""); -console.log(" (o) Just what do you think you're doing, Matthias? "); +console.log(chalk.cyan(" (o) Just what do you think you're doing, Matthias? ")); console.log(""); -console.log(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>"); +console.log(chalk.gray(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>")); console.log(""); // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^