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

Task dependencies #2

Open
Dmitry-N-Medvedev opened this issue Jan 20, 2016 · 1 comment
Open

Task dependencies #2

Dmitry-N-Medvedev opened this issue Jan 20, 2016 · 1 comment

Comments

@Dmitry-N-Medvedev
Copy link

Hi,

is there any way to specify that task A requires task B to run before the task A executes?

@lmammino
Copy link
Owner

(Comment edited, previous version moved to the other issue as it seems the most relevant place)

You can already do this by creating a module that contains just an array of tasks. The README contains already an example of this that I will report here and simplify:

#gulp/build.js

module.exports = ['clean', 'build-css'];

With this syntax you are actually defining a module build which, when it is executed with gulp build, ensures that clean is run before build-css starts.
Of course I am assuming you have other two modules, one called clean and one called build-css.

Let me know if this is clear and, most importantly, if it works for you specific use cases.

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