1.0.2 • Published 3 years ago

gypso-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

gypso-cli

安装

$ npm i gypso-cli -g

使用

创建工程

$ gypso create <projectName> 
// or
$ gypso-ci create <projectName> 

链接到 github

$ gypso link <gitUrl>
// or
$ gypso-ci link <gitUrl>

依赖

  • commander:命令行工具
  • download-git-repo:下载远程模板
  • inquirer:交互式命令行工具
  • log-symbols:显示出 √ 或 × 等的图标(采用4.1版本)
  • chalk:修改控制台输出内容样式
  • ora:显示 loading 动画
  • fs-extra:系统fs模块的扩展,提供了更多便利的 API,并继承了fs模块的 API

参考

【中高级前端必备】手摸手教你撸一个脚手架

《大前端进阶 Node.js》系列 P6 必备脚手架/CI 构建能力(上)

《大前端进阶 Node.js》系列 P6 必备脚手架/CI 构建能力(下)

https://www.jianshu.com/p/95bca88285e6

https://github.com/codexu/x-build

从 0 构建自己的脚手架/CLI 知识体系(万字) 🛠