ember-cli-babel-typescript
Enables your app or addon to use TypeScript syntax through ember-cli-babel and @babel/plugin-transform-typescript.
Installation
first.
ember install @ClarkSource/ember-cli-babel-typescript
What this does
This addon will do the following:
- install an unreleased beta version ember-cli-babel that supports Babel 7
- add the required transforms
- enable transpilation of
.ts
files - install
typescript-eslint-parser
for eslint - remove
@ember-decorators/babel-transforms
- remove
babel-eslint
However it will not:
- do type checking
Configuration
You can configure this addon in you ember-cli-build.js
file:
/* eslint-env node */'use strict'; const EmberAddon = ; module { const app = defaults 'ember-cli-babel-typescript': disable: false ; return app;};
The only option is disable
, which defaults to false
. If you set disable
to true
, Babel will not get configured for usage with TypeScript.