mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
17 lines
352 B
JavaScript
Executable file
17 lines
352 B
JavaScript
Executable file
#!/usr/local/bin/node --harmony
|
|
|
|
var galaxy = require('galaxy');
|
|
var Auth = galaxy.star(require('./lib/auth'));
|
|
|
|
var sleep = galaxy.star(function(ms, cb) {
|
|
setTimeout(cb, ms);
|
|
});
|
|
|
|
process.argv = ['node', 'sinopia', '-c', './config.yaml'];
|
|
require('../bin/sinopia');
|
|
|
|
galaxy.unstar(function*() {
|
|
sleep(1000);
|
|
yield Auth.auth('test', 'test');
|
|
})();
|
|
|