0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 12:16:11 -05:00
denoland-deno/cli/tools
Marvin Hagemeister c44b05cab5
feat(task): add support for task wildcards (#27007)
This PR adds support for passing wildcard tasks. All matched tasks are
sorted in case they have dependencies. Tasks already in the dependency
tree will be pruned so that every task only runs once.

```json
{
  "tasks": {
    "foo-1": "echo 'foo-1'",
    "foo-2": "echo 'foo-2'"
  }
}
```

```sh
$ deno task "foo-*"
Task foo-1 echo 'foo-1'
foo-1
Task foo-2 echo 'foo-2'
foo-2
```

The changes in the PR look a little bigger than they really are due to
formatting. For the most part, I've only needed to hoist up the task
matching logic.

Closes https://github.com/denoland/deno/issues/26944
Closes https://github.com/denoland/deno/issues/21530

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-01-30 14:37:10 +01:00
..
bench refactor: move denort to separate crate (#27688) 2025-01-17 20:39:29 +00:00
coverage fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
doc refactor: update deno_doc, use prismjs, remove internal reference html generation logic (#26885) 2024-11-19 08:56:04 -08:00
init fix(init): correct dev task for --lib (#27860) 2025-01-29 16:53:13 +00:00
jupyter fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
lint feat(check/lsp): support "compilerOptions.rootDirs" (#27844) 2025-01-30 00:20:25 +00:00
registry feat(check/lsp): support "compilerOptions.rootDirs" (#27844) 2025-01-30 00:20:25 +00:00
repl fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
run refactor: create NpmInstaller (#27626) 2025-01-13 17:35:18 -05:00
test refactor: update deno_core and use more concrete errors (#27620) 2025-01-17 09:41:52 -08:00
check.rs fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
clean.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-23 18:52:55 -05:00
compile.rs fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
doc.rs fix(check): compiler options from workspace members (#27785) 2025-01-28 10:49:58 -05:00
fmt.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-23 18:52:55 -05:00
info.rs feat(check/lsp): support "compilerOptions.rootDirs" (#27844) 2025-01-30 00:20:25 +00:00
installer.rs fix(install/global): warn about not including auto-discovered config file (#27745) 2025-01-27 14:18:27 -05:00
mod.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
serve.rs refactor: create deno_lib crate (#27673) 2025-01-15 09:35:46 -05:00
task.rs feat(task): add support for task wildcards (#27007) 2025-01-30 14:37:10 +01:00
upgrade.rs refactor: move denort to separate crate (#27688) 2025-01-17 20:39:29 +00:00