Code Monkey home page Code Monkey logo

ti.transform.babel's Introduction

npm

ti.transform.babel

This Titanium CLI plugin transforms JS files with Babel.

Note: This plugin requires the base support plugin ti.transform. See the section Installation.

Installation

NPM (recommended)

I haven't installed ti.transform

Install ti.transform according to its Installation guide.

Then refer to the next section:

I have installed ti.transform

Run this command in a Titanium project directory

npm install --save-dev ti.transform.babel

The plugin will install itself to the project's local /plugins directory.

After that you need to enable the plugin in your tiapp.xml. Add the following XML element to the <plugins/> section: <plugins/> section:

<plugins>
  ...
  <plugin version="0.1.0">ti.transform.babel</plugin>
</plugins>

Manual

I haven't installed ti.transform

Install ti.transform according to its Installation guide.

Then refer to the next section:

I have installed ti.transform

At first, download the plugin.

Then copy the plugin code into the project's local /plugins directory:

${project}/plugins/ti.transform.babel/0.1.0/{plugin_files}

After that add the following XML element to the <plugins/> section:

<plugins>
  ...
  <plugin version="0.1.0">ti.transform.babel</plugin>
</plugins>

Configuration

The plugin doesn't enable any Babel plugins or presets by default. You need to configure them by creating a .babelrc file in your project. Refer to the Babel documentation:

Example

See the example project ti.transform-example

License

MIT

ti.transform.babel's People

Contributors

vladm3 avatar

Stargazers

Dongwoo Gim avatar Denys Poliakov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.