NpmPublishSettings Class

Summary

Contains settings used by NpmPublisher.
Namespace
Cake.Npm.Publish
Base Types
graph BT Type-->Base0["NpmSettings"] click Base0 "/Cake.Npm/api/Cake.Npm/NpmSettings" Base0-->Base1["object"] Type["NpmPublishSettings"] class Type type-node

Syntax

public class NpmPublishSettings : NpmSettings

Constructors

Name Summary
NpmPublishSettings() Initializes a new instance of the NpmPublishSettings class.

Properties

Name Value Summary
Access NpmPublishAccess
Gets or sets whether the package should be published as public or restricted.
Registry Uri
Gets or sets the registry where the package should be published to. Defaulted to whatever the NPM configuration is.
Source string
Gets or sets the source to publish. A folder containing a package.json file or an url or file path to a gzipped tar archive containing a single folder with a package.json file inside.
Tag string
Gets or sets the tag with which the package will be published. By default the latest tag is used.

Methods

Name Value Summary
EvaluateCore(ProcessArgumentBuilder) void
Evaluates the settings and writes them to args.

Extension Methods

Name Value Summary
FromPath(DirectoryPath) NpmSettings
Sets the working directory which should be used to run the npm command.
FromSource(string) NpmPublishSettings
Sets the source to publish.
SetRedirectedStandardErrorHandler(Action<string>) NpmSettings
Sets the StandardError-Action
SetRedirectedStandardOutputHandler(Action<string>) NpmSettings
Sets the StandardOutput-Action
ToRegistry(Uri) NpmPublishSettings
Sets the registry where the package will be published to.
WithAccess(NpmPublishAccess) NpmPublishSettings
Sets the access of the published package.
WithLogLevel(NpmLogLevel) NpmSettings
Sets the log level which should be used to run the npm command.
WithTag(string) NpmPublishSettings
Sets the tag of the package to publish.
GitHub
Discussion