You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the tree of tasks. Inherited from [undertaker]. See the [undertaker docs for this function](https://github.com/phated/undertaker#treeoptions--object).
10
+
Fetches the current task dependency tree - in the rare case that it is needed.
11
11
12
-
## options
13
-
Type: `Object`
12
+
Generally, `tree()` won't be used by gulp consumers, but it is exposed so the CLI can show the dependency graph of the tasks defined in a gulpfile.
| options | object | Detailed in [Options][options-section] below. |
162
+
163
+
### Returns
164
+
165
+
An object detailing the tree of registered tasks - containing nested objects with `'label'` and `'nodes'` properties (which is [archy][archy-external] compatible).
166
+
167
+
Each object may have a `type` property that can be used to determine if the node is a `task` or `function`.
168
+
169
+
Each object may have a `branch` property that - when `true` - indicates the node was created using `series()` or `parallel()`.
170
+
171
+
### Options
172
+
173
+
| name | type | default | note |
174
+
|:-------:|:-------:|------------|--------|
175
+
| deep | boolean | false | If true, the entire tree will be returned. When false, only top level tasks will be returned. |
0 commit comments