I have multiple mix
tasks to run in succession. With other build tools, it is possible to run the tasks with a single statement, which saves any startup overhead after the first task. How can this be done with Elixir's mix
command?
Comma-separate the list of tasks, and add them to mix do
: mix do task1, task2, task3
:
mix do deps.get, run hello.exs, ecto.migrate
For example, the above runs the tasks deps.get
, run hello.exs
, and ecto.migrate
within one invocation of mix
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With