tminglei / browserify-bower

A browserify plugin, to enable you use bower components just like node modules
MIT License
20 stars 3 forks source link

check dependencies recursively #3

Closed liamuk closed 9 years ago

liamuk commented 9 years ago

if you require a bower component with dependencies that aren't dependencies of your project as a whole, browserify-bower won't discover and include them.

You may want to consider using bower's programmatic api with bower.command.list to get the dependency tree.

tminglei commented 9 years ago

Thank you for pointing it out, I'll check it ASAP. (p.s. but I can't start it until next week, since I'm very busy these days.)

tminglei commented 9 years ago

Hi @liamuk, just confirm, you executed bower install to fetch its all dependencies, before executing browserify tasks, right?

liamuk commented 9 years ago

Yep.

tminglei commented 9 years ago

Hi @liamuk, just submitted fixing change, pls help check. Thanks!

BTW, bower.command.list is an async method, I want a sync solution, so I enhance the util method to analysis the deps. :-)