Skip to content

Instantly share code, notes, and snippets.

@davetron5000
Created April 10, 2014 14:21
Show Gist options
  • Save davetron5000/10387607 to your computer and use it in GitHub Desktop.
Save davetron5000/10387607 to your computer and use it in GitHub Desktop.
This is my imagined way in which Bundler could manage front-end assets without having to wrap them first in RubyGems, but just deciding to use bower
source 'https://[email protected]/me/' # private gem repo
source 'https://rubygems.org' # canonical rubygems
asset_source 'https://[email protected]' # if someday this could exist
asset_source 'https://bower.io' # canonical bower sources
gem "rails" # gem == RubyGem, do what we do now
asset "angular" # look in Bower public server, using its API
asset "colors", git: "[email protected]:stitchfix/colors" # look in git repo for bower.json
asset "jquery", cdn: "code.jquery.com/jquery-1.11.0.min.js" # satisfies deps, but doesn't download anything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment