NpmPruneSettingsExtensions Class

Summary

Extensions for NpmPruneSettings.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm.Prune
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["NpmPruneSettingsExtensions"] class Type type-node

Syntax

public static class NpmPruneSettingsExtensions

Methods

Name Value Summary
AddPackage(NpmPruneSettings, string, string) NpmPruneSettings
If a package name is added, then only packages matching one of the supplied names are removed.
static
AddPackage(NpmPruneSettings, string) NpmPruneSettings
If a package name is added, then only packages matching one of the supplied names are removed.
static
DryRun(NpmPruneSettings, bool) NpmPruneSettings
If true, then no changes will actually be made.
static
DryRun(NpmPruneSettings) NpmPruneSettings
Set so no changes will actually be made.
static
ForProduction(NpmPruneSettings, bool) NpmPruneSettings
Defines whether npm should remove modules listed in devDependencies.
static
ForProduction(NpmPruneSettings) NpmPruneSettings
Defines that npm should remove modules listed in devDependencies.
static
Json(NpmPruneSettings, bool) NpmPruneSettings
If true, the changes npm prune made (or would have made with DryRun) are printed as a JSON object.
static
Json(NpmPruneSettings) NpmPruneSettings
The changes npm prune made (or would have made with DryRun) are printed as a JSON object.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin