2.0.2 • Published 8 years ago

apeman-task-babel v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

apeman-task-babel

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to babel cli commands.

Installation

$ npm install apeman-task-babel --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. 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
NameTypeDefaultDescription
optionsobjectOptional settings.

License

This software is released under the MIT License.

Links

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago