Open benglass opened 10 years ago
This is also somewhat stupid right now since all we are using is jquery on a cdn (although local fallback would be nice) and normalize.css but we will probably be introducing leaflet or some such js mapping library soon.
Looks like there are a few gems for this. Rails assets has more commits but I think i prefer the bower-rails approach of letting you use bower directly if you want or through some rake commands. Rails assets method of requiring you to install bower components as gems seems to be a few too many layers to the onion. Yo dawg, I heard you like package managers so I put your package manager in a package manager so you can manage your packages while you manage your packages.
I dont know how this integrates with heroku (in terms of calling bower install, wouldnt want to do that on heroku as it assumes node is installed perhaps thats not a problem). Also there is the commit vs ignore question for frontend packages. Commit would be simpler in this case (never need to bower install on production)
https://github.com/42dev/bower-rails https://github.com/rails-assets/rails-assets/