Skip to content

Commit

Permalink
Adds Bower sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeff committed Dec 23, 2012
1 parent e9e21d4 commit 6c6bbc9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"directory" : "vendor/assets/components",
"json" : "app/assets/component.json"
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp

# Ignore installed bower components
vendor/assets/components/
9 changes: 9 additions & 0 deletions app/assets/component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "rails_bower",
"version": "0.0.1",
"main": "javascripts/main.js",
"dependencies": {
"jquery": "latest",
"backbone": "latest"
}
}
2 changes: 2 additions & 0 deletions app/assets/javascripts/vendor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//= require ember
//= require jquery
5 changes: 5 additions & 0 deletions config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Load the rails application
require File.expand_path('../application', __FILE__)

RailsBower::Application.configure do
config.assets.append_path 'components'
end

# Initialize the rails application
RailsBower::Application.initialize!

0 comments on commit 6c6bbc9

Please sign in to comment.