chenshuai2144 4 years ago
parent
commit
23cfee4c98
  1. 46
      README.md
  2. 46
      README.zh-CN.md

46
README.md

@ -82,22 +82,38 @@ We need your help: https://github.com/ant-design/ant-design-pro/issues/120
### Use bash ### Use bash
We provide pro-cli to quickly initialize scaffolding.
```bash ```bash
$ mkdir <your-project-name> # use npm
$ cd <your-project-name> npm i @ant-design/pro-cli -g
$ yarn create umi # or npm create umi pro create myapp
```
# Choose ant-design-pro:
Select the boilerplate type (Use arrow keys) select umi version
❯ ant-design-pro - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
app - Create project with a simple boilerplate, support typescript. ```shell
block - Create a umi block. 🐂 Use umi@4 or umi@3 ? (Use arrow keys)
library - Create a library with umi. ❯ umi@4
plugin - Create a umi plugin. umi@3
```
$ git init
$ npm install > If the umi@4 version is selected, full blocks are not yet supported.
$ npm start # visit http://localhost:8000
If you choose umi@3, you can also choose the pro template. Pro is the basic template, which only provides the basic content of the framework operation. Complete contains all blocks, which is not suitable for secondary development as a basic template.
```shell
? 🚀 Full or a simple scaffold? (Use arrow keys)
❯ simple
complete
```
Install dependencies:
```shell
$ cd myapp && tyarn
// or
$ cd myapp && npm install
``` ```
## Browsers support ## Browsers support

46
README.zh-CN.md

@ -74,22 +74,38 @@ Language : [🇺🇸](./README.md) | 🇨🇳 | [🇷🇺](./README.ru-RU.md) |
## 使用 ## 使用
我们提供了 pro-cli 来快速的初始化脚手架。
```bash ```bash
$ mkdir <your-project-name> # 使用 npm
$ cd <your-project-name> npm i @ant-design/pro-cli -g
$ yarn create umi # or npm create umi pro create myapp
```
# Choose ant-design-pro:
Select the boilerplate type (Use arrow keys) 选择 umi 的版本
❯ ant-design-pro - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
app - Create project with a simple boilerplate, support typescript. ```shell
block - Create a umi block. ? 🐂 使用 umi@4 还是 umi@3 ? (Use arrow keys)
library - Create a library with umi. ❯ umi@4
plugin - Create a umi plugin. umi@3
```
$ git init
$ npm install > 如果选择了 umi@4 版本,暂时还不支持全量区块。
$ npm start # visit http://localhost:8000
如果选择了 umi@3,还可以选择 pro 的模板,pro 是基础模板,只提供了框架运行的基本内容,complete 包含所有区块,不太适合当基础模板来进行二次开发
```shell
? 🚀 要全量的还是一个简单的脚手架? (Use arrow keys)
❯ simple
complete
```
安装依赖:
```shell
$ cd myapp && tyarn
// 或
$ cd myapp && npm install
``` ```
更多信息请参考 [使用文档](http://pro.ant.design/docs/getting-started)。 更多信息请参考 [使用文档](http://pro.ant.design/docs/getting-started)。

Loading…
Cancel
Save