最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Bower mirror repository - Stack Overflow

programmeradmin0浏览0评论

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?

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?

Share Improve this question asked Feb 14, 2014 at 7:59 Doc DavluzDoc Davluz 4,2505 gold badges32 silver badges33 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 9

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.

private-bower provide private bower registry hosting and public registry caching.

Artifactory Pro can do this now. Although the reason I stumbled into this question on StackOverflow is that I'm trying to figure out how precisely to do it. I don't yet follow what if anything I'm supposed to do to support the Repository Layout.

Sonatype Nexus will have support for Bower in Nexus 3. Once this is released, this will probably be the easiest solution, particularly for anyone doing Java development. So make sure you check if this solution is available before just picking the "checked" solution.

Here's the ticket: https://issues.sonatype.org/browse/NEXUS-6884

Until that happens, go with private-bower: https://github.com/Hacklone/private-bower

发布评论

评论列表(0)

  1. 暂无评论