NpmPruneAliases.

NpmPrune(ICakeContext, Action<NpmPruneSettings>) Method

Summary

Runs npm prune using the settings returned by a configurator.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmPruneAliases

Syntax

public static void NpmPrune(this ICakeContext context, Action<NpmPruneSettings> configurator)

Examples

Use specific log level

NpmPrune(settings => settings.WithLogLevel(NpmLogLevel.Verbose));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
void