I just read that if a stream uses 'data'
or 'end'
listeners it switches to "classic" mode and stream-handbook says:
Note that whenever you register a "data" listener, you put the stream into compatability mode so you lose the benefits of the new streams2 api
So what's the best way to use benefits of new streams api? If I'm currently doing this:
gulp.src(["./src/server/**/*.coffee"])
.pipe(coffee bare: true ).on("error", gutil.log)
.pipe(gulp.dest "./bin/server")
.on 'end',-> gutil.log "successfully compiled server coffeescript"
How can I do the same thing without registering 'end'
listener