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
fe37e833
Unverified
Commit
fe37e833
authored
Mar 22, 2019
by
Yu
Committed by
GitHub
Mar 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from ant-design/doc/readme
doc: update readme, add dev doc
parents
1b07362f
76e0fed1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
README.md
README.md
+13
-7
package.json
package.json
+1
-0
No files found.
README.md
View file @
fe37e833
#
umi
-blocks
#
pro
-blocks
Official collection of some high quality blocks.
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.
## 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
```
```
package.json
View file @
fe37e833
{
{
"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"
,
...
...
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