apeman-task-babel
v2.0.2
Published
apeman task to babel cli commands.
Downloads
17
Readme
apeman-task-babel
apeman task to babel cli commands.
Installation
$ npm install apeman-task-babel --save-dev
Usage
- Define a task within Apemanfile.js
- Call the task via apeman task command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-task-babel */
'use strict'
module.exports = {
$pkg: { /* ... */ },
$tasks: {
// Define your own task.
'react:compile': require('apeman-task-babel')(
'src/jsx/**/*.jsx',
{
//Options
presets: 'react',
sourceMaps: 'inline',
minified: true,
outFile: 'dist/components.js'
}
)
}
}
Then,
$ apeman task my-task-01
Signature
apemanTaskBabel(options) -> function
apeman task to babel cli commands.
Args
| Name | Type | Default | Description | | --- | ---- | --- | --- | | options | object | | Optional settings. |
License
This software is released under the MIT License.