1.1.0 • Published 3 years ago

ehapp v1.1.0

Weekly downloads
4
License
ISC
Repository
-
Last release
3 years ago

移动端项目脚手架

TODO

  • 支持快速生成 react 模版或者react-hooks 模版;
  • eslint,prettier,stylelint 校验规范;
  • husky 代码提交校验;
  • 自动校验模块文件名,防止文件覆盖;
  • deploy 命令自动化部署;
  • 自动过滤 node_modules & .vscode 等上传服务器
  • 部署离线App ...
  • 基于react + typescript 项目模块开发
  • 由于公司单元环境 ip 零散 ,暂时先手动输入ip部署吧

ehapp 脚手架使用说明

  1. 全局安装:npm install ehapp -g

  2. 新创建一个app项目:ehapp --init

app 项目命名规范:单独英文或英文 + - 命名方式

  1. 业务开发,打包,将文件拖入zapp repo 统一托管

建议在 zapp 目录下运行 ehapp -i 来获取相同文件名格式校验

  1. 自动化部署

    先运行命令打包,然后执行 ehapp -d 部署项目到单元环境,部署完成即可通知测试

脚手架常用命令

  • ehapp --version or -V // ehapp curren version

  • ehapp --init or -i xx // create an app template

  • ehapp -l or --list // view a list of all available templates

  • ehapp -h or --help // output usage information of the ehapp
  • ehapp -d or ehapp --deploy // deploy app to server

FAQ

该脚手架仅支持单独部署 zapp 项目,如果部署 ehome-admin 或其它后台项目需要 运用Jenkins