Skip to content

Commit

Permalink
chore(docs): update rundeps examples (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerdav authored Dec 7, 2023
1 parent 01aa6e0 commit ce2f209
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions doc/content/task-syntax/run-deps.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ menu: { main: { parent: "task-syntax", weight: 11 } }
By default, the dependencies of a task are run sequentially, in the order they are listed.
However we may prefer for all the dependencies of a task to be run in paralled.

The solution would be to set the `runDeps` attribute to `async` (defaults to `sync`).
The solution would be to set the `RunDeps` attribute to `async` (defaults to `sync`).

```markdown
### build-all

requires: build-js, build-css
runDeps: async
Requires: build-js, build-css

RunDeps: async
```

This will result in both `build-js` and `build-css` being run in parallel.
Expand All @@ -26,15 +27,15 @@ The default is `sync`, which can be omitted or specified.
```markdown
### build-all

requires: build-js, build-css
runDeps: sync
Requires: build-js, build-css

RunDeps: sync
```

is the same as

```markdown
### build-all

requires: build-js, build-css
runDeps: sync
Requires: build-js, build-css
```

0 comments on commit ce2f209

Please sign in to comment.