xiaoajun_cli
v1.0.1
Published
我自己编写的CLI脚手架
Downloads
1
Readme
编写自己的脚手架
- 在文件的顶部添加shell命令,用自定义的命令去执行,而不是显示的让node去执行
- 在package.json文件中去添加命令
"bin":{
"test-cli":"src/index.js"
}
- 创建一个软连接挂载到全局
npm link
- 用到的第三方库如下:
- commander:用于构建命令行工具的第三方库
- inquirer:一个强大的命令行交互工具,用于与用户进行交互和收集信息
- ora:用于在命令行界面加载交互动画的第三方库
- download-git-repo:是一个用于下载 Git 仓库的 npm 库。它提供了一个简单的接口,可以方便地从远程 Git 仓库中下载项目代码。你可以指定要下载的仓库和目标目录,并可选择指定分支或标签