ember-cli-babel-typescript
v0.0.0-beta.2
Published
Configures the consuming ember-cli app's or addon's Babel transpiler for TypeScript.
Downloads
4
Maintainers
Readme
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 = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
const app = new EmberAddon(defaults, {
'ember-cli-babel-typescript': {
disable: false
}
});
return app.toTree();
};
The only option is disable
, which defaults to false
. If you set disable
to true
, Babel will not get configured for usage with TypeScript.