UNPKG

uni-erouter

Version:

一款优化uni-app项目多人协作工具

23 lines (18 loc) 517 B
#!/usr/bin/env node const program = require('commander') const init = require('../src/init') const watch = require('../src/watch') // 初始化方法 program.command('init').description('init').action(() => { init.start() }) // 监听文件改变 program.command('watch').description('watch').action(() => { watch.change() }) // 初始化,并监听文件改变 program.command('start').description('start').action(() => { init.start() watch.change() }) program.parse(process.argv)