Compile CoffeeScript files with gobble. Creates sourcemaps automatically.
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-coffee
gobblefile.js
var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'coffee', options );
The options
argument, if specified, is passed to CoffeeScript. If you don't want to create sourcemaps, pass sourceMaps: false
.
MIT. Copyright 2014 Rich Harris