rf-hf-tools web前端工具箱(类vue-cli等)
模板生成命令
全局安装
- (如之前有安装可以 先卸载 npm uninstall rf-hf-tools -g)
- npm install rf-hf-tools -g
如需下载特定版本 加@1.8.5(版本号)
npm install rf-hf-tools@1.8.5 -g
Usage: main options commandOptions:-V --version output the version number-project--project name build you develop project name-token--apitoken apitoken send your api token-author--author name send your author-trigger--triggerName name send your triggerName-branch--gitBranch name send your gitBranch/tags-autotag--autotag name auto creat your tags-host--host name send your jenkis host-file--file name send your file-newfile--newfile name send your newfile-imgMin--k-h --help display help for commandCommands:setup env run setup commands for all envsgit-tag options env set git tag for all envsauto-replace-file env run auto-replace-file for repalce filepush options env run push commands for all envsauto-serve options env run auto-serve commands for all envscreate run create template file commandsuploadMini run upload miniprogrammer commandsimgMin options Compress images by tinypng apihelp command display help for commandExamples:$ custom-help --help$ custom-help -h代码执行模块:"dev": "npx hf-cli --project rfhouse-html-dev --gitBranch */dev_branch setup dev""test": "npx hf-cli --project rfhouse-html-test-bytag --gitBranch */dev_branch setup test""build": "npx hf-cli --project rfhouse-html-bytag --branch xx setup build""test:tag": "npx hf-cli --project rfhouse-html-test-bytag --autotag true setup test""push": "npx hf-cli push -p true""auto-tag": "npx hf-cli git-tag""auto-replace": "npx hf-cli auto-replace-file""auto-serve": "npx hf-cli auto-serve -p 8007""upload": "npx hf-cli uploadMini"
自动生成模板
- npx hf-cli create 即可运行生成文件交互式命令
模板类型
- vue、小程序page、小程序component
注意
- 无法使用 git 命令的同学 注意查看配置 git 命令 http://note.youdao.com/s/SUkvR3kJ
- 配置 jenkis 环境项目http://note.youdao.com/s/Gl79RraM
重要补丁和更新
- 重磅来袭 哔哩哔哩教学视频来了,伸手党福利
- 更新了微信自动发布 去微信小程序管理后台 配置下载key文件保存下来 另存为 private.key 参考文档