unpub 0.2.0 unpub: ^0.2.0 copied to clipboard
Private Dart Pub for Enterprise.
Unpub #
Private Dart Pub for Enterprise.
Usage #
Via command line #
pub global activate unpub
Then run it:
unpub
It will use file system as meta store and package(tarball) store
Via Dart API #
import 'package:unpub/unpub.dart';
var baseDir = path.absolute('unpub-data');
var repository = UnpubRepository(
metaStore:
await UnpubMongo.connect('mongodb://localhost:27017/dart_pub_test'),
packageStore: UnpubFileStore(baseDir),
shouldCheckUploader: true,
);
var server = UnpubServer(repository);
server.serve('0.0.0.0', 3000);
License #
MIT