unpub 0.1.0 copy "unpub: ^0.1.0" to clipboard
unpub: ^0.1.0 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: UnpubFileMetaStore(baseDir),
  // You can also use MongoDB as meta store
  // metaStore: await UnpubMongo.connect('mongodb://localhost:27017/dart_pub'),

  packageStore: UnpubFilePackageStore(baseDir),

  shouldCheckUploader: true,
);

var server = UnpubServer(repository);
server.serve('0.0.0.0', 3000);

License #

MIT