Bower registering packages to be downloaded in same directory

38 Views Asked by At

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.

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 e.g : bower_components/parent/

Thanks for your help

1

There are 1 best solutions below

1
Tomas Votruba On

I guess you can only edit your project bower.json.

This might be useful: https://www.npmjs.com/package/bower-installer or https://stackoverflow.com/a/21818157/1348344.

In particular:

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