NpmExecAliases.

NpmExec(ICakeContext, string, IEnumerable<string>) Method

Summary

Runs an npm exec command.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmExecAliases

Syntax

public static void NpmExec(this ICakeContext context, string command, IEnumerable<string> arguments)

Examples

NpmExec("hello", new List<string> { "--foo=bar" });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
command string Command to execute.
arguments IEnumerable<string> Arguments to pass to the target command.

Return Value

Type Description
void