Use bower in rails

Bower is a very good tool, it can help you to manage the javascript or css like the way of bundler.

This is what does the config file looks like:

    "dependencies": {
      "jquery": ""

This is the command lines to use the bower.

  $ npm install -g bower
  $ mkdir -p vendor/assets
  $ cd vendor/assets/
  $ curl > component.json
  $ bower install
blog comments powered by Disqus