This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Npm.
Summary
Contains settings used by
NpmPruneRunner
.
- Assembly
- Cake
.Npm .dll - Namespace
- Cake
.Npm .Prune - Base Types
-
- ToolSettings
- NpmSettings
graph BT
Type-->Base0["NpmSettings"]
click Base0 "/api/Cake.Npm/NpmSettings"
Base0-->Base1["ToolSettings"]
Type["NpmPruneSettings"]
class Type type-node
Syntax
public class NpmPruneSettings : NpmSettings
Constructors
Name | Summary |
---|---|
NpmPruneSettings |
Initializes a new instance of the NpmPruneSettings class.
|
Properties
Name | Value | Summary |
---|---|---|
Command | string |
Gets the command which should be run.
Inherited from NpmSettings
|
DryRun | bool |
If true, then no changes will actually be made.
|
Json | bool |
If true, then the changes npm prune made (or would have made with DryRun) are printed as a JSON object.
|
LogLevel | NpmLogLevel |
Gets or sets the log level which should be used to run the npm command.
Inherited from NpmSettings
|
Packages | IList |
If a package name is added, then only packages matching one of the supplied names are removed.
|
Production | bool |
Whether npm should remove modules listed in
.
|
Redirect |
bool |
Gets or sets the process option to redirect standard error output.
Inherited from NpmSettings
|
Redirect |
bool |
Gets or sets the process option to redirect standard output.
Inherited from NpmSettings
|
StandardErrorAction | Action |
Gets or sets an action to retrieve and process standard error output.
Inherited from NpmSettings
|
StandardOutputAction | Action |
Gets or sets an action to retrieve and process standard output.
Inherited from NpmSettings
|
Methods
Name | Value | Summary |
---|---|---|
EvaluateCore |
void |
Evaluates the settings and writes them to args.
|
Extension Methods
Name | Value | Summary |
---|---|---|
AddPackage |
NpmPruneSettings |
If a package name is added, then only packages matching one of the supplied names are removed.
Requires the Cake.Npm addin
|
AddPackage |
NpmPruneSettings |
If a package name is added, then only packages matching one of the supplied names are removed.
Requires the Cake.Npm addin
|
DryRun |
NpmPruneSettings |
If true, then no changes will actually be made.
Requires the Cake.Npm addin
|
DryRun |
NpmPruneSettings |
Set so no changes will actually be made.
Requires the Cake.Npm addin
|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
ForProduction |
NpmPruneSettings |
Defines whether npm should remove modules listed in
devDependencies .
Requires the Cake.Npm addin
|
ForProduction |
NpmPruneSettings |
Defines that npm should remove modules listed in
devDependencies .
Requires the Cake.Npm addin
|
FromPath |
NpmSettings |
Sets the working directory which should be used to run the npm command.
Requires the Cake.Npm addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
Json |
NpmPruneSettings |
If true, the changes npm prune made (or would have made with DryRun) are printed as a JSON object.
Requires the Cake.Npm addin
|
Json |
NpmPruneSettings |
The changes npm prune made (or would have made with DryRun) are printed as a JSON object.
Requires the Cake.Npm addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
Set |
NpmSettings |
Sets the StandardError-Action
Requires the Cake.Npm addin
|
Set |
NpmSettings |
Sets the StandardOutput-Action
Requires the Cake.Npm addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
Returns the string value or a
Not set > markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
WithLogLevel |
NpmSettings |
Sets the log level which should be used to run the npm command.
Requires the Cake.Npm addin
|