Last active
December 31, 2015 10:09
-
-
Save kazu69/7971723 to your computer and use it in GitHub Desktop.
use bower-rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# インストール | |
rake bower:install | |
# force インストール | |
rake bower:install:force | |
# アップデート | |
rake bower:update | |
# アップデートと未使用packageの削除 | |
rake bower:update:prune | |
# package一覧 | |
rake bower:list | |
# precompile後のpackage内assetsファイルへの相対パスを表示 | |
rake bower:resolve | |
# Backbone.js 1.1.0 | |
url('public/fonts/aller-light.eot') => backbone/docs/public/fonts/aller-light.eot | |
url('public/fonts/aller-light.eot?#iefix') => backbone/docs/public/fonts/aller-light.eot?#iefix | |
url('public/fonts/aller-light.woff') => backbone/docs/public/fonts/aller-light.woff | |
url('public/fonts/aller-light.ttf') => backbone/docs/public/fonts/aller-light.ttf | |
url('public/fonts/aller-bold.eot') => backbone/docs/public/fonts/aller-bold.eot | |
url('public/fonts/aller-bold.eot?#iefix') => backbone/docs/public/fonts/aller-bold.eot?#iefix | |
url('public/fonts/aller-bold.woff') => backbone/docs/public/fonts/aller-bold.woff | |
url('public/fonts/aller-bold.ttf') => backbone/docs/public/fonts/aller-bold.ttf | |
url('public/fonts/novecento-bold.eot') => backbone/docs/public/fonts/novecento-bold.eot | |
url('public/fonts/novecento-bold.eot?#iefix') => backbone/docs/public/fonts/novecento-bold.eot?#iefix | |
url('public/fonts/novecento-bold.woff') => backbone/docs/public/fonts/novecento-bold.woff | |
url('public/fonts/novecento-bold.ttf') => backbone/docs/public/fonts/novecento-bold.ttf | |
url(destroy.png) => backbone/examples/todos/destroy.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lib": { | |
"name": "bower-rails generated lib assets", | |
"dependencies": { | |
} | |
}, | |
"vendor": { | |
"name": "bower-rails generated vendor assets", | |
"dependencies": { | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /vendor/assets/bower_components | |
asset "backbone" | |
# overridden assets_path | |
assets_path "assets/other_javascripts" | |
# /vendor/assets/other_javascripts | |
asset "backbone" | |
# /vendor/assets/javascripts/bower_components | |
group :vendor, :assets_path => "assets/javascripts" do | |
asset "backbone", "1.1" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add bower-rails | |
gem "bower-rails", "~> 0.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails g bower_rails:initialize | |
create bower.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment