README.md 618 Bytes
Newer Older
愚道's avatar
愚道 committed
1
# pro-blocks
偏右's avatar
偏右 committed
2

陈帅's avatar
陈帅 committed
3 4
[中文 README](./README.zh-CN.md)

愚道's avatar
愚道 committed
5
umi blocks of Ant Design Pro.
afc163's avatar
afc163 committed
6

陈帅's avatar
new doc  
陈帅 committed
7 8 9
A part of [Ant Design Pro V4](https://github.com/ant-design/ant-design-pro/issues/3143), still in progress.

## dev
愚道's avatar
愚道 committed
10

afc163's avatar
afc163 committed
11
## Usage
afc163's avatar
afc163 committed
12

13
```shell
陈帅's avatar
new doc  
陈帅 committed
14
umi block add [the github url of block]
afc163's avatar
afc163 committed
15 16
```

17
You can visit umi [doc](https://umijs.org/guide/block.html) for find out more info about umi block.
陈帅's avatar
陈帅 committed
18

19
## Contribute
陈帅's avatar
陈帅 committed
20

陈帅's avatar
new doc  
陈帅 committed
21
Enter the block you want to dev
陈帅's avatar
陈帅 committed
22

23
```shell
陈帅's avatar
new doc  
陈帅 committed
24
cross-env PAGES_PATH='block_name' umi
陈帅's avatar
陈帅 committed
25
```
陈帅's avatar
new doc  
陈帅 committed
26 27

> In complex typescript definitions, vscode may crash or tslint reports an error. You can restart the typescript service by "ctrl+shift+p > reload window"