Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearify matching workspace member names with task --filter #1342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion runtime/reference/cli/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ directories in parallel. To execute `dev` tasks from all workspace members use
```jsonc title="client/deno.json"
{
"tasks": {
"name": "@scope/client",
"dev": "deno run -RN build.ts"
}
}
Expand All @@ -201,6 +202,7 @@ directories in parallel. To execute `dev` tasks from all workspace members use
```jsonc title="server/deno.json"
{
"tasks": {
"name": "@scope/server",
"dev": "deno run -RN server.ts"
}
}
Expand All @@ -218,12 +220,15 @@ Project bundled
Tasks to run can be filtered based on the workspace members:

```bash
$ deno task --filter "client/*" dev
$ deno task --filter "client" dev
Task dev deno run -RN build.ts
Bundling project...
Project bundled
```

Note that the filter matches against the workspace member names as specified in
the `name` field of each member's `deno.json` file.

## Syntax

`deno task` uses a cross-platform shell that's a subset of sh/bash to execute
Expand Down
Loading