NpmPruneSettingsExtensions.

AddPackage(NpmPruneSettings, string) Method

Summary

If a package name is added, then only packages matching one of the supplied names are removed.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm.Prune
Containing Type
NpmPruneSettingsExtensions

Syntax

public static NpmPruneSettings AddPackage(this NpmPruneSettings settings, string packageName)

Parameters

Name Type Description
settings NpmPruneSettings The settings.
packageName string The package name to add.

Return Value

Type Description
NpmPruneSettings The settings instance with the package added to Packages.