js_stack Dependency Status Gem Version

Standard JS SPA stack we use at netguru

Installation

Add this line to your application's Gemfile:

gem 'js_stack'

And then execute:

$ bundle

Usage

Modify application.coffee (you have to be using asset pipeline):

#= require js_stack

You can require specific version of library:

#= require js_stack/base/<lib_name>/<version>
#= require js_stack/plugins/<lib_name>/<plugin_name>/<version>

Examples:

#= require js_stack/base/backbone
#= require js_stack/base/backbone/1.0.0

#= require js_stack/plugins/backbone.stickit
#= require js_stack/plugins/backbone/stickit/0.7.0

#= require js_stack/plugins/cocktail
#= require js_stack/plugins/cocktail/0.5.8

You cannot specify version for hamlcoffee, momentjs and js_routes

What's included?

Base

Library Versions Changelog Homepage
backbone 1.1.2, 1.0.0 changelog homepage
marionette 2.1.0, 2.0.3, 1.8.8, 1.7.4, 1.6.4, 1.5.1, 1.4.1, 1.1.0 changelog homepage
underscore 1.6.0, 1.5.2 changelog homepage
hamlcoffee 1.16 changelog homepage
js-routes 0.9.8 changelog homepage

Plugins

Library Versions Changelog Homepage
backbone associations 0.6.2, 0.5.5 changelog homepage
backbone deepmodel 0.10.4 changelog homepage
backbone mutators 0.4.2 changelog homepage
backbone pageable 1.4.8, 1.3.2 changelog homepage
backbone paginator 2.0.2 changelog homepage
backbone routefilter 0.2.1 changelog homepage
backbone stickit 0.8.0, 0.7.0, 0.6.3 changelog homepage
backbone validation 0.9.1, 0.8.1 changelog homepage
backbone virtualcollection 0.5.1, 0.4.15 changelog homepage
cocktail 0.5.8 None homepage
momentjs 2.7.0 changelog homepage
underscore inflections 0.2.1 None homepage
underscore string 2.3.2 changelog homepage

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request