gorillaify
v0.1.4
Published
browserify v2 plugin for gorillascript with support for mixed .js and .gs files
Downloads
17
Maintainers
Readme
gorillaify
browserify v2 plugin for gorillascript
mix and match .gsgorillascript and .js files in the same project
This is a mod from coffeeify
example
given some files written in a mix of js and gorilla:
foo.gs
console.log require './bar.js'bar.js:
module.exports = require('./baz.gs')(5)baz.gs:
module.exports := #(n)-> n * 111install gorillaify into your app:
$ npm install gorillaify --save-devwhen you compile your app, just pass -t gorillaify to browserify:
$ browserify -t gorillaify foo.gs > bundle.js
$ node bundle.js
555you can omit the .gs extension from your requires if you add the extension to browserify's module extensions:
module.exports = require('./baz')(5)$ browserify -t gorillaify --extension=".gs" foo.gs > bundle.js
$ node bundle.js
555if you are ready to bundle codes for production:
$ browserify -t gorillaify/no-debug foo.gs > bundle.jsthis will disable generating source map, and using gorillascript's bare mode.
install
With npm do:
npm install gorillaifylicense
MIT

