Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobblejs/gobble-es6-transpiler
Compile ES6 files with gobble and es6-transpiler
https://github.com/gobblejs/gobble-es6-transpiler
Last synced: 3 months ago
JSON representation
Compile ES6 files with gobble and es6-transpiler
- Host: GitHub
- URL: https://github.com/gobblejs/gobble-es6-transpiler
- Owner: gobblejs
- Created: 2014-08-21T14:41:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-12T03:32:20.000Z (almost 10 years ago)
- Last Synced: 2024-07-27T13:08:14.660Z (4 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- es6-tools - gobble-es6-transpiler
README
# gobble-es6-transpiler
Compile ES6 files with gobble and [es6-transpiler](https://github.com/termi/es6-transpiler).
## Installation
First, you need to have gobble installed - see the [gobble readme](https://github.com/gobblejs/gobble) for details. Then,
```bash
npm i -D gobble-es6-transpiler
```## Usage
**gobblefile.js**
```js
var gobble = require( 'gobble' );
module.exports = gobble( 'js' ).map( 'es6-transpiler', options );
```The `options` argument is optional, and is passed to es6-transpiler (the `src` property is added). See [the full list of options](https://github.com/termi/es6-transpiler#options).
Additionally, you can pass an `onError` function. If present, this function will be called with any errors that occur; otherwise, an exception will be raised.
## License
MIT. Copyright 2014 Rich Harris