The bower link
feature makes it easy to change & test packages while using it as a dependency in other packages. If you are using Bower, you should be using this.
It helps resolve this common scenario:
- You developed
project-a
andproject-b
. project-b
usesproject-a
viabower install project-a
.- While working on
project-b
, you need to make a change inproject-a
.
Solution: Just tell Bower that the project-a
dependency used in project-b
is located in a symlink location – where you actually checked out project-a
.
To do this:
- In
project-a
, runbower link
to create a global link for the project - In
project-b
, runbower link project-a
to let Bower know that we should refer toproject-a
through the symlink.
That’s it. Simple & effective.