1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/specs/task
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
..
additional_args chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
additional_args_nested_strings chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
additional_args_no_logic chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
additional_args_no_shell_expansion chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
bin_package fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
bin_pkg_with_scope_auto fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
bin_pkg_with_scope_none fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
boolean_logic chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
both_deno_json_selected chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
both_no_arg chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
both_package_json_selected fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
both_prefers_deno chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
byonm chore: remove DENO_FUTURE=1 from spec tests (#25329) 2024-08-31 21:25:32 +00:00
cwd chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
cwd_resolves_config_from_specified_dir chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_exe_no_env chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
deno_no_pre_post chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
dependencies feat(task): dependencies (#26467) 2024-11-19 12:45:09 +00:00
description feat(task): support object notation, remove support for JSDocs (#26886) 2024-11-16 12:18:17 +01:00
emoji chore: deprecate task itests (#25558) 2024-09-11 17:39:47 +02:00
exit_code_5 chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
init_cwd chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
init_cwd_already_set chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
invalid_unstable_feature fix(unstable): move sloppy-import warnings to lint rule (#24710) 2024-07-25 09:07:59 -04:00
no_args chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
node_modules_dir_false refactor: remove DENO_FUTURE (#25314) 2024-08-30 21:58:24 +00:00
non_existent chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
npm_run fix(task): always use npm for npm run with flags (#24028) 2024-05-29 20:16:35 +00:00
npx_installed_pkg_non_byonm BREAKING: DENO_FUTURE=1 by default, or welcome to Deno 2.0 (#25213) 2024-08-30 13:58:58 -04:00
npx_non_existent chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
package_json_echo chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
package_json_no_arg chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
package_json_node_modules_dir_none fix(npm): ensure scoped package name is encoded in URLs (#26390) 2024-10-18 20:38:57 +02:00
piped_stdin chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
post chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
post_only chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
pre chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
pre_only chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
pre_post chore: remove unnecessary envs in spec tests (#25982) 2024-10-02 10:14:38 +01:00
workspace fix(cli): deno task exit with status 0 (#25637) 2024-09-15 11:29:24 +05:30