Skip to content

Commit d0aa9ed

Browse files
authored
Merge pull request #1 from vueComponent/master
sync
2 parents d47907b + c86a261 commit d0aa9ed

File tree

1,262 files changed

+28809
-20920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,262 files changed

+28809
-20920
lines changed

.babelrc

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"env": {
3-
"test": {
4-
"presets": [
5-
["env", { "targets": { "node": "current" } }]
6-
],
7-
"plugins": [
8-
"transform-vue-jsx",
9-
"transform-object-assign",
10-
"transform-object-rest-spread",
11-
"transform-class-properties",
12-
"transform-runtime"
13-
]
14-
}
2+
"env": {
3+
"test": {
4+
"presets": [["env", { "targets": { "node": "current" } }]],
5+
"plugins": [
6+
"transform-vue-jsx",
7+
"transform-object-assign",
8+
"transform-object-rest-spread",
9+
"transform-class-properties",
10+
"transform-runtime"
11+
]
1512
}
13+
}
1614
}

.eslintrc

+35-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
11
{
2-
"root": true,
3-
"env": {
4-
"browser": true,
5-
"node": true,
6-
"jasmine": true,
7-
"jest": true,
8-
"es6": true
9-
},
10-
"parserOptions": {
11-
"parser": "babel-eslint"
12-
},
13-
"extends": ["plugin:vue/recommended", "prettier"],
14-
"rules": {
15-
"comma-dangle": [2, "always-multiline"],
16-
"no-var": "error",
17-
"camelcase": "off",
18-
"no-extra-boolean-cast": "off",
19-
"semi": ["error", "always"],
20-
"vue/require-prop-types": "off",
21-
"vue/require-default-prop": "off",
22-
"vue/no-reserved-keys": "off",
23-
"vue/prop-name-casing": "off"
24-
}
25-
}
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"node": true,
6+
"jasmine": true,
7+
"jest": true,
8+
"es6": true
9+
},
10+
"parserOptions": {
11+
"parser": "babel-eslint"
12+
},
13+
"extends": ["plugin:vue/recommended", "prettier"],
14+
"plugins": ["markdown"],
15+
"rules": {
16+
"comma-dangle": [2, "always-multiline"],
17+
"no-var": "error",
18+
"camelcase": "off",
19+
"no-extra-boolean-cast": "off",
20+
"semi": ["error", "always"],
21+
"vue/require-prop-types": "off",
22+
"vue/require-default-prop": "off",
23+
"vue/no-reserved-keys": "off",
24+
"vue/prop-name-casing": "off",
25+
"vue/max-attributes-per-line": [
26+
2,
27+
{
28+
"singleline": 20,
29+
"multiline": {
30+
"max": 1,
31+
"allowFirstLine": false
32+
}
33+
}
34+
]
35+
}
36+
}

.github/ISSUE_TEMPLATE/----please-use-new-issue-ant-design-vue---.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
2-
name: "⚠️ Please use issue-helper ⚠️"
3-
about: The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed
4-
immediately.
2+
name: '⚠️ Please use issue-helper ⚠️'
3+
about: The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed immediately.
54
labels:
6-
75
---
86

97
The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed immediately.

.github/PULL_REQUEST_TEMPLATE.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
First of all, thank you for your contribution! 😄
22

3-
New feature please send pull request to feature branch, and rest to master branch.
4-
Pull request will be merged after one of collaborators approve.
5-
Please makes sure that these form are filled before submitting your pull request, thank you!
3+
New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!
64

75
[[中文版模板 / Chinese template](https://github.com/vueComponent/ant-design-vue/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)]
86

@@ -50,4 +48,4 @@ Please makes sure that these form are filled before submitting your pull request
5048

5149
### Additional Plan? (Optional if not new feature)
5250

53-
> If this PR related with other PR or following info. You can type here.
51+
> If this PR related with other PR or following info. You can type here.

.github/PULL_REQUEST_TEMPLATE/pr_cn.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
首先,感谢你的贡献! 😄
22

3-
新特性请提交至 feature 分支,其余可提交至 master 分支。
4-
在一个维护者审核通过后合并。
5-
请确保填写以下 pull request 的信息,谢谢!~
3+
新特性请提交至 feature 分支,其余可提交至 master 分支。在一个维护者审核通过后合并。请确保填写以下 pull request 的信息,谢谢!~
64

75
[[English Template / 英文模板](?expand=1)]
86

@@ -28,7 +26,7 @@
2826

2927
> 1. 基本的解决思路和其他可选方案。
3028
> 2. 列出最终的 API 实现和用法。
31-
> 3. 涉及UI/交互变动需要有截图或 GIF。
29+
> 3. 涉及 UI/交互变动需要有截图或 GIF。
3230
3331
### 对用户的影响和可能的风险(非新功能可选)
3432

@@ -49,4 +47,4 @@
4947

5048
### 后续计划(非新功能可选)
5149

52-
> 如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。
50+
> 如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ package-lock.json
6969

7070
# 备份文件
7171
/components/test/*
72+
list.txt

.jest.js

+15-24
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
const libDir = process.env.LIB_DIR;
22

33
const transformIgnorePatterns = [
4-
'/dist/', 'node_modules\/[^/]+?\/(?!(es|node_modules)\/)', // Ignore modules without es dir
4+
'/dist/',
5+
'node_modules/[^/]+?/(?!(es|node_modules)/)', // Ignore modules without es dir
56
];
67

78
module.exports = {
89
testURL: 'http://localhost/',
910
setupFiles: ['./tests/setup.js'],
10-
moduleFileExtensions: [
11-
"js",
12-
"jsx",
13-
"json",
14-
"vue",
15-
"md",
16-
"jpg"
17-
],
11+
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'md', 'jpg'],
1812
modulePathIgnorePatterns: ['/_site/'],
19-
testPathIgnorePatterns: [
20-
'/node_modules/', 'node'
21-
],
13+
testPathIgnorePatterns: ['/node_modules/', 'node'],
2214
transform: {
23-
".*\\.(vue|md)$": "<rootDir>/node_modules/vue-jest",
24-
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest"
15+
'.*\\.(vue|md)$': '<rootDir>/node_modules/vue-jest',
16+
'^.+\\.(js|jsx)$': '<rootDir>/node_modules/babel-jest',
17+
'^.+\\.svg$': '<rootDir>/node_modules/jest-transform-stub',
2518
},
26-
testRegex: libDir === 'dist'
27-
? 'demo\\.test\\.js$'
28-
: '.*\\.test\\.js$',
19+
testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$',
2920
moduleNameMapper: {
30-
"^@/(.*)$": "<rootDir>/$1",
31-
"ant-design-vue": "<rootDir>/components/index.js",
32-
"^vue$": "vue/dist/vue.common.js"
21+
'^@/(.*)$': '<rootDir>/$1',
22+
'ant-design-vue': '<rootDir>/components/index.js',
23+
'^vue$': 'vue/dist/vue.common.js',
3324
},
34-
snapshotSerializers: ["<rootDir>/node_modules/jest-serializer-vue"],
25+
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
3526
collectCoverage: process.env.COVERAGE === 'true',
3627
collectCoverageFrom: [
37-
"components/**/*.{js,jsx,vue}",
28+
'components/**/*.{js,jsx,vue}',
3829
'!components/*/style/index.{js,jsx}',
3930
'!components/style/*.{js,jsx}',
4031
'!components/*/locale/*.{js,jsx}',
@@ -45,7 +36,7 @@ module.exports = {
4536
'!components/align/**/*',
4637
'!components/trigger/**/*',
4738
'!components/style.js',
48-
"!**/node_modules/**"
39+
'!**/node_modules/**',
4940
],
50-
transformIgnorePatterns
41+
transformIgnorePatterns,
5142
};

.prettierignore

+24-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1-
**/*.md
21
**/*.svg
3-
**/*.ejs
4-
**/*.html
52
package.json
6-
es/**
7-
lib/**
8-
_site/**
9-
dist/**
3+
lib/
4+
es/
5+
dist/
6+
_site/
7+
coverage/
8+
CNAME
9+
LICENSE
10+
yarn.lock
11+
netlify.toml
12+
yarn-error.log
13+
*.sh
14+
*.snap
15+
.gitignore
16+
.npmignore
17+
.prettierignore
18+
.DS_Store
19+
.editorconfig
20+
.eslintignore
21+
**/*.yml
22+
components/style/color/*.less
23+
**/assets
24+
.gitattributes
25+
.stylelintrc
26+
.vcmrc

.prettierrc

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@
22
"singleQuote": true,
33
"trailingComma": "all",
44
"printWidth": 100,
5+
"proseWrap": "never",
56
"overrides": [
67
{
78
"files": ".prettierrc",
89
"options": {
910
"parser": "json"
1011
}
11-
},
12-
{
13-
"files": ".stylelintrc",
14-
"options": {
15-
"parser": "json"
16-
}
1712
}
1813
]
1914
}

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
sudo: required
33
node_js:
4-
- 10.10.0
4+
- 12.4.0
55
before_script:
66
- npm install vue vue-template-compiler
77
script:

BACKERS.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@
3535

3636
<h2 align="center">支付宝/微信</h2>
3737

38-
### 使用支付宝/微信的赞助的用户,如需要添加名单,赞助后可发github账号到邮箱([email protected])
38+
### 使用支付宝/微信的赞助的用户,如需要添加名单,赞助后可发 github 账号到邮箱([email protected])
3939

4040
- [fastgoo](https://github.com/fastgoo)
4141
- [sendya](https://github.com/sendya)
4242
- [limichange](https://github.com/limichange)
43-

0 commit comments

Comments
 (0)