How to update bower.json with installed packages?

Konga Raju picture Konga Raju · Nov 29, 2013 · Viewed 85k times · Source

In my project I've installed bower components without save option. Now, I would like update to bower.json?

How can I update bower.json with installed packages?

Answer

Helder Robalo picture Helder Robalo · Jan 27, 2014

Just list your dependencies:

bower list

Then you should run all install command with param '--save' like this:

bower install bootstrap --save

It's a hard work, but if you have a thousand dependencies, could you create a script to automatize the task.