1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/cli/tools
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
..
bench fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04: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 fix: otel resiliency (#26857) 2024-11-14 12:16:28 +00:00
registry fix(install): cache jsr deps from all workspace config files (#26779) 2024-11-08 12:45:30 -08: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(node): stabilize detecting if CJS via "type": "commonjs" in a package.json (#26439) 2024-11-13 15:10:09 +00:00
test fix: otel resiliency (#26857) 2024-11-14 12:16:28 +00: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 fix(fmt): error instead of panic on unstable format (#26859) 2024-11-13 15:39:40 +00:00
info.rs refactor(runtime/permissions): use concrete error types (#26464) 2024-11-04 09:17:21 -08:00
installer.rs feat(node): stabilize detecting if CJS via "type": "commonjs" in a package.json (#26439) 2024-11-13 15:10:09 +00:00
mod.rs BREAKING: remove deno vendor (#25343) 2024-09-03 17:00:57 +10:00
serve.rs fix(serve): support serve hmr (#26078) 2024-10-30 10:32:18 -07:00
task.rs feat(task): support object notation, remove support for JSDocs (#26886) 2024-11-16 12:18:17 +01:00
upgrade.rs fix: otel resiliency (#26857) 2024-11-14 12:16:28 +00:00