From 99fde75677a2bac398ca182cf64583a84aa35daa Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Thu, 27 Aug 2015 03:22:31 +0200 Subject: [PATCH] gulp-my-tasks: print, show information about task running inject --- gulp/gulp-my-tasks/tasks/tasks.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gulp/gulp-my-tasks/tasks/tasks.js b/gulp/gulp-my-tasks/tasks/tasks.js index 3f26aa3..4f254bb 100644 --- a/gulp/gulp-my-tasks/tasks/tasks.js +++ b/gulp/gulp-my-tasks/tasks/tasks.js @@ -52,7 +52,9 @@ module.exports = function(gulp, customConfig) { log('*** Checking JavaScript source files with JSHint and JSCS ***'); return gulp.src(config.jsAllFiles) - .pipe(plugins.if(args.verbose, plugins.print())) + .pipe(plugins.if(args.verbose, plugins.print(function(filepath) { + return "vet-js: " + filepath; + }))) .pipe(plugins.jshint(config.jsHintConfigurationFile)) .pipe(plugins.jshint.reporter('jshint-stylish', {verbose: true})) .pipe(plugins.jshint.reporter('fail')) @@ -75,7 +77,9 @@ module.exports = function(gulp, customConfig) { log('*** Checking HTML source files with HTMLHint ***'); return gulp.src(config.html) - .pipe(plugins.if(args.verbose, plugins.print())) + .pipe(plugins.if(args.verbose, plugins.print(function(filepath) { + return "vet-html: " + filepath; + }))) .pipe(plugins.htmlhint({htmlhintrc: config.htmlHintConfigurationFile})) .pipe(plugins.htmlhint.failReporter()); }); @@ -369,6 +373,9 @@ module.exports = function(gulp, customConfig) { return plugins.inject( gulp.src(source) + .pipe(plugins.if(args.verbose, plugins.print(function(filepath) { + return "inject: " + filepath; + }))) .pipe(plugins.angularFilesort()), options); } -- 2.1.4