Bower vs NPM confusion

Bower is created solely for the front-end and is optimized with that in mind (…) requires a flat dependency tree.”

How to add new client javascript library to a project?

  1. Edit bower.json
  2. bower update
  3. grunt wiredep*

* See Gruntfile.js.

Edit or create package.json and use npm to install grunt and wiredep.