Is it possible to run gulp-notify in a watch task? -


i'm putting gulpfile , wondering if can combine gulp-notify (or other solution) watch task message pops when watch task has started running. can't find searches on how go doing this. possible?

here's watch task:

// watch our files changes gulp.task('watch', function() {    // -- wanna run notify message here saying 'watching changes...' -- //    gulp.watch('assets/styles/**/*.scss', ['styles']);   gulp.watch('assets/scripts/**/*.js', ['scripts']);   gulp.watch('assets/images/**/*', ['images']); }); 

i managed gulp-notify , node-notifier. after gulp tasks pipe notifier , in callback use node-notifier show popup.

var notify = require('gulp-notify'); var nodenotifier = require('node-notifier');  gulp().src(options.src) .pipe(gulp.dest(options.dest)) .pipe(notify(function () {     nodenotifier.notify({         'title': 'app',         'message': 'build'     }); })); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -