0.0.0 • Published 11 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 * 111install coughify into your app:
$ npm install coughifywhen you compile your app, just pass -t coughify to browserify:
$ browserify -t coughify foo.cough > bundle.js
$ node bundle.js
555you 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
555install
With npm do:
npm install coughifylicense
MIT
0.0.0
11 years ago