1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/tests/specs/task
Bartek Iwańczuk 84e1238648
feat(task): support object notation, remove support for JSDocs (#26886)
This commit changes three aspects of `deno task`:
1. Tasks can now be written using object notation like so:
```jsonc
{
  "tasks": {
     "foo": "deno run foo.js",
     "bar": {
        "command": "deno run bar.js"
     }
}
```
2. Support for comments for tasks is now removed. Comments above tasks
will
no longer be printed when running `deno task`.
3. Tasks written using object notation can have "description" field that
replaces
support for comments above tasks:
```jsonc
{
  "tasks": {
     "bar": {
        "description": "This is a bar task"
        "command": "deno run bar.js"
     }
}
```
```
$ deno task
Available tasks:
- bar
    // This is a bar task
    deno run bar.js
```

Pulled most of the changes from
https://github.com/denoland/deno/pull/26467 to
support "dependencies" in tasks. Additionally some cleanup was performed
to make code easier to read.

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2024-11-16 12:18:17 +01: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
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