ababel

6.1.5 • Public • Published

ababel

Build Status npm Version JS Standard

Compile with babel only when file changed from last time.

Installation

$ npm install ababel --save

Usage

'use strict'
 
const ababel = require('ababel')
 
void async function () {
  await ababel('**/*.jsx', {
    cwd: 'src',
    out: 'dest',
    minified: true,
    presets: ['es2015', 'react']
  })
}().catch((err) => console.error(err))
 
 

Signature

ababel(pattern, options) -> Promise

Params

Name Type Description
pattern string Glob file name pattern
options Object Optional settings
options.cwd string Current working directory path
options.out string Output directory path
options.minified boolean Minified or not
options.reflects string[] File patterns to reflects changes

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i ababel

Weekly Downloads

370

Version

6.1.5

License

MIT

Unpacked Size

15.6 kB

Total Files

31

Last publish

Collaborators

  • okunishinishi