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