ember-cli-babel-typescript

0.0.0-beta.2 • Public • Published

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.

/ember-cli-babel-typescript/

    Package Sidebar

    Install

    npm i ember-cli-babel-typescript

    Weekly Downloads

    3

    Version

    0.0.0-beta.2

    License

    MIT

    Unpacked Size

    11.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • buschtoens