1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/cli/schemas
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
..
config-file.v1.json feat(task): support object notation, remove support for JSDocs (#26886) 2024-11-16 12:18:17 +01:00
kv-metadata-exchange-response.v1.json feat(ext/kv): connect to remote database (#20178) 2023-08-22 13:56:00 +08:00
module-graph.json BREAKING: remove "emit" and "map" from deno info output (#25468) 2024-09-05 14:22:13 +00:00
registry-completions.v1.json feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
registry-completions.v2.json feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00