typescript
Provides TypeScript support. More...
Since: | Qbs 1.3 |
Properties
- compilerFlags : stringList
- compilerName : string
- compilerPath : string
- generateDeclarations : bool
- generateSourceMaps : bool
- moduleLoader : string
- singleFile : bool
- stripComments : bool
- targetVersion : string
- toolchainInstallPath : path
- version : string
- versionBuild : int
- versionMajor : int
- versionMinor : int
- versionParts : list
- versionPatch : int
- warningLevel : string
Detailed Description
The typescript
module contains properties and rules for building TypeScript applications and may be used in combination with the nodejs module to run the applications directly from Qbs.
Property Documentation
A list of additional flags for the TypeScript compiler.
Default: Undefined
The name of the compiler binary.
This property should not normally need to be changed.
Default: "tsc"
The directory where the compiler binary is located.
This property should not normally need to be changed.
Default: compilerName
Whether to generate the corresponding .d.ts
files during compilation. These are TypeScript's equivalent of header files.
Default: false
Whether to generate the corresponding .map
files during compilation.
Default: qbs.debugInformation
If TypeScript modules are being used, the JavaScript module loading mechanism to use in the generated JavaScript code.
If left undefined, modules are not used.
See Compiler Options for a list of possible values.
Default: Undefined
Whether to compile all TypeScript source files to a single JavaScript output file.
The default is to compile each TypeScript file to a corresponding JavaScript file. This property is incompatible with moduleLoader.
Default: false
Whether to remove comments from the generated JavaScript files.
Default: !qbs.debugInformation
The ECMAScript target version for generated JavaScript code.
If left undefined, the TypeScript compiler default is used.
Default: Undefined
The TypeScript installation directory.
This property should not normally need to be changed if tsc
is available by searching the PATH environment variable.
Default: Undefined
The TypeScript version.
Consists of four numbers separated by dots. For example, "1.0.0.0".
Default: Undefined
The fourth TypeScript version number component.
Default: versionParts[3]
The TypeScript major version.
Default: versionParts[0]
The TypeScript minor version.
Default: versionParts[1]
The TypeScript version as a list.
For example, TypeScript version 1.0 would correspond to a value of [1, 0, 0, 0]
.
Default: []
The TypeScript patch level.
Default: versionParts[2]
The severity of warnings to emit. The higher the level, the more warnings will be shown.
pedantic
causes the TypeScript to emit warnings on expressions and declarations with an implied any type.
Default: "normal"
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.