Reputation: 5997
Pub is a great tool for managing dependencies of Dart projects. I wonder if there's any tool available which allows us to create in-house repositories and setup mirrors for public dependencies similarly how Maven repository managers do it (Nexus, Archiva, etc.)
I've searched the net and it seems that the source of the Pub repository site is not publicly available. Maybe the dependency lookup in the current Pub client is hardwired to the central Pub repository anyway.
Upvotes: 1
Views: 1577
Reputation: 11201
The source for the Pub server at pub.dartlang.org is available on github: https://github.com/dart-lang/pub-dartlang
It's a Python App Engine app, so it's not exactly designed to be run locally, but it's a starting point.
Pub also does support alternate pub repositories. See: http://pub.dartlang.org/doc/pubspec.html#dependencies
Upvotes: 3