1 Star 0 Fork 0

董董 / umi初次实践

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

umi初次实践

使用说明

  1. 首先得有 node,并确保 node 版本是 8.10 或以上;
  2. 推荐使用 yarn 管理 npm 依赖,并使用国内源;
  3. 全局安装 umi,并确保版本是 2.0.0 或以上;
  4. 安装依赖;
  5. 启动本地服务器;
  6. 部署发布;
  7. 发布之前,可以通过 serve 做本地验证;
  8. umi 内置了基于 jest 的测试工具 umi-test;
  9. 使用 umi inspect 列出配置项的内容用以检查;

安装教程

  1. $ node -v
  2. $ npm i yarn tyarn -g
  3. $ tyarn global add umi
  4. $ tyarn
  5. $ umi dev | tyarn start
  6. $ umi build | tyran build
  7. $ tyarn global add serve $ serve ./dist
  8. $ umi test Options: --coverage indicates that test coverage information should be collected and reported in the output --collectCoverageFrom= a glob pattern relative to matching the files that coverage info needs to be collected from, e.g, --collectCoverageFrom=src/**/*.js --detectLeaks debug memory leaks
  9. $ umi inspect Options: --mode specify env mode (development or production, default is development) --rule inspect a specific module rule --plugin inspect a specific plugin --rules list all module rule names --plugins list all plugin names --verbose show full function definitions in output

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lancyer/umi-router-test.git
git@gitee.com:lancyer/umi-router-test.git
lancyer
umi-router-test
umi初次实践
master

搜索帮助