NpmPackSettingsExtensions.

FromSource(NpmPackSettings, string) Method

Summary

Sets the source to pack.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm.Pack
Containing Type
NpmPackSettingsExtensions

Syntax

public static NpmPackSettings FromSource(this NpmPackSettings settings, string source)

Parameters

Name Type Description
settings NpmPackSettings The settings.
source string Source to pack. Can be anything that is installable by npm, like a package folder, tarball, tarball url, name@tag, name@version, name, or scoped name.

Return Value

Type Description
NpmPackSettings The settings instance with Source set to source.