一个脚手架工具。启动命令:cl-cli
Usage: cl-cli [options] [command]
This is a CLI to some JavaScript utilities
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
create|crt <project> [other...] 创建项目
create-replace|crep 生成.replace.config{.json}配置文件
replace|rep 替换i18n文案
help [command] display help for command
基于 commander 实现
import { program } from 'commander';
import createCli from './create'
import replaceCli from './replace'
// import relationshipCli from './relationship'
program
.name('cl-cli')
.description('This is a CLI to some JavaScript utilities')
.version('0.0.1');
createCli(program);
replaceCli(program);
// relationshipCli(program);
program.parse(process.argv);