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.Yarn.
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 |
options when running 'yarn install' |
Return Value
Type | Description |
---|---|
IYarnRunnerCommands |