Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found
here.
If the API is already migrated you can check
here if exists in a module.
More information regarding the migration can be found
here
Helpers for running the yarn tool
1:
2:
3:
4:
|
Yarn.install (fun o ->
{ o with
WorkingDirectory = "./src/FAKESimple.Web/"
})
|
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
|
Function or value | Description |
Yarn.defaultYarnParams
Signature: YarnParams
|
Yarn default parameters
|
Yarn.exec command setParams
Signature: command:string -> setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn <command>
Parameters
|
Yarn.install(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install
Parameters
|
Yarn.installFlat(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install --flat
Parameters
|
Yarn.installForced(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install --force
Parameters
|
Yarn.installHar(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install --har
Parameters
|
Yarn.installNoLock(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install --no-lockfile
Parameters
|
Yarn.installProduction(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install --production
Parameters
|
Yarn.installPureLock(setParams)
Signature: setParams:(YarnParams -> YarnParams) -> unit
|
Run yarn install --pure-lockfile
Parameters
|