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

Newer version of gulp-watch seems to stop other tasks from ending. #25

Closed
jh3y opened this issue Apr 16, 2014 · 3 comments
Closed

Newer version of gulp-watch seems to stop other tasks from ending. #25

jh3y opened this issue Apr 16, 2014 · 3 comments

Comments

@jh3y
Copy link

jh3y commented Apr 16, 2014

Hey,

I have various tasks in my gulpfile doing different things. When I am using version ^0.6.0 of gulp-watch, my tasks wont finish. Even something as simple as

gulp.task('cleanup', function(event) {
    return gulp.src(destinations.build)
        .pipe(clean());
});

When I use say version ^0.5.4 it works fine and my tasks finish. I found this out by commenting dependencies within my gulpfile

// var watch = require('gulp-watch');

and came to find that gulp-watch was the culprit I'm afraid. I'm also using ^0.5.4 in another project of mine with very similar tasks and that one works fine.

@jh3y

@floatdrop
Copy link
Owner

Thanks! Got reproduced it too. Seems like require('gaze')@0.6.x is hanging node for the moment (check this by moving all var statements into module.exports in gulp-watch).

@jh3y
Copy link
Author

jh3y commented Apr 17, 2014

No problems! glad to be of assistance. Just noticed it was acting up strange this evening when switching between projects.

@jh3y

@floatdrop
Copy link
Owner

Turns out it is normal, that gaze will start timer on require. I've published hotfix in 0.6.1 and it shouldn't require gaze from gulp-watch, unless it's called explicitly.

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

2 participants