0.0.0 • Published 9 years ago
coughify v0.0.0
coughify
browserify v2 plugin for cough-syrup
mix and match .cough
and .js
files in the same project
example
given some files written in a mix of js
and cough
:
foo.cough:
console.log (require './bar.js')
bar.js:
module.exports = require('./baz.cough')(5)
baz.cough:
module.exports = \n -> n * 111
install coughify into your app:
$ npm install coughify
when you compile your app, just pass -t coughify
to browserify:
$ browserify -t coughify foo.cough > bundle.js
$ node bundle.js
555
you can omit the .cough
extension from your requires if you add the extension to browserify's module extensions:
module.exports = require('./baz')(5)
$ browserify -t coughify --extension=".cough" foo.cough > bundle.js
$ node bundle.js
555
install
With npm do:
npm install coughify
license
MIT
0.0.0
9 years ago