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

OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

TypeScript

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

Nested types and modules

TypeDescription
ECMAScript
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

Generated ECMAScript version

ModuleGeneration
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

Generated JavaScript module type

TypeScriptParams
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

TypeScript task parameter type

Functions and values

Function or valueDescription
buildArguments parameters file
Signature: parameters:TypeScriptParams -> file:string -> string
extractVersionNumber(di)
Signature: di:DirectoryInfo -> float
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

TypeScriptCompiler setParams files
Signature: setParams:(TypeScriptParams -> TypeScriptParams) -> files:seq<string> -> unit
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

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 }) 
TypeScriptCompilerPrefix
Signature: string
TypeScriptDefaultParams
Signature: TypeScriptParams
Attributes:
[<Obsolete("This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.")>]
OBSOLETE

This API is obsolete. There is no alternative in FAKE 5 yet. You can help by porting this module.

Default parameters for the TypeScript task