mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
33 lines
609 B
JavaScript
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);
|
|
},
|
|
};
|