Rails Assets: frictionless proxy between Bundler and Bower
szymon.hussa.rs
szymon.hussa.rs
This reminds me that bundler could handle dependency resolution beyond gems. Imagine:
gem "rails"
gem "coffeescript"
bower "jquery"
bower "backbone"
Run bundle and all the dependencies get mapped out and installed.There is a strong dissenting opinion in bower community that it should basically be just like "npm" and none of these structured require build tool hints should be encouraged. It'd be great if others in support of the current Sprockets bower integration or this Rails Asset tool to voice their opinion and real world use asset for improving the state of the bower.json manifest.
Thanks, Josh, author of Sprockets.
I will have to carefully read all arguments agains enforcing such structure in bower.
You can add a .bowerrc and bower.json file to your project and you'll be able to access those components easily: http://dev.af83.com/2013/01/02/managing-rails-assets-with-bo...
As far as I can tell, there's not asset-path() usage, and so the link breaks in production (where image assets have <assetname>-<md5hash>.jpg filenames, for example).