Re:Rails API is coming to Rails 5
by andyl on Tuesday April 21, 2015 @01:07PM
(#9415453)
What is the best Rails solution for javascript modules and package management these days??
[ Parent
| on HN ]
Re:Rails API is coming to Rails 5
by kennethtransier on Tuesday April 21, 2015 @01:13PM
(#9415491)
I'm a huge fan of https://rails-assets.org/. Requests components from the Bower registry and packages them as gems.
Probably https://rails-assets.org/, you add it as a source in your Gemfile and then add gems based on the scheme "gem 'rails-assets-BOWER_PACKAGE_NAME'"
I recommend just using webpack or browserify... the workflow supports super fast on-the-fly bundling. Most reasonably large Rails apps end up embedding v8 anyway.
Re:Rails API is coming to Rails 5
by geoffharcourt on Tuesday April 21, 2015 @01:34PM
(#9415641)
I've used a few different approaches, and Rails-Assets works really well both from an ease-of-use and dependency version management standpoint.