-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support for Executing Multiple Tasks Sequentially or in Parallel #21020
Comments
The current way to do this is:
Alternatively, in parallel, it's:
I'm not sure it's worth it to introduce another way of doing this. |
I understand that you may not see immediate improvements. I created this issue to suggest a potentially more intuitive approach. My idea was to introduce options like This would offer a more user-friendly and straightforward way to achieve the desired task execution method. |
Tasks can accept CLI arguments (ex. |
Well, there are a few other platforms/tools that circumvent this by using In this case, you could write something like: |
Regarding running tasks in parallel. My use case is to have 2 tasks, each of which watch for certain file changes. So, these 2 tasks each run forever, i.e. until you use Ctrl-C to kill them. But, if I understand the suggestion of using a task consisting of multiple tasks separated by &, the Ctrl-C would only kill one of the tasks. Is that correct? |
As of Deno 2.1 (Nov. 21) we now have task dependencies! 🎉 And dependencies of a task get run in parallel automatically. ❤️ … unfortunately, this makes debugging things a bit more difficult.
|
@NfNitLoop set Also, opened #27647 |
Running multiple tasks in
Deno
using the built-intask
command is not quite flexible.Would you consider the addition of a feature that allows users to execute multiple tasks sequentially or in parallel? I'm thinking about something like npm-run-all, so it's easier to define things like the following tasks without
&&
:The text was updated successfully, but these errors were encountered: