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) Override depends_on as defined in WORKSPACE. Same syntax, same effects.
  • rebuild - (Optional) Force rebuild if value is true. Default to default value defined in WORKSPACE. If not defined, default value is false.
  • outputs - (Optional) Override default outputs for this target. By default, the value is the set of outputs from configuration and used extensions in a target.
  • commands - (Optional) List of commands to run to complete the target. Syntax is extension command [mapping].
⚠️
Order of commands is important.
Last updated on