scmf-cli
v1.3.4
Published
业管管理系统脚手架工具
Downloads
2
Readme
scmf-cli 工具
使用说明
初始化
当前模块根目录运行以下命令
# 当前项目目录运行, 映射全局命令
npm link
# 命令行变更时
npm unlink
# 全局映射后, 直接使用
scmf-cli
运行 scmf-cli -h 查看相关功能描述
Options:
-v,-V, --version scmf-cli 版本号
-i, --init 快速安装项目组代码库, 功能建设中...
-h, --help display help for command
Commands:
syncFile [prjectName] [env] [同步文件] 同步业管关联项目资源文件
静态资源同步命令 syncFile
# 运行命令 参数为 项目名称 及 同步环境
scmf-cli syncFile PageByTs STG
项目目录说明
|-- scmf-cli
|-- _temp // 项目缓存
| |-- cache.json // 业管系统登陆缓存
| |-- wirazd.json // 神兵用户信息
v1.x 待完善功能
- [x] 新增全局配置文件, cli 名称 和 版本号, 从 package.json 文件中读取
- [x] 初始化, 检测有没有本地配置, 如果没有本地配置, 提示更新本地配置, 并新增本地配置文件设置/读取公共方法
- [x] 复制生产的 资源包 id
- [ ] 打印带有链接的文件路径 和 外部网址
后续版本待完善功能
- [ ] 新增项目 git 包克隆功能
- [ ] 新增报错信息收集及生成报错日志文件(至系统临时文件夹)功能
更新日志
1.3.4
fix some bug
1.3.3
新增 clean
清空缓存操作
清理默认配置
1.3.1
新增 初始化 代码注释模板 新增 set 自定义配置 优化 windows / mac 类型判断 及 对应设备的 chrom/vscode 路径的适配 新增 文档生成模块, 代码提取功能,并调整文档生成模板 (art-template 渲染纯内容会进行转义,使用# {{#line}} 让内容不转义) 优化 配置文件 scmfclirc.js 内容
1.3.0
新增 gm
命令 查看神兵提交信息
新增 set
命令 设置脚手架配置
新增 get
命令 获取脚手架配置
新增 inti
命令 初始化项目配置文件
调整命令行代码
1.2.0
新增 远程推包功能
1.1.0
新增 文档提取功能
1.0.1
- 修复全局项目名读取 bug
- 新增 同步生产环境时确认操作
1.0.0
- 脚手架项目结构搭建
- 同步业管静态资源功能完成
0.0.1
- 项目初始化
- 脚手架相关扩展资源引入 新增命令行交互 新增命令行美化工具 新增工具衍生命令行 -v -h 新增脚手架 logo
- node 端相关功能初始化
- 封装请求相关方法(request 及 fetch-node)两种方式
- 封装业管请求及登录逻辑设置
- 静态资源上传功能开发
0.0.2
- 优化调用 syncFile 方法, 转 commander 进行封装
- 优化 serve 登陆及缓存方式
- 优化配置文件及缓存设置方式
- 优化项目目录读取方式, 修改用户输入为自动读取
- 修复 mac 与 window 文件不兼容的 bug
0.0.3
- 修改 PscbVue3 及 PageByTs 项目的打包生成方式
- 去除打包文件的 hash 后缀
- 设置公共打包提取目录
- 测试有效的命令调用方式