BowerInstallSettings Class

Summary

Bower install settings
Assembly
Cake.Bower.dll
Namespace
Cake.Bower
Base Types
graph BT Type-->Base0["BowerRunnerSettings"] click Base0 "/api/Cake.Bower/BowerRunnerSettings" Base0-->Base1["ToolSettings"] Type["BowerInstallSettings"] class Type type-node

Syntax

public class BowerInstallSettings : BowerRunnerSettings

Constructors

Name Summary
BowerInstallSettings() Bower install settings

Fields

Name Constant Value Summary
Command
The command to run
Inherited from BowerRunnerSettings

Properties

Name Value Summary
AllowRoot bool
Allows running commands as root
Inherited from BowerRunnerSettings
Force bool
Makes various commands more forceful
Inherited from BowerRunnerSettings
ForceLatest bool
Force latest version on conflict
Json bool
Output consumable JSON
Inherited from BowerRunnerSettings
LogLevel BowerLogLevel
What level of logs to report
Inherited from BowerRunnerSettings
Offline bool
Do not use network connection
Inherited from BowerRunnerSettings
Package string
Package to install See https://bower.io/docs/api/#install for details on package format
Production bool
Do not install project devDependencies
Quiet bool
Only output important information. It is an alias for --loglevel=warn
Inherited from BowerRunnerSettings
Save bool
Save installed packages into the project’s bower.json dependencies
SaveDev bool
Save installed packages into the project’s bower.json devDependencies
SaveExact bool
Configure installed packages with an exact version rather than semver
Silent bool
Do not output anything, besides errors. It is an alias for --loglevel=error
Inherited from BowerRunnerSettings
Verbose bool
Makes output more verbose. It is an alias for --loglevel=debug
Inherited from BowerRunnerSettings

Methods

Name Value Summary
EvaluateCore(ProcessArgumentBuilder) void
Evaluate options
ForProduction(bool) BowerInstallSettings
Applies the --production parameter
WithForceLatest(bool) BowerInstallSettings
Applies the --force-latest parameter
WithPackage(string) BowerInstallSettings
Name of the package to use. See https://bower.io/docs/api/#install for details
WithSave(bool) BowerInstallSettings
Applies the --save parameter
WithSaveDev(bool) BowerInstallSettings
Applies the --save-dev parameter
WithSaveExact(bool) BowerInstallSettings
Applies the --save-exact parameter

Extension Methods

Name Value Summary
Dump<BowerInstallSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BowerInstallSettings>(BowerInstallSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BowerInstallSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BowerInstallSettings>(string) void
Requires the Cake.Issues addin
ThrowIfNull<BowerInstallSettings>(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<BowerInstallSettings>(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
ToStringWithNullMarkup() string
Requires the Cake.Issues addin
UseWorkingDirectory<BowerInstallSettings>(DirectoryPath) T
Set the working directory for the bower runner settings
Requires the Cake.Bower addin
WithAllowRoot<BowerInstallSettings>() T
Add --allow-root
Requires the Cake.Bower addin
WithForce<BowerInstallSettings>() T
Add --force to the bower command
Requires the Cake.Bower addin
WithJson<BowerInstallSettings>() T
Add --json
Requires the Cake.Bower addin
WithLogLevel<BowerInstallSettings>(BowerLogLevel) T
Sets the log level e.g. --loglevel=warn
Requires the Cake.Bower addin
WithOffline<BowerInstallSettings>() T
Add --offline
Requires the Cake.Bower addin
WithQuiet<BowerInstallSettings>() T
Add --quiet
Requires the Cake.Bower addin
WithSilent<BowerInstallSettings>() T
Add --silent
Requires the Cake.Bower addin
WithVerbose<BowerInstallSettings>() T
Add --verbose
Requires the Cake.Bower addin