NpmRunScriptAliases.

NpmRunScript(ICakeContext, NpmRunScriptSettings) Method

Summary

Runs a npm script with the specified settings.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmRunScriptAliases

Syntax

public static void NpmRunScript(this ICakeContext context, NpmRunScriptSettings settings)

Examples

Use specific log level

var settings = 
        new NpmRunScriptSettings 
        {
            ScriptName = "hello"
            LogLevel = NpmLogLevel.Verbose
        };
    NpmRunScript(settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings NpmRunScriptSettings The settings.

Return Value

Type Description
void