YarnRunner.

Pack(Action<YarnPackSettings>) Method

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<YarnPackSettings> options when running 'yarn pack'

Return Value

Type Description
IYarnRunnerCommands