1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-20 22:34:46 -05:00
denoland-deno/tests/specs/task/dependencies
David Sherret 661aa22c03
feat(task): dependencies (#26467)
This commit adds support for "dependencies" in `deno task` subcommand:
```jsonc
{
    "tasks": {
        "build": "deno run -RW build.ts",
        "generate": "deno run -RW generate.ts",
        "serve": {
            "command": "deno run -RN server.ts",
            "dependencies": ["build", "generate"]
        }
    }
}
```
Executing `deno task serve` will first execute `build` and `generate`
tasks (in parallel) and once both complete the `serve` task will be executed.

Number of tasks run in parallel is equal to the no of cores on the
machine, and respects `DENO_JOBS` env var if one is specified.

Part of https://github.com/denoland/deno/issues/26462

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
2024-11-19 12:45:09 +00:00
..
basic1 feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
basic2 feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
cross_package feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
cycle feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
cycle_2 feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
diamond feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
diamond_big feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
__test__.jsonc feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
basic1.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
basic2.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
build1.js feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
build2.js feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
cross_package.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
cycle.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
cycle_2.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
diamond.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
diamond_big.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
diamond_big_list.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
diamond_list.out feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
run.js feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
util.js feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00