nullΒΆ
- Alias:
null
- Task:
Maestro\Library\Task\Task\NullTask
- Handler:
Maestro\Library\Task\Task\NullHandler
- Arguments:
- This task has no arguments
This task does nothing. It can be used to create aggregate targets.
In the following example the null
tasks 4, 5 and 6 depend on all of tasks
1, 2, and 3 to be successful. Rather than each explicitly declaring all the
dependencies, they can target the null
task.
Example:
{
"nodes": {
"example/package": {
"nodes": {
"phpunit": {},
"phpstan": {},
"php-cs-fixer": {},
"qa": {
"depends": [
"phpunit",
"phpstan",
"php-cs-fixer"
]
},
"tag_versions": {
"depends": ["qa"]
},
"build_documentation": {
"depends": ["qa"]
}
}
}
}
}
Which looks something like this: