简体   繁体   English

Bower注册要下载到同一目录中的包

[英]Bower registering packages to be downloaded in same directory

I am looking to do something but am not sure if its possible. 我期待做点什么,但不确定它是否可行。

I am registering several packages with bower all of which are of the same "package". 我正在使用凉亭注册几个包,所有包都是相同的“包”。

What i want to do: 我想做的事:

I have 3 packages called child-1, child-2 and child-3 which I have registered with bower. 我有3个叫做child-1,child-2和child-3的包,我已经在凉亭注册了。

How can I manage to structure of is there any option to activate so that all of my packages gets donwloaded in the same directory eg : bower_components/parent/ 如何管理结构是否有任何激活选项,以便我的所有包都被下载到同一目录中,例如:bower_components / parent /

Thanks for your help 谢谢你的帮助

I guess you can only edit your project bower.json . 我想你只能编辑你的项目bower.json

This might be useful: https://www.npmjs.com/package/bower-installer or https://stackoverflow.com/a/21818157/1348344 . 这可能很有用: https//www.npmjs.com/package/bower-installerhttps://stackoverflow.com/a/21818157/1348344

In particular: 尤其是:

{
  "install" : {
        "path" : "some/path",
        "sources" : {
            "child-1" : "components/parent"
        }
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM