Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fox-js/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fox-cli
Fox命令行脚手架工具
Install
NPM
npm install -g @fox-js/cli
使用说明
步骤一 初始化配置
设置版本列表地址
- fox-cli setting versionsUrl 版本列表地址
fox-cli setting versionsUrl http://localhost:3000/template/versions设置模版工程列表地址
- fox-cli setting versionsUrl 模版工程列表地址
fox-cli setting templatesUrl http://localhost:3000/template/list步骤二 创建脚手架工程
fox-cli create my-project
步骤三 初始化脚手架工程
cd my-project
pnpm i
步骤四 启动脚手架工程
pnpm start
工程说明
cli配置文件
fox-cli/config/index.js配置说明
export default {
versionsUrl: 'http://127.0.0.1:3000/template/versions', // 获取Fox版本列表
templatesUrl: 'http://127.0.0.1:3000/template/list' // 获取模版工程列表
}如何进行调试
- 在工程目录下执行 npm link
- fox-cli create my-project
删除link npm unlink @fox-js/cli
模版工程在github/gitlab repo的下载地址配置
模版工程在http服务的下载地址配置
地址格式为
http://xxx/fileName.zipPS zip压缩文件,不要包含文件夹