How to bump all your dependencies
Sometimes, you want to bump all your libs to newest version. If they also depend on each other, you may run into version conflicts. One of the way how to do it with bower (and likely also npm) is:
- Open your
bower.json
(orpackage.json
) and changedependencies
toxdependencies
anddevDependencies
toxdevDependencies
. - Delete your
bower_components
(ornode_modules
) folder. - Run
bower install foo bar ... --save
(same fornpm
) for all libs listed in yourxdependencies
. - Run
bower install baz quux ... --save-dev
(same fornpm
) for all libs listed in yourxdevDependencies
. - Remove
xdependencies
andxdevDependencies
from yourbower.json
(orpackage.json
).
Tested to work on sample Amber sample project.
→