@dotcom-tool-kit/typescript
v4.0.1
Published
Tool Kit plugin to build [TypeScript](https://www.typescriptlang.org) code
Readme
@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/typescriptAnd 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.
