NpmScope

This scoping object is created by the ScriptScope.npm function. Its purpose is providing access to functionality such as execution functions that can run NPM scripts.

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

This execution function is used to run an NPM install operation, which installs a package/project from a package.json file. The body parameter is supplied as a higher-order function that executes within the scope of an NpmInstallExecutionTemplate object, in which the parameters for the installation process can be declared.

Link copied to clipboard

This execution function is used to run an NPM run operation, which runs a script as defined in a package.json file. The body parameter is supplied as a higher-order function that executes within the scope of an NpmRunExecutionTemplate object, in which the parameters for the script execution can be declared.