aspax-coffee-handler

Plugin enabling ASPAX to handle CoffeeScript files.

npm install aspax-coffee-handler
59 downloads in the last month

What's this?

NPM version Dependency Status

A plugin that enables ASPAX to handle CoffeeScript files.

Installation

Type this in the folder where you're running ASPAX:

npm install aspax-coffee-handler

If you're running ASPAX in a Node.js application root folder, consider using the --save-dev option to avoid deploying this plugin to your production environment:

npm install aspax-coffee-handler --save-dev

Usage

Simply add .coffee source files in aspax.yml:

app.js:
  - lib.js
  - script-1.coffee|bare
  - script-2.coffee

Available flags

  • bare: compile without the top-level function safety wrapper - see more here.

    Basically, this:

      $ -> console.log 'hi!'
    

    ...compiles to this with the bare flag:

      $(function() {
        return console.log("hi!");
      });
    

    ...and to this without the flag:

      (function() {
        $(function() {
          return console.log("hi!");
        });
      }).call(this);
    

Endorsing the author

If you find this piece of software useful, please tweet about ASPAX and/or endorse me on Coderwall!

npm loves you