NpmSettingsExtensions Class

Summary

Extensions for NpmSettings.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Base Types
  • Object
NpmSettingsExtensions
Object

Syntax

public static class NpmSettingsExtensions

Methods

Name Value Summary
FromPath(NpmSettings, DirectoryPath) NpmSettings
Sets the working directory which should be used to run the npm command.
static
SetRedirectedStandardErrorHandler(NpmSettings, Action<string>) NpmSettings
Sets the StandardError-Action
static
SetRedirectedStandardOutputHandler(NpmSettings, Action<string>) NpmSettings
Sets the StandardOutput-Action
static
WithLogLevel(NpmSettings, NpmLogLevel) NpmSettings
Sets the log level which should be used to run the npm command.
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