Configuring the Typescript Compiler (tsc)

Basic configuration

The configuration for tsc can be added to PROJECTS.yaml to enable project-specific settings, in particular to use the tsc in the project instead of the tsc installation that is shipped with TICS.

Syntax

TOOLS:
  tsc:
    [USEPROJECTTSC: 0|1 'enable usage of project's tsc, default is 0']
    [NODEDIR: 'specify the location of node']
    [INSTALLDIR: 'specify the location of tsc']

When enabling USEPROJECTTSC, TICS will look for the project's tsc in the node_modules of the TICS branchdir. If the node_modules is located in a different location, please specify the location of node_modules where tsc is found inINSTALLDIR. nodejs is crucial to invoke tsc and by default TICS will look for nodejs in the system PATH. Specifying the nodejs location in NODEDIR will override this behaviour.

Example

TOOLS:
  tsc:
    USEPROJECTTSC: 1
    NODEDIR: C:/Program Files/nodejs
    INSTALLDIR: C:/workspace/myapp