StealJS plugin for CoffeeScript.
Steal (StealJS) is a module loader that supports different formats (ES6, CommonJS, AMD). You can even use a combination of multiple formats! Steal will figure it out for you.
npm install steal-coffee --save
After you've installed the plugin you can just start using it directly.
<script src="../node_modules/steal/steal.js" data-main="src/app.coffee!"></script>
math = require 'test/math.coffee!' # bang in the end tells Steal that it should use # steal-coffee plugin to load this script console.log 'square of 2 is ', math.square 2
ES6 app with CoffeeScript modules
import math from 'mathModule.coffee!';
square = (x) -> x * x math = root: Math.sqrt square: square cube: (x) -> x * square x module.exports = math;