Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify if a File is not Newer #31

Open
rooksstrife opened this issue Jan 28, 2016 · 0 comments
Open

Notify if a File is not Newer #31

rooksstrife opened this issue Jan 28, 2016 · 0 comments

Comments

@rooksstrife
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant