Skip to main content

PartialTaskOptionsConfig

Options to control task inheritance and execution.

Index

Properties

optionalaffectedFiles

affectedFiles?: null | TaskOptionAffectedFiles

The pattern in which affected files will be passed to the task.

optionalaffectedPassInputs

affectedPassInputs?: null | boolean

When affected and no files are matching, pass the task inputs as arguments to the command, instead of ..

optionalallowFailure

allowFailure?: null | boolean

Allows the task to fail without failing the entire pipeline.

optionalcache

cache?: null | boolean

Caches the outputs of the task

optionalenvFile

envFile?: null | TaskOptionEnvFile

Loads and sets environment variables from the .env file when running the task.

optionalinteractive

interactive?: null | boolean

Marks the task as interactive, so that it will run in isolation, and have direct access to stdin.

optionalinternal

internal?: null | boolean

Marks the task as internal, which disables it from begin ran from the command line, but can be depended on.

optionalmergeArgs

mergeArgs?: null | TaskMergeStrategy = null | TaskMergeStrategy

The strategy to use when merging args with an inherited task.

optionalmergeDeps

mergeDeps?: null | TaskMergeStrategy = null | TaskMergeStrategy

The strategy to use when merging deps with an inherited task.

optionalmergeEnv

mergeEnv?: null | TaskMergeStrategy = null | TaskMergeStrategy

The strategy to use when merging env with an inherited task.

optionalmergeInputs

mergeInputs?: null | TaskMergeStrategy = null | TaskMergeStrategy

The strategy to use when merging inputs with an inherited task.

optionalmergeOutputs

mergeOutputs?: null | TaskMergeStrategy = null | TaskMergeStrategy

The strategy to use when merging outputs with an inherited task.

optionalmutex

mutex?: null | string

Creates an exclusive lock on a virtual resource, preventing other tasks using the same resource from running concurrently.

optionaloutputStyle

outputStyle?: null | TaskOutputStyle = null | TaskOutputStyle

The style in which task output will be printed to the console.

@envvar

MOON_OUTPUT_STYLE

optionalpersistent

persistent?: null | boolean

Marks the task as persistent (continuously running). This is ideal for watchers, servers, or never-ending processes.

optionalretryCount

retryCount?: null | number

The number of times a failing task will be retried to succeed.

@envvar

MOON_RETRY_COUNT

optionalrunDepsInParallel

runDepsInParallel?: null | boolean

Runs direct task dependencies (via deps) in sequential order. This does not apply to indirect or transient dependencies.

optionalrunFromWorkspaceRoot

runFromWorkspaceRoot?: null | boolean

Runs the task from the workspace root, instead of the project root.

optionalrunInCI

runInCI?: null | boolean

Whether to run the task in CI or not, when executing moon ci.

optionalshell

shell?: null | boolean

Runs the task within a shell. When not defined, runs the task directly while relying on PATH resolution.

optionalunixShell

unixShell?: null | TaskUnixShell

The shell to run the task in when on a Unix-based machine.

optionalwindowsShell

windowsShell?: null | TaskWindowsShell

The shell to run the task in when on a Windows machine.