Commit aac60900 authored by 愚道's avatar 愚道

doc: add block dev doc

parent 7f420160
# umi-blocks # pro-blocks
Official collection of some high quality blocks. umi blocks of Ant Design Pro.
## Usage ## Usage
```shell ```shell
$ umi block list $ umi block add [the github url of block]
$ umi block add [A block name in list, or any github address of a umi 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
You can create a umi block and make a PR for us! ```shell
$ cd [some block]
$ yarn # or npm install
$ yarn run dev # or npm run dev
```
How to create a block: Or
```shell ```shell
$ yarn create umi --block $ yarn # or npm install
$ APP_ROOT=[some block] yarn run dev # or APP_ROOT=[someblock] npm run dev
``` ```
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "umi dev",
"lint:style": "stylelint \"src/**/*.less\" --syntax less", "lint:style": "stylelint \"src/**/*.less\" --syntax less",
"lint": "eslint --ext .js src mock tests && npm run lint:style", "lint": "eslint --ext .js src mock tests && npm run lint:style",
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
......
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