NpmSetAliases.

NpmSet(ICakeContext, Action<NpmSetSettings>) Method

Summary

Sets an npm configuration setting returned by a configurator.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmSetAliases

Syntax

public static void NpmSet(this ICakeContext context, Action<NpmSetSettings> configurator)

Examples

Use speSetfic log level ('npm Set')

NpmSet(settings => settings.ForKey("progress").WithValue("false"));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
configurator Action<NpmSetSettings> The settings configurator.

Return Value

Type Description
void