GithubHelp home page GithubHelp logo

Comments (4)

yocontra avatar yocontra commented on July 17, 2024

Are you using gulp 4? The watcher is redone, you should try that

from gulp-coffee.

Foolyou avatar Foolyou commented on July 17, 2024

Thanks @contra.

Do you mean with gulp 4 which uses chokidar, we do not need gulp-watch any more?

I'm considering temporarily use gulp-changed with gulp-watch to avoid this issue, and test gulp 4 with my huge old gulpfile.

from gulp-coffee.

Foolyou avatar Foolyou commented on July 17, 2024

Ah, found the way.

gulp.task('coffee', function (done) {
  var src = ...;
  var dest = ...;
  return gulp.src(src)
               .pipe(changed(dest))
               .pipe(coffee().on('error', function (p) {
                 gutil.log(p);
                 done(); 
               }))
               .pipe(gulp.dest(dest));
});
gulp.task('watch', function (done) {
  var src = ...;
  var dest = ...;
  return gulp.src(src)
               .pipe(watch(src).on(change, function () { gulp.start('coffee'); }))
});

from gulp-coffee.

BirgitPohl avatar BirgitPohl commented on July 17, 2024

@contra I stepped over this issue. With my file watcher I need to restart my gulp task. Can you tell me more about the watcher in Gulp 4? I'm currently using 3.9.1.

from gulp-coffee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.