README.md in bower-rails-0.3.3 vs README.md in bower-rails-0.4.0
- old
+ new
@@ -1,32 +1,21 @@
bower-rails
===========
rake tasks for bower on rails. Dependency file is bower.json in Rails root dir.
-**Asset Pipeline**
-
-As of version 0.3.0 bower-rails installs components in the asset directory, rather than assets/javascripts. This is because some of these packages also include stylesheets, or images. As such you may have to add components to your asset pipeline.
-
-``` Ruby
- # config/application.rb
-
- config.assets.paths << Rails.root.join("lib", "assets", "components")
- config.assets.paths << Rails.root.join("vendor", "assets", "components")
-```
-
**Requirements**
* [node](http://nodejs.org) ([on github](https://github.com/joyent/node))
-* [bower](https://github.com/twitter/bow) (>= 0.9) installed with npm
+* [bower](https://github.com/bower/bower) (>= 0.10.0) installed with npm
**Install**
in Gemfile
``` Ruby
- gem "bower-rails", "~> 0.3.1"
+ gem "bower-rails", "~> 0.4.0"
```
**Initialize**
To add an empty bower.json file to the project root.
@@ -42,17 +31,19 @@
**example bower.json file**
``` javascript
{
"lib": {
+ "name": "bower-rails generated lib assets",
"dependencies": {
"threex" : "git@github.com:rharriso/threex.git",
"gsvpano.js" : "https://github.com/rharriso/GSVPano.js/blob/master/src/GSVPano.js"
}
},
"vendor": {
+ "name": "bower-rails generated vendor assets",
"dependencies": {
- "three.js" : "https://raw.github.com/mrdoob/three.js/master/build/three.js"
+ "three.js" : "https://raw.github.com/mrdoob/three.js/master/build/three.js"
}
}
}
```