jlandowner
jlandowner
DDeno
Created by jlandowner on 1/12/2024 in #help
How can I create a seqential deno task to pass args to child task?
Hi, I read the docs and created tasks in deno.json like this. https://docs.deno.com/runtime/manual/tools/task_runner#executing-a-task
{
"tasks": {
"task-all": "deno task task-a && deno task task-b",
"task-a": "echo 'this task requires args'",
"task-b": "echo 'this task must run after task-a'"
}
}
{
"tasks": {
"task-all": "deno task task-a && deno task task-b",
"task-a": "echo 'this task requires args'",
"task-b": "echo 'this task must run after task-a'"
}
}
task-a requires args so it can run independently with deno task task-a ARGS I have to run task-b after task-a so I have to do with deno task task-a ARGS && deno task task-b. It is redundant so I created task-all task. I intended to run this deno task task-all ARGS. But in reality each tasks are executed as deno task task-a (no args) and deno task task-b ARGS. How can I create a seqential task to achive this?
8 replies