mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
35 lines
793 B
JavaScript
35 lines
793 B
JavaScript
const create = require('./lib/create');
|
|
|
|
module.exports = {
|
|
command: 'create <name>',
|
|
desc: 'Create a supernova',
|
|
builder(yargs) {
|
|
yargs.positional('name', {
|
|
type: 'string',
|
|
description: 'name of the project',
|
|
});
|
|
yargs.option('install', {
|
|
type: 'boolean',
|
|
default: true,
|
|
description: 'Run package installation step',
|
|
});
|
|
yargs.option('pkgm', {
|
|
type: 'string',
|
|
choices: ['npm', 'yarn'],
|
|
description: 'Package manager',
|
|
});
|
|
yargs.option('picasso', {
|
|
type: 'string',
|
|
choices: ['none', 'minimal', 'barchart'],
|
|
description: 'Picasso template',
|
|
});
|
|
yargs.option('author', {
|
|
type: 'string',
|
|
description: 'Package author',
|
|
});
|
|
},
|
|
handler(argv) {
|
|
create(argv);
|
|
},
|
|
};
|