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 pack' with options
- Assembly
- Cake
.Yarn .dll - Namespace
- Cake
.Yarn - Containing Type
- YarnRunner
Syntax
public IYarnRunnerCommands Pack(Action<YarnPackSettings> packSettings = null)
Examples
Run 'yarn pack'
Task("Yarn-Pack")
.Does(() =>
{
Yarn.Pack();
});
Run 'yarn pack --filename filename'
Task("Yarn-Pack")
.Does(() =>
{
Yarn.Pack(settings => settings.Named("Filename"));
});
Parameters
Name | Type | Description |
---|---|---|
packSettings | Action |
options when running 'yarn pack' |
Return Value
Type | Description |
---|---|
IYarnRunnerCommands |