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