Skip to content

React项目模板,支持Redux,多host,mock数据,css-modules,eslint,prettier等。

License

Notifications You must be signed in to change notification settings

pidehen23/react-template-mobile

Repository files navigation

react-template-mobile react 项目模板

项目运行

git clone git@github.com:chenjiajing23/react-template-mobile.git

cd react-template-mobile

yarn

npm run start

目标功能

  • 支持 typescript 的写法
  • antd-mobile 按需加载功能
  • git 检测功能
  • 热更新功能
  • less 模块化支持
  • apis 多 api 功能
  • mock 数据
  • upload 上传到 cdn 功能

发布

提交版本

  1. 修订版本号:patch 不定时会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)列:1.0.0 -> 1.0.1
npm run patch
  1. 次版本号:minor 一个 feature 或多个 feature 同时发布,列:1.0.0 -> 1.1.0
npm run minor
  1. 主版本号:major 含有破坏性更新和新特性,不在发布周期内,列:1.0.0 -> 2.0.0
npm run major

发布到 npm

npm run pub