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

Plugin does not work when mixed with gulp-watch #3

Open
cowwoc opened this issue Jan 20, 2015 · 0 comments
Open

Plugin does not work when mixed with gulp-watch #3

cowwoc opened this issue Jan 20, 2015 · 0 comments

Comments

@cowwoc
Copy link

cowwoc commented Jan 20, 2015

Given:

    var sources = srcDir + "**/*.js";
    return gulp.src(sources).
        pipe(duration("jshint")).
        pipe(watch(sources)).
        pipe(jshint(config)).
        pipe(jshint.reporter(reporter)).
        pipe(livereload());

I get a duration notice once (when the default task is executed). The plugin does not run each time gulp-watch (https://github.com/floatdrop/gulp-watch) re-runs the task after a file is modified.

On the other hand, if I move duration to the line after watch I never see output from the plugin at all. Any ideas?

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