FAKE - F# Make


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

Fork me on GitHub