ti.transform.babel
v0.1.0
Published
A Titanium CLI plugin that transforms JS files with Babel
Downloads
2
Maintainers
Readme
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.babelThe 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
