deno/cli/tools
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
..
bench feat(watch): log which file changed on HMR or watch change (#25801) 2024-11-16 15:59:31 +01:00
coverage feat(node): stabilize detecting if CJS via "type": "commonjs" in a package.json (#26439) 2024-11-13 15:10:09 +00:00
init refactor(init): inline routing in deno init --serve template (#26595) 2024-10-29 14:37:21 +09:00
jupyter feat(node): stabilize detecting if CJS via "type": "commonjs" in a package.json (#26439) 2024-11-13 15:10:09 +00:00
lint feat: fmt and lint respect .gitignore file (#26897) 2024-11-18 23:54:28 +01:00
registry fix(cli): show prefix hint when installing a package globally (#26629) 2024-11-16 14:57:14 +01:00
repl feat(node): stabilize detecting if CJS via "type": "commonjs" in a package.json (#26439) 2024-11-13 15:10:09 +00:00
run feat(watch): log which file changed on HMR or watch change (#25801) 2024-11-16 15:59:31 +01:00
test feat(watch): log which file changed on HMR or watch change (#25801) 2024-11-16 15:59:31 +01:00
check.rs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
clean.rs feat(clean): add progress bar (#25026) 2024-08-14 13:04:07 +02:00
compile.rs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
doc.rs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
fmt.rs feat: fmt and lint respect .gitignore file (#26897) 2024-11-18 23:54:28 +01:00
info.rs refactor(runtime/permissions): use concrete error types (#26464) 2024-11-04 09:17:21 -08:00
installer.rs fix(cli): show prefix hint when installing a package globally (#26629) 2024-11-16 14:57:14 +01:00
mod.rs BREAKING: remove deno vendor (#25343) 2024-09-03 17:00:57 +10:00
serve.rs feat(watch): log which file changed on HMR or watch change (#25801) 2024-11-16 15:59:31 +01:00
task.rs feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
upgrade.rs fix: otel resiliency (#26857) 2024-11-14 12:16:28 +00:00