Skip to content

gulp.run deprecation #199

Description

@steida

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions