Files
nebula.js/commands/create/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

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);
},
};