NpmVersionAliases.

NpmVersion(ICakeContext, Action<NpmVersionSettings>) Method

Summary

Versions all packages for the project in the current working directory using the settings returned by a configurator.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmVersionAliases

Syntax

public static string NpmVersion(this ICakeContext context, Action<NpmVersionSettings> configurator)

Examples

var versionString = NpmVersion(settings => settings.WithLogLevel(NpmLogLevel.Verbose));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
string