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

seems to exit the process when a compile error happens. #37

Closed
Industrial opened this issue Jun 13, 2014 · 1 comment
Closed

seems to exit the process when a compile error happens. #37

Industrial opened this issue Jun 13, 2014 · 1 comment

Comments

@Industrial
Copy link

Hi.

I'm trying to use gulp-watch to compile coffeescript amongst other things (less, browserify, jade, etc).

When I enable the error log handler below, when a coffeescript compile error occurs, it is printed.

The problem is that when I do consecutive writes, I will not get a second compile. Why is this?

gulp.task 'watch1', ->
    gulpWatch {
        glob: [ 'src/**/*' ]
        emitOnGlob: false
    }, (sourceStream) ->
        destinationStream = gulp.dest 'build'

        filterCoffee  = gulpFilter [ "**/*.coffee", "**/*.litcoffee" ]
        compileCoffee = gulpCoffee bare: true

        #compileCoffee.on 'error', (error) ->
        #   log error

        sourceStream
            .pipe filterCoffee
            .pipe compileCoffee
            .pipe destinationStream
@nidheeshdas
Copy link

Is this problem resolved? me too have the same problem. Any comments?

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