NpmPruneAliases.

NpmPrune(ICakeContext, NpmPruneSettings) Method

Summary

Runs npm prune with the specified settings.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmPruneAliases

Syntax

public static void NpmPrune(this ICakeContext context, NpmPruneSettings settings)

Examples

Use specific log level

var settings = 
        new NpmPruneSettings 
        {
            LogLevel = NpmLogLevel.Verbose
        };
    NpmPrune(settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
void