1 |
|
2 | var commander = require('commander')
|
3 | var chalk = require('chalk');
|
4 | var spawn = require('cross-spawn');
|
5 |
|
6 | commander.on('--help', function () {
|
7 | console.log(' Examples:')
|
8 | console.log()
|
9 | console.log(chalk.gray(' # usage is the same with "npm run "'))
|
10 | console.log(' $ zaro run build')
|
11 | console.log()
|
12 | })
|
13 | console.log(commander.args)
|
14 | spawn('npm', ['run'], { stdio: 'inherit' });
|