- Version: 0.10.0
- GitHub: https://github.com/NativeScript/nativescript-dev-typescript
- Last Day: 36
- Last Week: 342
- Last Month: 1230
nativescript-dev-typescript is deprecated in favour of
bundle workflow, which will be introduced with CLI v6.0. More info about the upcoming new approach can be found here.
A package providing TypeScript support for NativeScript.
How to use in NativeScript projects
$ npm install -D nativescript-dev-typescript
The above command adds
nativescript-dev-typescript package as dev dependency and installs the necessary hooks. TypeScript compilation happens when the project is prepared for build. A file named
tsconfig.json that specifies compilation options will be created in the project folder and should be committed to source control. Read more about tsconfig.json options.
How it works
When the plugin installed what it will do out of the box is to add
tsconfig.jsonfile to the project (if it doesn't exist),
typescriptas dev dependency
before-preparehook which takes care to transpile all files before preparing your project
before-watchhook to start the typescript watcher and transpile on every typescript change during project livesync
after-watchhook to stop the typescript watcher after the livesync is stopped
How to use in NativeScript plugins
This package is not meant to be used in plugins. It's applicable for NativeScript projects only.
Please, use github issues strictly for reporting bugs or requesting features. For general questions and support, check out the NativeScript community forum or ask our experts in NativeScript community Slack channel.