NpmExecAliases.

NpmExec(ICakeContext, string, Action<NpmExecSettings>) Method

Summary

Runs an npm exec command using the settings returned by a configurator.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmExecAliases

Syntax

public static void NpmExec(this ICakeContext context, string command, Action<NpmExecSettings> configurator)

Examples

Use specific log level

NpmExec("hello", settings => settings.WithLogLevel(NpmLogLevel.Verbose));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
command string Command to execute.
configurator Action<NpmExecSettings> The settings configurator.

Return Value

Type Description
void