Krimson
Krimson

Reputation: 7674

Add existing dependencies to bower.json

I accidentally did

bower install jquery

without the --save flag. So this package isn't saved in the dependencies section in bower.json

Is there a command I can run to add all installed packages into the dependency list?

Upvotes: 1

Views: 1767

Answers (2)

chuyik
chuyik

Reputation: 1016

I've written a simple script to scan the installed bower components, and generate the dependency list as a json file.

The code is on Github: bower-existed-scanner.

Upvotes: 1

raulb
raulb

Reputation: 31

Doing again bower install jquery --save should do the job.

Upvotes: 3

Related Questions