Commit 0b3237dd authored by 陈帅's avatar 陈帅

new doc

parent d2577208
...@@ -2,27 +2,24 @@ ...@@ -2,27 +2,24 @@
umi blocks of Ant Design Pro. umi blocks of Ant Design Pro.
> A part of [Ant Design Pro V4](https://github.com/ant-design/ant-design-pro/issues/3143), still in progress. A part of [Ant Design Pro V4](https://github.com/ant-design/ant-design-pro/issues/3143), still in progress.
## dev
## Usage ## Usage
```shell ```shell
$ umi block add [the github url of block] umi block add [the github url of block]
``` ```
You can visit umi [doc](https://umijs.org/guide/block.html) for find out more info about umi block. You can visit umi [doc](https://umijs.org/guide/block.html) for find out more info about umi block.
## Contribute ## Contribute
```shell Enter the block you want to dev
$ cd [some block]
$ yarn # or npm install
$ yarn run dev # or npm run dev
```
Or
```shell ```shell
$ yarn # or npm install cross-env PAGES_PATH='block_name' umi
$ APP_ROOT=[some block] yarn run dev # or APP_ROOT=[someblock] npm run dev
``` ```
> In complex typescript definitions, vscode may crash or tslint reports an error. You can restart the typescript service by "ctrl+shift+p > reload window"
#pro-blocks
Umi 块的 Ant Design Pro。
> [Ant Design Pro V4](https://github.com/ant-design/ant-design-pro/issues/3143)的官方区块
## 用法
```shell
umi block add [block github url]
```
你可以访问 umi [doc](https://umijs.org/guide/block.html)了解更多关于 umi block 的信息。
## 贡献
输入要开发的 block 名称
```shell
npm install
Cross-env PAGES_PATH ='block_name' umi dev
```
> 在复杂的 TypeScript 定义中,vscode 可能会崩溃或 tslint 报告错误。您可以通过 “ctrl + shift + p> reload window” 重新启动 TypeScript 服务
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"lint-staged:ts": "tslint", "lint-staged:ts": "tslint",
"lint:fix": "npm run tslint:fix && npm run lint:style", "lint:fix": "npm run tslint:fix && npm run lint:style",
"lint:prettier": "check-prettier lint", "lint:prettier": "check-prettier write",
"lint:style": "stylelint --syntax less --fix **/**.less ", "lint:style": "stylelint --syntax less --fix **/**.less ",
"lint:ts": "tslint -p . -c tslint.yml", "lint:ts": "tslint -p . -c tslint.yml",
"prettier": "node ./_scripts/prettier.js", "prettier": "node ./_scripts/prettier.js",
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"devDependencies": { "devDependencies": {
"@types/classnames": "^2.2.7", "@types/classnames": "^2.2.7",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
"check-prettier": "^1.0.1", "check-prettier": "^1.0.3",
"glob": "^7.1.3", "glob": "^7.1.3",
"husky": "^2.2.0", "husky": "^2.2.0",
"lint-staged": "^8.1.0", "lint-staged": "^8.1.0",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment