Target
The target
block describes requirements for running a target. A target has a unique name in the scope of this file (see identifier).
Example Usage
target build {
depends_on = [ ^build ]
rebuild = false
outputs = [ "dist/*" ]
@npm build { arguments: { configuration: $configuration } }
# attributes can be omitted
@docker build
}
Argument Reference
The following arguments are supported:
identifier
- (Mandatory) Identifier of the target.depends_on
- (Optional) Overridedepends_on
as defined in WORKSPACE. Same syntax, same effects.rebuild
- (Optional) Force rebuild if value istrue
. Default to default value defined in WORKSPACE. If not defined, default value isfalse
.outputs
- (Optional) Override default outputs for this target. By default, the value is the set ofoutputs
from configuration and used extensions in a target.commands
- (Optional) List of commands to run to complete the target. Syntax isextension
command
[mapping]
.
⚠️
Order of commands is important.
Last updated on