mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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> |
||
---|---|---|
.. | ||
bench | ||
coverage | ||
init | ||
jupyter | ||
lint | ||
registry | ||
repl | ||
run | ||
test | ||
check.rs | ||
clean.rs | ||
compile.rs | ||
doc.rs | ||
fmt.rs | ||
info.rs | ||
installer.rs | ||
mod.rs | ||
serve.rs | ||
task.rs | ||
upgrade.rs |