When I install packages using Yeoman (which behind the scenes uses Bower), I see that bower installs each package twice..
components
folder app/components
folder So 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
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
This is fixed now in the 1.0 Beta of Yeoman. http://yeoman.io/road.html
The team have decided that yeoman should just do the setup of a project, and leave the actual building and installing of dependencies to grunt and bower respectively.
This means that you now do:
$ yo init
... setup
$ npm install
... get node modules
$ bower install
... get bower components
$ grunt server
... run the server
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.