ababel
Compile with babel only when file changed from last time.
Last updated 3 months 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 56
This Week 56
This Month 232
Last Day 0
Last Week 120
Last Month 277
Dependencies (11)
Dev Dependencies (10)

Copyright 2014 - 2017 © taobao.org |