@mx-deisgn/cli is a React web project and React component library build tool, through @mx-deisgn/cli can quickly start the development environment, package business code and component library code(@mx-deisgn/cli是一个React web项目和React组件库构建工具,通过@mx-deisgn/cli可以快速启动开发环境,打包业务代码和组件库代码)
为什么需要了解Commander.js
mx-design-cli的命令行交互,使用了Commander.js,也就是你打包的时候在命令行输入:
此时,我们需要解析命令行到底传入了什么参数,所以我们借助了Commander.js去获取,以下是Commander.js的详细官方中文教程的链接
Commander.js