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

fail reporter buffering doesn't play nice w/ watching #104

Open
nevir opened this issue Mar 4, 2015 · 0 comments
Open

fail reporter buffering doesn't play nice w/ watching #104

nevir opened this issue Mar 4, 2015 · 0 comments

Comments

@nevir
Copy link

nevir commented Mar 4, 2015

So, say I'm making use of gulp-watch:

gulp.task('watch', function() {
  return gulp.src(SOURCES)
      .pipe(watch(SOURCES))
      .pipe(plumber({errorHandler: notify.onError("Error: <%= error.message %>")}))
      .pipe(jshint())
      .pipe(jshint.reporter('fail', {buffer: false}));
});

Even with buffer: false, the errors are never emitted (because the stream doesn't end). It'd be nice to either emit errors immediately if buffering is false, or maybe give an option for that?

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