Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

TypeScript

Contains code to call the typescript compiler. There is also a tutorial for this task available.

Nested types and modules

TypeDescription
ECMAScript

Generated ECMAScript version

ModuleGeneration

Generated JavaScript module type

TypeScriptParams

TypeScript task parameter type

Functions and values

Function or valueDescription
extractVersionNumber(di)
Signature: di:DirectoryInfo -> float
TypeScriptCompiler setParams files
Signature: setParams:(TypeScriptParams -> TypeScriptParams) -> files:seq<string> -> unit

This task to can be used to call the TypeScript compiler. There is also a tutorial for this task available.

Parameters

  • setParams - Function used to overwrite the TypeScript compiler flags.
  • files - The type script files to compile.

Sample

1: 
2: 
    !! "src/**/*.ts"
        |> TypeScriptCompiler (fun p -> { p with TimeOut = TimeSpan.MaxValue }) 
TypeScriptDefaultParams
Signature: TypeScriptParams

Default parameters for the TypeScript task