Licence
ISC
Version
4.2.0
Deps
4
Size
11 kB
Vulns
1
Weekly
0
@dotcom-tool-kit/typescript
Tool Kit plugin to build TypeScript code
Installation & Usage
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/typescript
And add it to your repo's .toolkitrc.yml:
plugins:
- '@dotcom-tool-kit/typescript'
Tasks
TypeScript
Compile code with tsc.
Task options
| Property | Description | Type |
|---|---|---|
configPath |
to the TypeScript config file. Uses TypeScript's own tsconfig.json resolution by default | string |
build |
Run Typescript in build mode. | true |
watch |
Run Typescript in watch mode. | true |
noEmit |
Run Typescript with --noEmit, for checking your types without outputting compiled Javascript. |
true |
All properties are optional.