From cc94525f7302443b8b66896176ec26dbc69c9467 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 5 Apr 2016 11:58:59 +0100 Subject: [PATCH] Notify when Gulp builds --- gulpfile.js | 4 +++- package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 66bd4d91..29315efa 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -26,6 +26,7 @@ app.css = function (paths, filename) { .pipe(config.production ? plugins.cleanCss() : plugins.util.noop()) .pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.'))) .pipe(gulp.dest(config.outputDir + '/css')) + .pipe(plugins.notify()) .pipe(plugins.if(config.liveReload, plugins.livereload())); }; @@ -37,7 +38,8 @@ app.js = function (paths, filename) { .pipe(plugins.concat(filename)) .pipe(config.production ? plugins.uglify() : plugins.util.noop()) .pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.'))) - .pipe(gulp.dest(config.outputDir + '/js')); + .pipe(gulp.dest(config.outputDir + '/js')) + .pipe(plugins.notify()); }; app.copy = function (srcFiles, outputDir) { diff --git a/package.json b/package.json index 6e4fc373..04c55e27 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "gulp-livereload": "^3.8.1", "gulp-load-plugins": "^1.1.0", "gulp-minify-css": "^1.2.3", + "gulp-notify": "^2.2.0", "gulp-plumber": "^1.0.1", "gulp-sass": "^2.1.1", "gulp-sass-glob": "^1.0.5",