No description or website provided.
JavaScript CoffeeScript HTML
Latest commit f065c3f May 11, 2016 @ilyavf package.json
Permalink
Failed to load latest commit information.
test Added source maps; added latest standalone CoffeeScript 1.10.0 Mar 4, 2016
.travis.yml travis node stable Feb 22, 2016
README.md
coffee-script.js Added source maps; added latest standalone CoffeeScript 1.10.0 Mar 4, 2016
main.js
package.json package.json May 11, 2016

README.md

Build Status npm version

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.

Steal can also import CSS/LESS/SASS files right into your application. With steal-coffee plugin you can write your JavaScript modules in CoffeeScript and then load them into your application with Steal.

Install

npm install steal-coffee --save

Use

After you've installed the plugin you can just start using it directly.

Coffee app:

Index.html:

<script src="../node_modules/steal/steal.js" data-main="src/app.coffee!"></script>

app.coffee

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

app.js (ES6):

import math from 'mathModule.coffee!';

mathModule.coffee:

square = (x) -> x * x

math =
  root:   Math.sqrt
  square: square
  cube:   (x) -> x * square x

module.exports = math;

License

MIT