0.0.0-beta.2 • Published 6 years ago

ember-cli-babel-typescript v0.0.0-beta.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

ember-cli-babel-typescript

Build Status npm version dependencies Status devDependencies Status

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:

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.