gobble-babel
Compile ES6 files with gobble and babel
Last updated 4 years ago by rich_harris .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gobble-babel 
SYNC missed versions from official npm registry.

gobble-babel

Compile ES6 files with gobble and babel. Creates sourcemaps automatically.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-babel babel-preset-es2015

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'babel', options );

The options argument, if specified, is passed to babel - consult the documentation. Sourcemaps are created by default (all the relevant information is filled in by Gobble, you don't need to specify sourceMapName options etc) - if you don't want that, pass sourceMap: false.

License

MIT. Copyright 2014 Rich Harris

Current Tags

  • 6.0.0                                ...           latest (4 years ago)

6 Versions

  • 6.0.0                                ...           4 years ago
  • 5.5.8                                ...           4 years ago
  • 5.1.0                                ...           4 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 1
This Month 9
Last Day 1
Last Week 6
Last Month 4
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |