Package.json vs bower.json

What is the difference between package.json and bower.json? Also what is the correct way to add a gulp dependency? I want to add gulp-ng-annotate but am not sure if the reference should end up in package.json or bower.json, and the correct way to add it.

Thanks

package.json list all your node dependencies, bower.json list all your javascript dependencies.

Gulp plugins are going in package.json as they are installed using npm package manager

1 Like