NpmExecAliases.

NpmExec(ICakeContext, NpmExecSettings) Method

Summary

Runs an npm exec command with the specified settings.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmExecAliases

Syntax

public static void NpmExec(this ICakeContext context, NpmExecSettings settings)

Examples

Use specific log level

var settings = 
        new NpmExecSettings 
        {
            ExecCommand = "hello"
            LogLevel = NpmLogLevel.Verbose
        };
    NpmExec(settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
void