FAKE - F# Make - A DSL for build tasks and more FAKE
6.1.3

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

Yarn Module

Helpers for running the yarn tool

Example


 Yarn.install (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Types

Type Description

InstallArgs

Arguments for the Yarn install command

YarnCommand

The list of supported Yarn commands. The `Custom` alternative can be used for other commands not in the list until they are implemented

YarnParams

The Yarn parameter type

Functions and values

Function or value Description

Yarn.defaultYarnParams

Full Usage: Yarn.defaultYarnParams

Returns: YarnParams

Yarn default parameters

Returns: YarnParams

Yarn.exec command setParams

Full Usage: Yarn.exec command setParams

Parameters:

Run yarn <command>

command : string
setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.exec "someCommand" (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.install setParams

Full Usage: Yarn.install setParams

Parameters:

Run yarn install

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.install (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installFlat setParams

Full Usage: Yarn.installFlat setParams

Parameters:

Run yarn install --flat

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installFlat (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installForced setParams

Full Usage: Yarn.installForced setParams

Parameters:

Run yarn install --force

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installForced (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installFrozenLockFile setParams

Full Usage: Yarn.installFrozenLockFile setParams

Parameters:

Run yarn install --frozen-lockfile

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installFrozenLockFile (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installHar setParams

Full Usage: Yarn.installHar setParams

Parameters:

Run yarn install --har

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installHar (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installNoLock setParams

Full Usage: Yarn.installNoLock setParams

Parameters:

Run yarn install --no-lockfile

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installNoLock (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installProduction setParams

Full Usage: Yarn.installProduction setParams

Parameters:

Run yarn install --production

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installProduction (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })

Yarn.installPureLock setParams

Full Usage: Yarn.installPureLock setParams

Parameters:

Run yarn install --pure-lockfile

setParams : YarnParams -> YarnParams

Set command parameters

Example


 Yarn.installPureLock (fun o ->
         { o with
             WorkingDirectory = "./src/FAKESimple.Web/"
         })