NpmRunExecutionTemplate

The ExecutionTemplate which is created using the run execution builder function. This template class is used as a builder to construct the arguments for running a script with NPM.

Properties

Link copied to clipboard
abstract val ctx: ScopeContext

This field contains the context object that is applicable to the scope that defines the execution. The object is inherited directly from the parent net.democritus.scripting.scope.ScriptScope without alterations.

Functions

Link copied to clipboard
abstract fun arg(vararg values: String)
abstract fun arg(values: List<String>)

Defines an argument that will be passed to the script that is ran with NPM. This is equivalent to adding parameters after the -- separator.

Link copied to clipboard
abstract fun script(value: String)

The name of the script to run as defined in the package.json file.