mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-20 10:19:04 -05:00
56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
const create = require('./lib/create');
|
|
|
|
const mashup = {
|
|
command: 'mashup <name>',
|
|
desc: 'Create a mashup',
|
|
builder(yargs) {
|
|
yargs.positional('name', {
|
|
type: 'string',
|
|
description: 'name of the project',
|
|
});
|
|
},
|
|
handler(argv) {
|
|
create(argv);
|
|
},
|
|
};
|
|
|
|
module.exports = {
|
|
command: 'create <name>',
|
|
desc: 'Create a visualization',
|
|
builder(yargs) {
|
|
yargs.command(mashup);
|
|
|
|
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', 'pnpm'],
|
|
description: 'Package manager',
|
|
});
|
|
yargs.option('picasso', {
|
|
type: 'string',
|
|
choices: ['none', 'minimal', 'barchart'],
|
|
description: 'Picasso template',
|
|
});
|
|
yargs.option('typescript', {
|
|
type: 'boolean',
|
|
description: 'Use TypeScript template with spec command support',
|
|
default: false,
|
|
});
|
|
yargs.option('author', {
|
|
type: 'string',
|
|
description: 'Package author',
|
|
});
|
|
},
|
|
handler(argv) {
|
|
create(argv);
|
|
},
|
|
};
|