unpub 0.1.1 copy "unpub: ^0.1.1" to clipboard
unpub: ^0.1.1 copied to clipboard

outdated

Private Dart Pub for Enterprise.

Unpub #

pub

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