NpmRunScriptSettings Class

Summary

Contains settings used by NpmScriptRunner.
Namespace
Cake.Npm.RunScript
Base Types
graph BT Type-->Base0["NpmSettings"] click Base0 "/Cake.Npm/api/Cake.Npm/NpmSettings" Base0-->Base1["object"] Type["NpmRunScriptSettings"] class Type type-node

Syntax

public class NpmRunScriptSettings : NpmSettings

Constructors

Name Summary
NpmRunScriptSettings() Initializes a new instance of the NpmRunScriptSettings class.

Properties

Name Value Summary
Arguments IList<string>
Arguments to pass to the target script.
ScriptName string
Name of the script to execute as defined in package.json.

Methods

Name Value Summary
EvaluateCore(ProcessArgumentBuilder) void
Evaluates the settings and writes them to args.

Extension Methods

Name Value Summary
FromPath(DirectoryPath) NpmSettings
Sets the working directory which should be used to run the npm command.
SetRedirectedStandardErrorHandler(Action<string>) NpmSettings
Sets the StandardError-Action
SetRedirectedStandardOutputHandler(Action<string>) NpmSettings
Sets the StandardOutput-Action
WithArguments(string) NpmRunScriptSettings
Sets the arguments which should be passed to the script.
WithLogLevel(NpmLogLevel) NpmSettings
Sets the log level which should be used to run the npm command.
GitHub
Discussion