YarnInstallSettings Class

Summary

Yarn install options
Assembly
Cake.Yarn.dll
Namespace
Cake.Yarn
Base Types
graph BT Type-->Base0["YarnRunnerSettings"] click Base0 "/api/Cake.Yarn/YarnRunnerSettings" Base0-->Base1["ToolSettings"] Type["YarnInstallSettings"] class Type type-node

Syntax

public class YarnInstallSettings : YarnRunnerSettings

Constructors

Name Summary
YarnInstallSettings() Yarn "install" settings

Properties

Name Value Summary
Arguments IReadOnlyCollection<string>
Arguments to pass to the target script
Command string
The command being ran
Inherited from YarnRunnerSettings
FrozenLockfile bool
--frozen-lockfile
IgnoreEngines bool
--ignore-engines
IgnoreOptional bool
--ignore-optional
IgnorePlatform bool
--ignore-platform
OfflineInstall bool
--offline
Production bool
--production

Methods

Name Value Summary
EvaluateCore(ProcessArgumentBuilder) void
Evaluate options
ForProduction(bool) YarnInstallSettings
Applies the --production parameter (can not be set when installing individual packages
IgnoreEnginesWarnings(bool) YarnInstallSettings
Applies the --ignore-engines parameter
IgnoreOptionalWarnings(bool) YarnInstallSettings
Applies the --ignore-optional parameter
IgnorePlatformWarnings(bool) YarnInstallSettings
Applies the --ignore-platform parameter
Offline(bool) YarnInstallSettings
Applies the --offline parameter
WithArgument(string) YarnInstallSettings
Apply any individual argument.
WithFrozenLockfile(bool) YarnInstallSettings
Applies the --frozen-lockfile parameter

Extension Methods

Name Value Summary
Dump<YarnInstallSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<YarnInstallSettings>(YarnInstallSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<YarnInstallSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<YarnInstallSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<YarnInstallSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<YarnInstallSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin