Skip to content

Commit 9e25164

Browse files
bartlomiejuclaude
andcommitted
docs: use colons as task name separators in examples
Updates task naming examples to use colons (e.g. `build:client`, `dev:server`) instead of hyphens, following the widely adopted npm ecosystem convention for namespaced tasks. Ref #2989 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2fed5bc commit 9e25164

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

runtime/reference/cli/task.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,18 @@ pattern. A wildcard pattern is specified with the `*` character.
8888
```json title="deno.json"
8989
{
9090
"tasks": {
91-
"build-client": "deno run -RW client/build.ts",
92-
"build-server": "deno run -RW server/build.ts"
91+
"build:client": "deno run -RW client/build.ts",
92+
"build:server": "deno run -RW server/build.ts"
9393
}
9494
}
9595
```
9696

97-
Running `deno task "build-*"` will run both `build-client` and `build-server`
97+
Running `deno task "build:*"` will run both `build:client` and `build:server`
9898
tasks.
9999

100100
:::note
101101

102-
**When using a wildcard** make sure to quote the task name (eg. `"build-*"`),
102+
**When using a wildcard** make sure to quote the task name (eg. `"build:*"`),
103103
otherwise your shell might try to expand the wildcard character, leading to
104104
surprising errors.
105105

@@ -210,16 +210,16 @@ useful to logically group several tasks together:
210210
```json title="deno.json"
211211
{
212212
"tasks": {
213-
"dev-client": "deno run --watch client/mod.ts",
214-
"dev-server": "deno run --watch sever/mod.ts",
213+
"dev:client": "deno run --watch client/mod.ts",
214+
"dev:server": "deno run --watch sever/mod.ts",
215215
"dev": {
216-
"dependencies": ["dev-client", "dev-server"]
216+
"dependencies": ["dev:client", "dev:server"]
217217
}
218218
}
219219
}
220220
```
221221

222-
Running `deno task dev` will run both `dev-client` and `dev-server` in parallel.
222+
Running `deno task dev` will run both `dev:client` and `dev:server` in parallel.
223223

224224
## Node and npx binary support
225225

0 commit comments

Comments
 (0)