Skip to content

Commit 1358426

Browse files
donaldshenlevy9527
authored andcommitted
docs: update README badges & contributing (#85)
1 parent 8b8a3af commit 1358426

File tree

5 files changed

+77
-62
lines changed

5 files changed

+77
-62
lines changed

.github/badge.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
types:
22
feat: 'enhancement'
3-
fix:
3+
fix:
44
hack: 'hack'
55
default: 'bug'
66
hack: 'hack'
77
docs: 'documentation'
88
refactor: 'refactor'
9+
style: 'style'
910
test: 'test'
1011
perf: 'performance'
1112
chore:

.grenrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
'🚀 Performance:': ['performance'],
2727
'⚓ Dependency upgrades:': ['dependencies'],
2828
'🏡 Chore:': ['chore'],
29+
'💄 Style:': ['style'],
2930
'🎩 Hack': ['hack']
3031
}
3132
}

README-zh.md

+27-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# el-form-renderer
22

3-
[![Build Status](https://travis-ci.com/FEMessage/el-form-renderer.svg?branch=master)](https://travis-ci.com/FEMessage/el-form-renderer)
4-
[![NPM Download](https://img.shields.io/npm/dm/@femessage/el-form-renderer.svg)](https://www.npmjs.com/package/@femessage/el-form-renderer)
5-
[![NPM Version](https://img.shields.io/npm/v/@femessage/el-form-renderer.svg)](https://www.npmjs.com/package/@femessage/el-form-renderer)
6-
[![NPM License](https://img.shields.io/npm/l/@femessage/el-form-renderer.svg)](https://github.com/FEMessage/el-form-renderer/blob/master/LICENSE)
3+
[![Build Status](https://badgen.net/travis/FEMessage/el-form-renderer/master)](https://travis-ci.com/FEMessage/el-form-renderer)
4+
[![NPM Download](https://badgen.net/npm/dm/@femessage/el-form-renderer)](https://www.npmjs.com/package/@femessage/el-form-renderer)
5+
[![NPM Version](https://badgen.net/npm/v/@femessage/el-form-renderer)](https://www.npmjs.com/package/@femessage/el-form-renderer)
6+
[![NPM License](https://badgen.net/npm/license/@femessage/el-form-renderer)](https://github.com/FEMessage/el-form-renderer/blob/master/LICENSE)
77
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/FEMessage/el-form-renderer/pulls)
88
[![Automated Release Notes by gren](https://img.shields.io/badge/%F0%9F%A4%96-release%20notes-00B2EE.svg)](https://github-tools.github.io/github-release-notes/)
99

1010
![](https://cdn.nlark.com/yuque/0/2019/png/160590/1563849166655-0c7319bc-37f1-4ddd-94ff-13051bdd6691.png)
1111

12-
## Table of Contents <!-- omit in toc -->
12+
## Table of Contents
1313

1414
* [Introduction](#introduction)
1515
* [内部集成](#内部集成)
@@ -18,8 +18,9 @@
1818
* [Links](#links)
1919
* [Quick Start](#quick-start)
2020
* [Inspiration](#inspiration)
21-
* [License](#license)
21+
* [Contributing](#contributing)
2222
* [Contributors](#contributors)
23+
* [License](#license)
2324

2425
## Introduction
2526

@@ -55,15 +56,16 @@ el-data-table、el-data-tree 等组件内部集成该组件,用于更加灵活
5556
* 支持渲染自定义组件
5657
* 支持自定义组件设置校验规则
5758

58-
**[⬆ Back to Top](#table-of-contents)**
59+
[⬆ Back to Top](#table-of-contents)
5960

6061
## Links
6162

6263
* [api doc and online demo](https://femessage.github.io/el-form-renderer/)
6364
* [自定义组件接入指南](https://github.com/femessage/el-form-renderer/blob/master/docs/guide-custom-component.md)
6465
* [自定义组件设置校验规则](https://github.com/FEMessage/el-form-renderer/blob/master/docs/guide-custom-rules-in-custom-component.md)
66+
* [fem-vscode-helper](https://marketplace.visualstudio.com/items?itemName=FEMessage.fem-vscode-helper)
6567

66-
**[⬆ Back to Top](#table-of-contents)**
68+
[⬆ Back to Top](#table-of-contents)
6769

6870
## Quick Start
6971

@@ -93,17 +95,24 @@ export default {
9395
</script>
9496
```
9597

96-
**[⬆ Back to Top](#table-of-contents)**
98+
[⬆ Back to Top](#table-of-contents)
9799

98100
## Inspiration
99101

100102
thanks to [element-patch](https://github.com/leezng/element-patch)
101103

102-
## License
104+
## Contributing
103105

104-
[MIT](./LICENSE)
106+
For those who are interested in contributing to this project, such as:
107+
108+
- report a bug
109+
- request new feature
110+
- fix a bug
111+
- implement a new feature
112+
113+
Please refer to our [contributing guide](https://github.com/FEMessage/.github/blob/master/CONTRIBUTING.md).
105114

106-
**[⬆ Back to Top](#table-of-contents)**
115+
[⬆ Back to Top](#table-of-contents)
107116

108117
## Contributors
109118

@@ -125,3 +134,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
125134
<!-- ALL-CONTRIBUTORS-LIST:END -->
126135

127136
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
137+
138+
## License
139+
140+
[MIT](./LICENSE)
141+
142+
[⬆ Back to Top](#table-of-contents)

README.md

+31-14
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
11
# el-form-renderer
22

3-
[![Build Status](https://travis-ci.com/FEMessage/el-form-renderer.svg?branch=master)](https://travis-ci.com/FEMessage/el-form-renderer)
4-
[![NPM Download](https://img.shields.io/npm/dm/@femessage/el-form-renderer.svg)](https://www.npmjs.com/package/@femessage/el-form-renderer)
5-
[![NPM Version](https://img.shields.io/npm/v/@femessage/el-form-renderer.svg)](https://www.npmjs.com/package/@femessage/el-form-renderer)
6-
[![NPM License](https://img.shields.io/npm/l/@femessage/el-form-renderer.svg)](https://github.com/FEMessage/el-form-renderer/blob/master/LICENSE)
3+
[![Build Status](https://badgen.net/travis/FEMessage/el-form-renderer/master)](https://travis-ci.com/FEMessage/el-form-renderer)
4+
[![NPM Download](https://badgen.net/npm/dm/@femessage/el-form-renderer)](https://www.npmjs.com/package/@femessage/el-form-renderer)
5+
[![NPM Version](https://badgen.net/npm/v/@femessage/el-form-renderer)](https://www.npmjs.com/package/@femessage/el-form-renderer)
6+
[![NPM License](https://badgen.net/npm/license/@femessage/el-form-renderer)](https://github.com/FEMessage/el-form-renderer/blob/master/LICENSE)
77
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/FEMessage/el-form-renderer/pulls)
88
[![Automated Release Notes by gren](https://img.shields.io/badge/%F0%9F%A4%96-release%20notes-00B2EE.svg)](https://github-tools.github.io/github-release-notes/)
99

1010
![](https://cdn.nlark.com/yuque/0/2019/png/237102/1564392138773-3b4a3555-9ce5-4825-8510-53ae092711f6.png)
1111

1212
[中文文档](./README-zh.md)
1313

14-
## Table of Contents <!-- omit in toc -->
14+
## Table of Contents
1515

1616
* [Introduction](#introduction)
17+
* [WHAT](#what)
18+
* [WHY](#why)
1719
* [Features](#features)
1820
* [Links](#links)
1921
* [Quick Start](#quick-start)
2022
* [Inspiration](#inspiration)
21-
* [License](#license)
23+
* [Contributing](#contributing)
2224
* [Contributors](#contributors)
25+
* [License](#license)
2326

2427
## Introduction
2528

26-
**WHAT**
29+
### WHAT
2730

2831
`el-form-renderer` is based on [element-ui](https://github.com/ElemeFE/element), but not limited [element-ui](https://github.com/ElemeFE/element) components. On the basis of completely inheriting the form attribute of element-ui, extension is made. Some non-form components or custom components, such as picture uploading and rich text editor, can also be integrated, thus, users can render a complete form by using a piece of json.
2932

30-
**WHY**
33+
### WHY
3134

3235
In our daily development, there are lots page with form, and usually the form structure is similar, the logic is repeated. el-form-renderer does not have complicated logic. It only convert JSON to render form item, save time and energy to write business logic, and reduce duplicate code.
3336

@@ -39,15 +42,16 @@ In our daily development, there are lots page with form, and usually the form st
3942
* Support setOptions method, dynamically change select options
4043
* Content support `inputFormat` , `outputFormat` , `trim` to process component's input and output values
4144

42-
**[⬆Back to Top](#table-of-contents)**
45+
[⬆Back to Top](#table-of-contents)
4346

4447
## Links
4548

4649
* [Docs](https://femessage.github.io/el-form-renderer/)
4750
* [Guide to developing custom component](https://github.com/femessage/el-form-renderer/blob/dev/docs/guide-en-custom-component.md)
4851
* [Setting validation rules in custom component](https://github.com/FEMessage/el-form-renderer/blob/dev/docs/guide-en-custom-rules-in-custom-component.md)
52+
* [fem-vscode-helper](https://marketplace.visualstudio.com/items?itemName=FEMessage.fem-vscode-helper)
4953

50-
**[⬆Back to Top](#table-of-contents)**
54+
[⬆Back to Top](#table-of-contents)
5155

5256
## Quick Start
5357

@@ -74,17 +78,24 @@ export default {
7478
</script>
7579
```
7680

77-
**[⬆Back to Top](#table-of-contents)**
81+
[⬆Back to Top](#table-of-contents)
7882

7983
## Inspiration
8084

8185
thanks to [element-patch](https://github.com/leezng/element-patch)
8286

83-
## License
87+
## Contributing
8488

85-
[MIT](./LICENSE)
89+
For those who are interested in contributing to this project, such as:
90+
91+
- report a bug
92+
- request new feature
93+
- fix a bug
94+
- implement a new feature
95+
96+
Please refer to our [contributing guide](https://github.com/FEMessage/.github/blob/master/CONTRIBUTING.md).
8697

87-
**[⬆ Back to Top](#table-of-contents)**
98+
[⬆ Back to Top](#table-of-contents)
8899

89100
## Contributors
90101

@@ -106,3 +117,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
106117
<!-- ALL-CONTRIBUTORS-LIST:END -->
107118

108119
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
120+
121+
## License
122+
123+
[MIT](./LICENSE)
124+
125+
[⬆ Back to Top](#table-of-contents)

package.json

+16-35
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,9 @@
88
"type": "git",
99
"url": "https://github.com/FEMessage/el-form-renderer.git"
1010
},
11-
"contributors": [
12-
"https://github.com/FEMessage"
13-
],
14-
"keywords": [
15-
"vue",
16-
"element",
17-
"render",
18-
"form",
19-
"component"
20-
],
21-
"files": [
22-
"src",
23-
"dist",
24-
"yarn.lock"
25-
],
11+
"contributors": ["https://github.com/FEMessage"],
12+
"keywords": ["vue", "element", "render", "form", "component"],
13+
"files": ["src", "dist"],
2614
"main": "dist/el-form-renderer.umd.js",
2715
"module": "dist/el-form-renderer.esm.js",
2816
"unpkg": "dist/el-form-renderer.min.js",
@@ -32,13 +20,17 @@
3220
"scripts": {
3321
"dev": "vue-styleguidist server",
3422
"doc": "vue-styleguidist build",
35-
"build": "npm run build:unpkg & npm run build:es & npm run build:umd & npm run doc",
36-
"build:umd": "rollup --config build/rollup.config.js --format umd --file dist/el-form-renderer.umd.js",
37-
"build:es": "rollup --config build/rollup.config.js --format es --file dist/el-form-renderer.esm.js",
38-
"build:unpkg": "rollup --config build/rollup.config.js --format iife --file dist/el-form-renderer.min.js",
23+
"build":
24+
"npm run build:unpkg & npm run build:es & npm run build:umd & npm run doc",
25+
"build:umd":
26+
"rollup --config build/rollup.config.js --format umd --file dist/el-form-renderer.umd.js",
27+
"build:es":
28+
"rollup --config build/rollup.config.js --format es --file dist/el-form-renderer.esm.js",
29+
"build:unpkg":
30+
"rollup --config build/rollup.config.js --format iife --file dist/el-form-renderer.min.js",
3931
"stdver": "standard-version -m '[skip ci] chore(release): v%s'",
4032
"release": "gren release --override",
41-
"test": "jest"
33+
"test": "jest --verbose"
4234
},
4335
"homepage": "https://github.com/FEMessage/el-form-renderer",
4436
"dependencies": {
@@ -84,27 +76,16 @@
8476
"node": ">= 4.0.0",
8577
"npm": ">= 3.0.0"
8678
},
87-
"vue-sfc-cli": "1.10.4",
88-
"browserslist": [
89-
"> 1%",
90-
"last 2 versions",
91-
"not ie <= 8"
92-
],
79+
"vue-sfc-cli": "1.10.6",
80+
"browserslist": ["> 1%", "last 2 versions", "not ie <= 8"],
9381
"husky": {
9482
"hooks": {
9583
"pre-commit": "lint-staged",
9684
"post-commit": "git update-index --again"
9785
}
9886
},
9987
"lint-staged": {
100-
"*.(js|md)": [
101-
"prettier --write",
102-
"git add"
103-
],
104-
"*.vue": [
105-
"prettier --write",
106-
"stylelint --fix",
107-
"git add"
108-
]
88+
"*.(js|md)": ["prettier --write", "git add"],
89+
"*.vue": ["prettier --write", "stylelint --fix", "git add"]
10990
}
11091
}

0 commit comments

Comments
 (0)