ababel
Compile with babel only when file changed from last time.
Last updated a month ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install ababel 
SYNC missed versions from official npm registry.

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.status string Status file path
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

Maintainers (1)
Downloads
Today 55
This Week 55
This Month 167
Last Day 0
Last Week 57
Last Month 488
Dependencies (11)
Dev Dependencies (10)

Copyright 2014 - 2016 © taobao.org |