YarnRunner.

Remove(Action<YarnRemoveSettings>) Method

Summary

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

Syntax

public IYarnRunnerCommands Remove(Action<YarnRemoveSettings> configure = null)

Examples

Run 'yarn remove gulp'

Task("Yarn-Remove-Gulp")
    .Does(() =>
{
    Yarn.Remove(settings => settings.Package("gulp"));
});

Run 'yarn global remove gulp'

Task("Yarn-remove-Gulp")
    .Does(() =>
{
    Yarn.Remove(settings => settings.Package("gulp").Globally());
});

Parameters

Name Type Description
configure Action<YarnRemoveSettings> options when running 'yarn remove'

Return Value

Type Description
IYarnRunnerCommands