Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
aac60900
Commit
aac60900
authored
Mar 08, 2019
by
愚道
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: add block dev doc
parent
7f420160
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
README.md
README.md
+11
-7
package.json
package.json
+1
-0
No files found.
README.md
View file @
aac60900
#
umi
-blocks
#
pro
-blocks
Official collection of some high quality blocks
.
umi blocks of Ant Design Pro
.
## Usage
```
shell
$
umi block list
$
umi block add
[
A block name
in
list, or any github address of a umi 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.
## 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
$
yarn create umi
--block
$
yarn
# or npm install
$ APP_ROOT
=[
some block] yarn run dev
# or APP_ROOT=[someblock] npm run dev
```
package.json
View file @
aac60900
{
"private"
:
true
,
"scripts"
:
{
"dev"
:
"umi dev"
,
"lint:style"
:
"stylelint
\"
src/**/*.less
\"
--syntax less"
,
"lint"
:
"eslint --ext .js src mock tests && npm run lint:style"
,
"lint:fix"
:
"eslint --fix --ext .js src mock tests && npm run lint:style"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment