UNPKG

@vivo-minigame/cli

Version:

Command line interface for rapid Vivo minigame development

17 lines (15 loc) 496 B
#!/usr/bin/env node 'use strict' // Provide a title to the process in `ps`. // Due to an obscure Mac bug, do not start this title with any symbol. try { process.title = 'mg ' + Array.from(process.argv).slice(2).join(' ') } catch (_) { // If an error happened above, use the most basic title. process.title = 'mg' } if (process.env.BABEL_ENV === 'debug') { require('../src/index') // 如果是调试模式,加载src中的源码 } else { require('../dist/index') // dist会发到npm }