NpmVersionAliases.

NpmVersion(ICakeContext, NpmVersionSettings) Method

Summary

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

Syntax

public static string NpmVersion(this ICakeContext context, NpmVersionSettings settings)

Examples

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings NpmVersionSettings The settings.

Return Value

Type Description
string