0.7.0 • Published 11 years ago
refcoffeeify v0.7.0
refcoffeeify
browserify v2 plugin for coffee-script
mix and match .coffee and .js files in the same project
This is a fork of 'coffeeify' that supports reflective-coffeescript transparently.
Your reflective-coffeescript files can have .coffee or .refcoffee extension.
example
given some files written in a mix of js and coffee:
foo.coffee:
console.log(require './bar.js')bar.js:
module.exports = require('./baz.coffee')(5)baz.coffee:
module.exports = (n) -> n * 111install refcoffeeify into your app:
$ npm install refcoffeeifywhen you compile your app, just pass -t refcoffeeify to browserify:
$ browserify -t refcoffeeify foo.coffee > bundle.js
$ node bundle.js
555you can omit the .coffee extension from your requires if you add the extension to browserify's module extensions:
module.exports = require('./baz')(5)$ browserify -t refcoffeeify --extension=".coffee" foo.coffee > bundle.js
$ node bundle.js
555install
With npm do:
npm install refcoffeeifylicense
MIT
https://github.com/rev22/refcoffeeify/graphs/contributors(List of GitHub contributors)
0.7.0
11 years ago