[英]Why does bower install packages twice?
当我使用Yeoman(幕后使用Bower)安装软件包时,我看到bower安装每个软件包两次..
components
文件夹下项目根目录中的第一个 app/components
文件夹 所以例如,当我运行命令yeoman install jquery
我的项目目录将如下所示
root-directory
|- app
. |- components
. . |- jquery // <<-- jquery
. . ... rest of the components
|- components
. |- jquery // <<-- jquery ... again
. ... same other components
这是作为临时hack完成的,因为需要在/ app文件夹中包含组件,因为Bower没有办法指定组件目录。 现在确实如此,这很快就会解决。
你可以点击这里的错误: https : //github.com/yeoman/yeoman/issues/622
现在修正了Yeoman的1.0 Beta。 http://yeoman.io/road.html
团队已经决定,自耕农应该只做一个项目的设置 ,并将实际的建筑物和依赖性的安装分别留给grunt和bower。
这意味着您现在可以:
$ yo init
... setup
$ npm install
... get node modules
$ bower install
... get bower components
$ grunt server
... run the server
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.