NpmInstallSettingsExtensions.

AddPackage(NpmInstallSettings, string, string, string) Method

Summary

Install a package by name, version/tag and scope.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm.Install
Containing Type
NpmInstallSettingsExtensions

Syntax

public static NpmInstallSettings AddPackage(this NpmInstallSettings settings, string packageName, string scope, string versionOrTag)

Parameters

Name Type Description
settings NpmInstallSettings The settings.
packageName string Name of the package.
scope string Scope of the package. Null for not restricting to a scope.
versionOrTag string Version or tag published to the registry. Null for latest version.

Return Value

Type Description
NpmInstallSettings The settings instance with packageName added to Packages.