nx/docs/generated/devkit/TargetConfiguration.md
Juri Strumpflohner b51676a89a
docs(core): restructure guides into technologies sections (#31288)
Updates the docs structure, navigation etc to be easier + better suited
for showing Nx technology support beyond just TS.

**Notes:**

- API (`/nx-api`) tab is removed from the navigation (i.e. menu bar),
but pages still remain for now until we update references in `*.md`
files.
- Redirects are set up `/nx-api` to go to their respect new location
e.g. `/technologies` or `/reference/core-api`
- Old URLs still exist in the sitemap for now, but majority of them will
be redirected -- a follow-up PR can remove them.

**Preview:**
https://nx-dev-git-nx-dev-polyglot-docs-restructure-nrwl.vercel.app/docs

---------

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2025-05-29 14:55:34 -04:00

3.2 KiB

Interface: TargetConfiguration<T>

Target's configuration

Type parameters

Name Type
T any

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


continuous

Optional continuous: boolean

Whether this target runs continuously


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.