NpmRunScriptAliases.

NpmRunScript(ICakeContext, string) Method

Summary

Runs a npm script defined in the package.json from the current folder.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmRunScriptAliases

Syntax

public static void NpmRunScript(this ICakeContext context, string scriptName)

Examples

NpmRunScript("hello");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
scriptName string Name of the script to execute as defined in package.json.

Return Value

Type Description
void