I using this plug-in and gulp-notify, which includes node-notifier. When I run a tasks that doesn't produce any new files, because newer doesn't see any changes and jumps out of the task. I would like to have a notification saying "Done - no new files". All it does now is end without notification. Is this possible?
Quick code Example:
gulp.task('copy', function(){
return gulp.src(path.app)
.pipe(newer(path.dist)) - insert code to notify if all the files are the same...
.pipe(gulp.dest(path.dist))
.pipe(notify({message: 'Copy task done', onLast: true}));
});
I using this plug-in and gulp-notify, which includes node-notifier. When I run a tasks that doesn't produce any new files, because newer doesn't see any changes and jumps out of the task. I would like to have a notification saying "Done - no new files". All it does now is end without notification. Is this possible?
Quick code Example:
gulp.task('copy', function(){ return gulp.src(path.app) .pipe(newer(path.dist)) - insert code to notify if all the files are the same... .pipe(gulp.dest(path.dist)) .pipe(notify({message: 'Copy task done', onLast: true})); });