When I install packages using Yeoman (which behind the scenes uses Bower), I see that bower installs each package twice..
components
folder app/components
folderSo for example, when I run the command yeoman install jquery
my project directory will look like this
root-directory
|- app
. |- components
. . |- jquery // <<-- jquery
. . ... rest of the components
|- components
. |- jquery // <<-- jquery ... again
. ... same other components
Installed packages will be placed in a bower_components directory. This is created in the folder which the bower program was executed. You can change this destination using the configuration options in a . bowerrc file.
Bower doesn't concatenate or minify code or do anything else - it just installs the right versions of the packages you need and their dependencies. To get started, Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you're looking for.
Bower is a package manager for the Web. You can use Bower to download libraries like jQuery UI from the command line, without having to manually download each project from their respective sites.
This was done as a temporary hack because of the need to have components in the /app folder, since Bower didn't have a way to specify the component directory. Now it does, and this will be fixed very soon.
You can follow the bug here: https://github.com/yeoman/yeoman/issues/622
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With