1.0.0 • Published 3 years ago
zhx-cli v1.0.0
命令行工具
- 实现可在命令行中直接运行代码
- hx-cli install (安装)
- hx-cli config
- "compile": "babel src -d dist" // 执行你npm run compile babel会把src下文件打包到dist目录下(注:会把es6语法转成es5)
"watch":"npm run compile -- --watch" // 执行npm run watch 实时监控
npm install commander 解析命令行参数包 中文文档:https://github.com/tj/commander.js/blob/master/Readme_zh-CN.md
npm install ini 可以把读取的文件内容(key=value) 变成对象 { key:value } 文档:https://github.com/npm/ini
npm install request 请求别人的创库 文档:https://github.com/request/request
npm install ora 终端命令行loding 文档:https://github.com/sindresorhus/ora
npm install inquirer 终端命令行选择功能 文档:https://github.com/SBoudrias/Inquirer.js
- npm install download-git-repo 下载git创库代码 文档:https://github.com/jprichardson/node-github-download
1.0.0
3 years ago