YarnRunner.

RunScript(string, Action<YarnRunSettings>) Method

Summary

execute 'yarn run' with arguments
Assembly
Cake.Yarn.dll
Namespace
Cake.Yarn
Containing Type
YarnRunner

Syntax

public IYarnRunnerCommands RunScript(string scriptName, Action<YarnRunSettings> configure = null)

Examples

Run 'yarn run hello'

Task("Yarn-Run")
    .Does(() =>
{
    Yarn.RunScript("hello");
});

Parameters

Name Type Description
scriptName string name of the script to run
configure Action<YarnRunSettings>

Return Value

Type Description
IYarnRunnerCommands