tschaub / gulp-newer

Pass through newer source files only
https://npmjs.org/package/gulp-newer
226 stars 24 forks source link

Notify if a File is not Newer #31

Open rooksstrife opened 8 years ago

rooksstrife commented 8 years ago

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})); });