Files
nebula.js/commands/sense/command.js
2019-09-09 12:46:30 +02:00

33 lines
704 B
JavaScript

const build = require('./lib/build');
module.exports = {
command: 'sense',
desc: 'Build a supernova as a Qlik Sense extension',
builder(yargs) {
yargs.option('ext', {
type: 'string',
required: false,
desc: 'Extension definition',
});
yargs.option('meta', {
type: 'string',
required: false,
desc: 'Extension meta information',
});
yargs.option('minify', {
type: 'boolean',
required: false,
default: true,
desc: 'Minify and uglify code',
});
yargs.option('output', {
type: 'string',
required: false,
desc: 'Specify the output location',
});
},
handler(argv) {
build(argv);
},
};