From 9e2516486bad0e8474f8ba9953f201c0902ff219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 8 Apr 2026 08:29:15 +0200 Subject: [PATCH] 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) --- runtime/reference/cli/task.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/runtime/reference/cli/task.md b/runtime/reference/cli/task.md index f686a6770..5a84bf4f2 100644 --- a/runtime/reference/cli/task.md +++ b/runtime/reference/cli/task.md @@ -88,18 +88,18 @@ pattern. A wildcard pattern is specified with the `*` character. ```json title="deno.json" { "tasks": { - "build-client": "deno run -RW client/build.ts", - "build-server": "deno run -RW server/build.ts" + "build:client": "deno run -RW client/build.ts", + "build:server": "deno run -RW server/build.ts" } } ``` -Running `deno task "build-*"` will run both `build-client` and `build-server` +Running `deno task "build:*"` will run both `build:client` and `build:server` tasks. :::note -**When using a wildcard** make sure to quote the task name (eg. `"build-*"`), +**When using a wildcard** make sure to quote the task name (eg. `"build:*"`), otherwise your shell might try to expand the wildcard character, leading to surprising errors. @@ -210,16 +210,16 @@ useful to logically group several tasks together: ```json title="deno.json" { "tasks": { - "dev-client": "deno run --watch client/mod.ts", - "dev-server": "deno run --watch sever/mod.ts", + "dev:client": "deno run --watch client/mod.ts", + "dev:server": "deno run --watch sever/mod.ts", "dev": { - "dependencies": ["dev-client", "dev-server"] + "dependencies": ["dev:client", "dev:server"] } } } ``` -Running `deno task dev` will run both `dev-client` and `dev-server` in parallel. +Running `deno task dev` will run both `dev:client` and `dev:server` in parallel. ## Node and npx binary support