Adding gulp-notify
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 3 Nov 2017 19:46:38 +0000 (15:46 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 3 Nov 2017 19:47:26 +0000 (15:47 -0400)
Add gulp-notify

You'll need to run npm instal.

gulpfile.js

index 47326ec..1049b09 100644 (file)
@@ -2,7 +2,8 @@ var gulp    = require('gulp'),
     concat  = require('gulp-concat'),
     uglify  = require('gulp-uglify'),
     jshint  = require('gulp-jshint'),
-    plumber = require('gulp-plumber');
+    plumber = require('gulp-plumber'),
+    notify  = require('gulp-notify');
 
 gulp.task('adminscripts', function(){
     gulp.src([
@@ -26,7 +27,12 @@ gulp.task('frontscripts', function(){
         .pipe(concat('frontRegApp.js'))
         //.pipe(uglify())
         .pipe(jshint())
-        .pipe(gulp.dest('js/'));
+        .pipe(gulp.dest('js/'))
+        .pipe(notify({
+            title: 'Gulp - Frontscripts',
+            message: 'compiling of js files complete',
+            onLast: true
+        }));
 });
 
 gulp.task('watch', function(){
@@ -43,4 +49,4 @@ gulp.task('watch', function(){
 });
 
 gulp.task('default', ['frontscripts', 'adminscripts', 'watch']);
\ No newline at end of file
+