UNPKG

405 BJavaScriptView Raw
1#!/usr/bin/env node
2var commander = require('commander')
3var chalk = require('chalk');
4var spawn = require('cross-spawn');
5
6commander.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})
13console.log(commander.args)
14spawn('npm', ['run'], { stdio: 'inherit' });