node package manager

metro

Rails-esque Framework for Node.js

Metro.js

Rails-esque Framework For Node.js

Install

npm install metro

Usage

Compression

css = '''
body {
  background: red;
}
'''
css_compressor = new Metro.Asset.YUICompressor
css_compressor.compress(css)
  # 'body{background:red}' 
 
js = '''
$(document).ready(function() {
  alert("ready!");
});
'''
js_compressor = new Metro.Asset.UglifyJSCompressor
js_compressor.compress(js)
  # '$(document).ready(function(){alert("ready!")})' 
 

Development

npm install uglify-js jasmine-node
coffee -c --no-wrap -o lib -w src
coffee -c -o lib -w src
jasmine-node --coffee spec/.
cake build

Resources

Projects

Articles

Other Projects

Docs

Notes

  • Personally I would recommend a stack of express(Server, view engine, middleware), now(Client-Server communication), cradle(CouchDB database abstraction), backbone(Lightweight MVC abstraction), underscore.