@ -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.