How can I use Bauer's local dependency?

I am developing a library in tandem with a project. The project has a library as a dependency. Both are on my local machine and I added the path of the git lib file to the project bower.json

:

"devDependencies": {
    "example": "/Users/me/Documents/path/to/example/.git"
}

      

This works great, but every time I update the lib I have to:

  • Add and commit changed files to lib
  • Update dependency in bower

How can I optimize this process? Is there a way for the project to always use the lib in its current state?

+3


source to share


1 answer


The url you are currently using for the dependency is identified by Bower as a local git repository, so Bower uses the Git resolver filesystem . This means that your changes must be linked to a repository for Bower to resolve them (the recognizer checks for changes in the local repository).
You can change the URL-address to something in the form of: "example": "/Users/me/Documents/path/to/example/"

. You can use the path to a directory, file or archive.
This will force Bauer to use the resolver filesystem instead , which will simply copy the library files (according to bower.json inside the folder).



Not sure if you can avoid the step of updating dependencies in Bower.

+7


source







All Articles