NpmRebuildAliases.

NpmRebuild(ICakeContext, Action<NpmRebuildSettings>) Method

Summary

Rebuild packages using the settings returned by a configurator.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmRebuildAliases

Syntax

public static void NpmRebuild(this ICakeContext context, Action<NpmRebuildSettings> configurator)

Examples

Rebuild packages in a specific working directory ('npm rebuild')

NpmRebuild(settings => settings.FromPath(@"c:\myproject"));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
configurator Action<NpmRebuildSettings> The settings configurator

Return Value

Type Description
void