Skip to content

Commit 8ff78a8

Browse files
authored
Merge branch '2.6' into dev
2 parents e493d79 + d08b49f commit 8ff78a8

File tree

322 files changed

+81983
-62966
lines changed

Some content is hidden

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

322 files changed

+81983
-62966
lines changed

Diff for: .babelrc

-8
This file was deleted.

Diff for: .babelrc.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const babelPresetFlowVue = {
2+
plugins: [
3+
require('@babel/plugin-proposal-class-properties'),
4+
// require('@babel/plugin-syntax-flow'), // not needed, included in transform-flow-strip-types
5+
require('@babel/plugin-transform-flow-strip-types')
6+
]
7+
}
8+
9+
module.exports = {
10+
presets: [
11+
require('@babel/preset-env'),
12+
// require('babel-preset-flow-vue')
13+
babelPresetFlowVue
14+
],
15+
plugins: [
16+
require('babel-plugin-transform-vue-jsx'),
17+
require('@babel/plugin-syntax-dynamic-import')
18+
],
19+
ignore: [
20+
'dist/*.js',
21+
'packages/**/*.js'
22+
]
23+
}

Diff for: .circleci/config.yml

+53-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
defaults: &defaults
44
working_directory: ~/project/vue
55
docker:
6-
- image: circleci/node:6-browsers
6+
- image: vuejs/ci
77

88
jobs:
99
install:
@@ -12,12 +12,12 @@ jobs:
1212
- checkout
1313
- restore_cache:
1414
keys:
15-
- v1-vue-{{ .Branch }}-{{ checksum "package-lock.json" }}
15+
- v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
1616
- v1-vue-{{ .Branch }}-
1717
- v1-vue-
1818
- run: npm install
1919
- save_cache:
20-
key: v1-vue-{{ .Branch }}-{{ checksum "package-lock.json" }}
20+
key: v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
2121
paths:
2222
- node_modules/
2323
- persist_to_workspace:
@@ -44,7 +44,7 @@ jobs:
4444
name: report coverage stats for non-PRs
4545
command: |
4646
if [[ -z $CI_PULL_REQUEST ]]; then
47-
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
47+
./node_modules/.bin/codecov
4848
fi
4949
5050
test-e2e:
@@ -62,6 +62,16 @@ jobs:
6262
- run: npm run test:ssr
6363
- run: npm run test:weex
6464

65+
trigger-regression-test:
66+
<<: *defaults
67+
steps:
68+
- run:
69+
command: |
70+
curl --user ${CIRCLE_TOKEN}: \
71+
--data build_parameters[CIRCLE_JOB]=update \
72+
--data build_parameters[VUE_REVISION]=${CIRCLE_SHA1} \
73+
https://circleci.com/api/v1.1/project/github/vuejs/regression-testing/tree/master
74+
6575
workflows:
6676
version: 2
6777
install-and-parallel-test:
@@ -79,3 +89,42 @@ workflows:
7989
- test-ssr-weex:
8090
requires:
8191
- install
92+
- trigger-regression-test:
93+
filters:
94+
branches:
95+
only:
96+
- regression-test
97+
requires:
98+
- test-cover
99+
- lint-flow-types
100+
- test-e2e
101+
- test-ssr-weex
102+
weekly_regression_test:
103+
triggers:
104+
- schedule:
105+
# At 13:00 UTC (9:00 EDT) on every Monday
106+
cron: "0 13 * * 1"
107+
filters:
108+
branches:
109+
only:
110+
dev
111+
jobs:
112+
- install
113+
- test-cover:
114+
requires:
115+
- install
116+
- lint-flow-types:
117+
requires:
118+
- install
119+
- test-e2e:
120+
requires:
121+
- install
122+
- test-ssr-weex:
123+
requires:
124+
- install
125+
- trigger-regression-test:
126+
requires:
127+
- test-cover
128+
- lint-flow-types
129+
- test-e2e
130+
- test-ssr-weex

Diff for: .eslintrc

-13
This file was deleted.

Diff for: .eslintrc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
parser: require.resolve('babel-eslint'),
5+
ecmaVersion: 2018,
6+
sourceType: 'module'
7+
},
8+
env: {
9+
es6: true,
10+
node: true,
11+
browser: true
12+
},
13+
plugins: [
14+
"flowtype"
15+
],
16+
extends: [
17+
"eslint:recommended",
18+
"plugin:flowtype/recommended"
19+
],
20+
globals: {
21+
"__WEEX__": true,
22+
"WXEnvironment": true
23+
},
24+
rules: {
25+
'no-console': process.env.NODE_ENV !== 'production' ? 0 : 2,
26+
'no-useless-escape': 0,
27+
'no-empty': 0
28+
}
29+
}

Diff for: .flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[ignore]
22
.*/node_modules/.*
33
.*/test/.*
4-
.*/build/.*
4+
.*/scripts/.*
55
.*/examples/.*
66
.*/benchmarks/.*
77

Diff for: .github/COMMIT_CONVENTION.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
## Git Commit Message Convention
22

3-
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/convention.md).
3+
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
4+
5+
#### TL;DR:
6+
7+
Messages must be matched by the following regex:
8+
9+
``` js
10+
/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
11+
```
412

513
#### Examples
614

Diff for: .github/CONTRIBUTING.md

+7-13
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,12 @@ You will need [Node.js](http://nodejs.org) **version 6+** and [Java Runtime Envi
4040
After cloning the repo, run:
4141

4242
``` bash
43-
$ npm install
44-
& npm run setup
43+
$ npm install # or yarn
4544
```
4645

47-
The `setup` script links two git hooks:
48-
49-
- `pre-commit`: runs ESLint on staged files.
50-
- `commit-msg`: validates commit message format (see below).
51-
5246
### Committing Changes
5347

54-
Commit messages should follow the [commit message convention](./COMMIT_CONVENTION.md) so that changelogs can be automatically generated. If git hooks have been properly linked, commit messages will be automatically validated upon commit. It is recommended to use `npm run commit` instead of `git commit`, which provides an interactive CLI for generating proper commit messages.
48+
Commit messages should follow the [commit message convention](./COMMIT_CONVENTION.md) so that changelogs can be automatically generated. Commit messages will be automatically validated upon commit. If you are not familiar with the commit message convention, you can use `npm run commit` instead of `git commit`, which provides an interactive CLI for generating proper commit messages.
5549

5650
### Commonly used NPM scripts
5751

@@ -75,11 +69,11 @@ The default test script will do the following: lint with ESLint -> type check wi
7569

7670
## Project Structure
7771

78-
- **`build`**: contains build-related configuration files. In most cases you don't need to touch them. However, it would be helpful to familiarize yourself with the following files:
72+
- **`scripts`**: contains build-related scripts and configuration files. In most cases you don't need to touch them. However, it would be helpful to familiarize yourself with the following files:
7973

80-
- `build/alias.js`: module import aliases used across all source code and tests.
74+
- `scripts/alias.js`: module import aliases used across all source code and tests.
8175

82-
- `build/config.js`: contains the build configurations for all files found in `dist/`. Check this file if you want to find out the entry source file for a dist file.
76+
- `scripts/config.js`: contains the build configurations for all files found in `dist/`. Check this file if you want to find out the entry source file for a dist file.
8377

8478
- **`dist`**: contains built files for distribution. Note this directory is only updated when a release happens; they do not reflect the latest changes in development branches.
8579

@@ -137,10 +131,10 @@ As a pure community-driven project without major corporate backing, we also welc
137131

138132
### What's the difference between Patreon and OpenCollective?
139133

140-
Funds donated via Patreon goes directly to support Evan You's full-time work on Vue.js. Funds donated via OpenCollective are managed with transparent expenses and will be used for compensating work and expenses by core team members or sponsoring community events. Your name/logo will receive proper recognition and exposure by donating on either platform.
134+
Funds donated via Patreon go directly to support Evan You's full-time work on Vue.js. Funds donated via OpenCollective are managed with transparent expenses and will be used for compensating work and expenses for core team members or sponsoring community events. Your name/logo will receive proper recognition and exposure by donating on either platform.
141135

142136
## Credits
143137

144-
Thank you to all the people who have already contributed to vuejs!
138+
Thank you to all the people who have already contributed to Vue.js!
145139

146140
<a href="https://github.com/vuejs/vue/graphs/contributors"><img src="https://opencollective.com/vuejs/contributors.svg?width=890" /></a>

0 commit comments

Comments
 (0)