NpmPackAliases.

NpmPack(ICakeContext, string) Method

Summary

Creates a npm package from a specific source. Package will be created in the current working directory.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmPackAliases

Syntax

public static IEnumerable<FilePath> NpmPack(this ICakeContext context, string source)

Examples

NpmPack("c:\mypackagesource");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
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
IEnumerable<FilePath> List of created packages.