paco
Version:
Node package development/distribution utility kit
28 lines (19 loc) • 567 B
JavaScript
/**
* paco build
*/
;
// Dependencies
var paco = require('../api');
var description = 'Runs all scripts provided in the build config in .pacorc, or `npm run build` if defined. If the build config is set to false, nothing will be done.';
// Task
module.exports = function (_yargs) {
_yargs.command('build', description, function (yargs) {
yargs.usage('Usage: paco build\n\n' + description);
require('./options/help.js')(yargs);
var argv = yargs.argv;
if (!argv.help) {
paco.build(argv);
}
});
};