ae-biu
Version:
Born For AE, Born To Do
28 lines (24 loc) • 810 B
JavaScript
// @flow
import program from 'commander'
import updateNotifier from 'update-notifier'
import pkg from '../package.json'
// notify for update
updateNotifier({ pkg }).notify()
/**
* Usage
*/
program
.version(pkg.version)
.usage('<command> [options]')
.command('init', 'create a new project based on AE')
.command('i18n', 'get text which should be translated')
.command('start', 'simulate the production environment')
.command('dev', 'start a server with HMR in local')
.command('build', 'build dist files for production')
.command('test', 'run test') // DEPRECATED
.command('unit', 'run unit test')
.command('e2e', 'run e2e test')
.command('mock', 'start a mock server in local')
.option('--sdp_env', 'apply SDP_ENV, like: --sdp_env=test')
.parse(process.argv)