Hi,
I am not sure how to configure behaviour I need. Imagine I have two tasks, coffee and stylus, which I want run after clean task. But I also want to be able to call coffee and stylus tasks directly without clean. Yes, I call these tasks from own file watcher. The only solution I see is to have some build task:
gulp.task 'build', ['clean', 'stylus', 'coffee']
But this works only if clean can be run in parallel with stylus and coffee. I don't see how to configure it with current api.
Second question, this is my watch task.
gulp.task 'watch', ->
esteWatch _.union(stylesDirs, scriptsDirs), (e) ->
changedFile = e.filepath
switch e.extension
when 'styl'
gulp.run 'stylus'
when 'coffee'
gulp.run 'coffee'
when 'js'
console.log changedFile
.start()
What should I use instead of gulp.run?
Thank you for answer and really refreshing gulp design.
Hi,
I am not sure how to configure behaviour I need. Imagine I have two tasks, coffee and stylus, which I want run after clean task. But I also want to be able to call coffee and stylus tasks directly without clean. Yes, I call these tasks from own file watcher. The only solution I see is to have some build task:
But this works only if clean can be run in parallel with stylus and coffee. I don't see how to configure it with current api.
Second question, this is my watch task.
What should I use instead of gulp.run?
Thank you for answer and really refreshing gulp design.