Bower mirror repository

Doc Davluz picture Doc Davluz · Feb 14, 2014 · Viewed 8.1k times · Source

Using Maven, you get Maven repositories. Tools like Nexus ou Artifactory have the ability to mirror (or proxy) remote repositories and self-hosted ones to expose an aggregated view of all downloadable artifacts (or dependencies in the Bower jargon). You get the same mechanism for other dependency managers like Ivy oy Gradle (Maven, Ivy/Ant & Gradle are more than just dependency managers, but it's not the point here).

With Bower, you can set up remote registries from which dependencies will be downloaded. But a great thing in a corporate environment would be to have a self hosted repository working like those describe above.

I have search the Web but did not find any convincing solution. Did you know any of them?

Answer

Manfred Moser picture Manfred Moser · Feb 14, 2014

From what I understand Bower uses npm and as such you can use Nodejitsu.

Support for npm repositories is also a requested feature for Nexus. If you are interested in that, vote on the issue and you might see it implemented in the not too distant future ;-)

In the meantime you can potentially use webjars

Update 2015-03-13: NPM support has been available in Nexus OSS and Pro for a while now. Read more about setting it all up in the documentation. However to clarify the Bower repository format is different from the npm format. The Bower team is hoping to move everything to NPM and stop development and hosting, but that is an ongoing effort.

Update 2016-04-11: The new release of Nexus Repository Manager OSS 3.0 has full support for npm and bower.