mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
84e1238648
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> |
||
---|---|---|
.. | ||
additional_args | ||
additional_args_nested_strings | ||
additional_args_no_logic | ||
additional_args_no_shell_expansion | ||
bin_package | ||
bin_pkg_with_scope_auto | ||
bin_pkg_with_scope_none | ||
boolean_logic | ||
both_deno_json_selected | ||
both_no_arg | ||
both_package_json_selected | ||
both_prefers_deno | ||
byonm | ||
cwd | ||
cwd_resolves_config_from_specified_dir | ||
deno_exe_no_env | ||
deno_no_pre_post | ||
description | ||
emoji | ||
exit_code_5 | ||
init_cwd | ||
init_cwd_already_set | ||
invalid_unstable_feature | ||
no_args | ||
node_modules_dir_false | ||
non_existent | ||
npm_run | ||
npx_installed_pkg_non_byonm | ||
npx_non_existent | ||
package_json_echo | ||
package_json_no_arg | ||
package_json_node_modules_dir_none | ||
piped_stdin | ||
post | ||
post_only | ||
pre | ||
pre_only | ||
pre_post | ||
workspace |