Interface: TargetConfiguration<T>

Target's configuration

Type parameters

NameType
Tany

Table of contents

Properties

Properties

cache

โ€ข Optional cache: boolean

Determines if Nx is able to cache a given target.


command

โ€ข Optional command: string

Used as a shorthand for nx:run-commands, a command to run.


configurations

โ€ข Optional configurations: Object

Sets of options

Index signature

โ–ช [config: string]: any


defaultConfiguration

โ€ข Optional defaultConfiguration: string

A default named configuration to use when a target configuration is not provided.


dependsOn

โ€ข Optional dependsOn: (string | TargetDependencyConfig)[]

This describes other targets that a target depends on.


executor

โ€ข Optional executor: string

The executor/builder used to implement the target.

Example: '@nx/rollup:rollup'


inputs

โ€ข Optional inputs: (string | InputDefinition)[]

This describes filesets, runtime dependencies and other inputs that a target depends on.


metadata

โ€ข Optional metadata: TargetMetadata

Metadata about the target


options

โ€ข Optional options: T

Target's options. They are passed in to the executor.


outputs

โ€ข Optional outputs: string[]

List of the target's outputs. The outputs will be cached by the Nx computation caching engine.


parallelism

โ€ข Optional parallelism: boolean

Whether this target can be run in parallel with other tasks Default is true


syncGenerators

โ€ข Optional syncGenerators: string[]

List of generators to run before the target to ensure the workspace is up to date.