Files
nebula.js/commands/serve/command.js
Christoffer Åström a57abf1ead refactor: internal packages structure (#94)
* refactor: internal packages structure

* refactor: internal packages structure
2019-08-27 09:57:04 +02:00

33 lines
609 B
JavaScript

const serve = require('./lib/serve');
module.exports = {
command: 'serve',
desc: 'Dev server',
builder(yargs) {
yargs.option('entry', {
type: 'string',
description: 'File entrypoint',
});
yargs.option('build', {
type: 'boolean',
default: true,
});
yargs.option('host', {
type: 'string',
});
yargs.option('port', {
type: 'number',
});
yargs.option('enigma.host', {
type: 'string',
});
yargs.option('enigma.port', {
type: 'port',
default: 9076,
}).argv;
},
handler(argv) {
serve(argv);
},
};