This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Npm.
Summary
Install a package by name, version/tag and scope.
- Assembly
- Cake
.Npm .dll - Namespace
- Cake
.Npm .Install - Containing Type
- Npm
Install Settings Extensions
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 . |