I remember reading somewhere that in bower you can install packages as subtrees, which means that one project can use several versions of the same library .. with each version of the library acting as a dependency for other libraries that need different versions.
as an example .. suppose I'm working on a project that uses both angular-google-maps, and ui-slider.
angular-google-mapsnot less than required angular 1.2.18+, but ui-sliderrequired angular 1.0.8
`I was hoping to get something like this (i.e. Listing the Bower):
├── angular#1.2.18
├─┬ angular-google-maps#1.1.2 extraneous (latest is 1.1.6)
│ ├── angular#1.2.18
│ └── ..
├─┬ angular-ui-slider#0.0.2
│ ├── angular#1.0.8
│ ├── ..
instead, what happens is that when I try to install a ui slider in my existing project that is already using angular 1.2.18, I get the following prompt:
Unable to find a suitable version for angular, please choose one:
1) angular
2) angular
3) angular
4) angular
5) angular
6) angular
7) angular
8) angular
Prefix the choice with ! to persist it to bower.json
, , , 1.0.8:
[?] Answer: 1
bower angular#~1.0.x install angular#1.0.8
bower angular-ui-slider#~0.0.2 install angular-ui-slider#0.0.2
, bower list, :
├── angular#1.0.8 incompatible with 1.2.18 (1.2.18 available, latest is 1.3.0-build.2867+sha.f07af61)
├─┬ angular-animate#1.2.19 (latest is 1.3.0-build.2867+sha.f07af61)
│ └── angular#1.0.8 incompatible with 1.2.19 (1.2.19 available, latest is 1.3.0-build.2867+sha.f07af61)
├─┬ angular-bootstrap#0.5.0 (latest is 0.11.0)
│ └── angular#1.0.8 (1.3.0-build.2867+sha.f07af61 available)
├─┬ angular-cookies#1.2.5 (latest is 1.3.0-build.2867+sha.f07af61)
│ └── angular#1.0.8 incompatible with 1.2.5 (1.2.5 available, latest is 1.3.0-build.2867+sha.f07af61)
├─┬ angular-google-maps#1.1.2 extraneous (latest is 1.1.6)
│ ├── angular#1.0.8 incompatible with 1.2.x (1.2.19 available, latest is 1.3.0-
├─┬ angular-ui-slider#0.0.2
│ ├── angular#1.0.8 (latest is 1.3.0-build.2867+sha.f07af61)
..
: bower angular 1.0.8 angular , .. , angular 1.2.18 angular 1.0.8 angular-ui-slider?