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

Errors stops gulp.watch even though they were already handled #15

Closed
hyspace opened this issue Feb 10, 2014 · 1 comment
Closed

Errors stops gulp.watch even though they were already handled #15

hyspace opened this issue Feb 10, 2014 · 1 comment

Comments

@hyspace
Copy link

hyspace commented Feb 10, 2014

My gulpfile in coffee:

gulp = require 'gulp'
coffee = require 'gulp-coffee'
gutil = require 'gulp-util'
connect = require 'gulp-connect'

gulp.task 'coffee', ->
  gulp.src ['index.coffee', '!gulpfile.coffee']
  .pipe coffee( bare: true ).on('error', gutil.log)
  .pipe gulp.dest '.'
  .pipe connect.reload()

gulp.task 'watch', ->
  gulp.watch ['index.coffee', '!gulpfile.coffee'], ['coffee']

gulp.task "connect", connect.server(
  root: __dirname
  port: 3000
  livereload: true
)

gulp.task 'default', ['coffee', 'connect', 'watch']

When error occurred, gulp.watch still stops. when new files changes, nothing happens.

Then i tried to switch to gulp-watch plugin, problem still there.

So I'm wondering if the problem belong to gulp-coffee itself.

If there something wrong with my gulpfile, I'm sorry to bother you. I'm not sure where the problem is.

@yocontra
Copy link
Member

gulp.task "connect", connect.server(
  root: __dirname
  port: 3000
  livereload: true
)

What's this?

Also, moving to gulpjs/gulp#259

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