rake tasks for bower on rails. Dependency file is bower.json in Rails root dir.
Requirements
Install
in Gemfile
gem "bower-rails", "~> 0.2.1"
Initialize
To add an empty bower.json file to the project root.
rails g bower_rails:initialize
Configuration
The bower.json file is two seperate bower component.js files. Defining a package in lib and vendor will install those packages to the corresponding directories.
example bower.json file
{
"lib": {
"dependencies": {
"threex" : "[email protected]:rharriso/threex.git",
"gsvpano.js" : "https://github.com/rharriso/GSVPano.js/blob/master/src/GSVPano.js"
}
},
"vendor": {
"dependencies": {
"three.js" : "https://raw.github.com/mrdoob/three.js/master/build/three.js"
}
}
}
Available commands
rake bower:install #install js components
rake bower:update #update js components