This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Npm.
Summary
Runs a npm script using the settings returned by a configurator.
- Assembly
- Cake
.Npm .dll - Namespace
- Cake
.Npm - Containing Type
- NpmRunScriptAliases
Syntax
public static void NpmRunScript(this ICakeContext context, string scriptName, Action<NpmRunScriptSettings> configurator)
Examples
Use specific log level
NpmRunScript("hello", settings => settings.WithLogLevel(NpmLogLevel.Verbose));
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
scriptName | string | Name of the script to execute as defined in package.json. |
configurator | Action |
The settings configurator. |
Return Value
Type | Description |
---|---|
void |