YarnRunner.

Install(Action<YarnInstallSettings>) Method

Summary

execute 'yarn install' with options
Assembly
Cake.Yarn.dll
Namespace
Cake.Yarn
Containing Type
YarnRunner

Syntax

public IYarnRunnerCommands Install(Action<YarnInstallSettings> configure = null)

Examples

Run 'yarn install'

Task("Yarn-FromPath")
    .Does(() =>
{
    Yarn.FromPath("./dir-with-packagejson").Install();
});

Run 'yarn install'

Task("Yarn-Install")
    .Does(() =>
{
    Yarn.Install();
});

Parameters

Name Type Description
configure Action<YarnInstallSettings> options when running 'yarn install'

Return Value

Type Description
IYarnRunnerCommands