Skip to content

Commit e4a8545

Browse files
Merge remote-tracking branch 'upstream/dev' into accurateVueTypes
Conflicts: types/vue.d.ts
2 parents ebd8c0b + c628103 commit e4a8545

File tree

111 files changed

+23960
-9361
lines changed

Some content is hidden

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

111 files changed

+23960
-9361
lines changed

.flowconfig

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ module.name_mapper='^weex/\(.*\)$' -> '<PROJECT_ROOT>/src/platforms/weex/\1'
2020
module.name_mapper='^server/\(.*\)$' -> '<PROJECT_ROOT>/src/server/\1'
2121
module.name_mapper='^entries/\(.*\)$' -> '<PROJECT_ROOT>/src/entries/\1'
2222
module.name_mapper='^sfc/\(.*\)$' -> '<PROJECT_ROOT>/src/sfc/\1'
23+
suppress_comment= \\(.\\|\n\\)*\\$flow-disable-line

.github/COMMIT_CONVENTION.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@
44
55
#### Examples
66

7-
Appears under "Features" header, pencil subheader:
7+
Appears under "Features" header, `compiler` subheader:
88

99
```
10-
feat(pencil): add 'graphiteWidth' option
10+
feat(compiler): add 'comments' option
1111
```
1212

13-
Appears under "Bug Fixes" header, graphite subheader, with a link to issue #28:
13+
Appears under "Bug Fixes" header, `v-model` subheader, with a link to issue #28:
1414

1515
```
16-
fix(graphite): stop graphite breaking when width < 0.1
16+
fix(v-model): handle events on blur
1717
1818
close #28
1919
```
2020

2121
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
2222

2323
```
24-
perf(pencil): remove graphiteWidth option
24+
perf(core): improve vdom diffing by removing 'foo' option
2525
26-
BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reason.
26+
BREAKING CHANGE: The 'foo' option has been removed.
2727
```
2828

2929
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
3030

3131
```
32-
revert: feat(pencil): add 'graphiteWidth' option
32+
revert: feat(compiler): add 'comments' option
3333
3434
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
3535
```

.github/CONTRIBUTING.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ After cloning the repo, run:
4141

4242
``` bash
4343
$ npm install
44+
& npm run setup
4445
```
4546

46-
This will also run the `postinstall` script which links two git hooks:
47+
The `setup` script links two git hooks:
4748

4849
- `pre-commit`: runs ESLint on staged files.
4950
- `commit-msg`: validates commit message format (see below).

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ test/e2e/reports
1010
test/e2e/screenshots
1111
coverage
1212
RELEASE_NOTE*.md
13+
dist/*.js
14+
packages/vue-server-renderer/basic.js
15+
packages/vue-server-renderer/build.js
16+
packages/vue-server-renderer/server-plugin.js
17+
packages/vue-server-renderer/client-plugin.js
18+
packages/vue-template-compiler/build.js

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/dm/vue.svg" alt="Downloads"></a>
77
<a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/v/vue.svg" alt="Version"></a>
88
<a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/l/vue.svg" alt="License"></a>
9+
<a href="https://chat.vuejs.org/"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat">
910
<br>
1011
<a href="https://saucelabs.com/u/vuejs"><img src="https://saucelabs.com/browser-matrix/vuejs.svg" alt="Sauce Test Status"></a>
1112
</p>
@@ -96,7 +97,7 @@ To check out live examples and docs, visit [vuejs.org](https://vuejs.org).
9697

9798
## Questions
9899

99-
For questions and support please use the [Gitter chat room](https://gitter.im/vuejs/vue) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
100+
For questions and support please use the [the official forum](http://forum.vuejs.org) or [community chat](https://chat.vuejs.org/). The issue list of this repo is **exclusively** for bug reports and feature requests.
100101

101102
## Issues
102103

build/build.js

+17-16
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,23 @@ function build (builds) {
4242

4343
function buildEntry (config) {
4444
const isProd = /min\.js$/.test(config.dest)
45-
return rollup.rollup(config).then(bundle => {
46-
const code = bundle.generate(config).code
47-
if (isProd) {
48-
var minified = (config.banner ? config.banner + '\n' : '') + uglify.minify(code, {
49-
output: {
50-
ascii_only: true
51-
},
52-
compress: {
53-
pure_funcs: ['makeMap']
54-
}
55-
}).code
56-
return write(config.dest, minified, true)
57-
} else {
58-
return write(config.dest, code)
59-
}
60-
})
45+
return rollup.rollup(config)
46+
.then(bundle => bundle.generate(config))
47+
.then(({ code }) => {
48+
if (isProd) {
49+
var minified = (config.banner ? config.banner + '\n' : '') + uglify.minify(code, {
50+
output: {
51+
ascii_only: true
52+
},
53+
compress: {
54+
pure_funcs: ['makeMap']
55+
}
56+
}).code
57+
return write(config.dest, minified, true)
58+
} else {
59+
return write(config.dest, code)
60+
}
61+
})
6162
}
6263

6364
function write (dest, code, zip) {

build/gen-release-note.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const version = process.env.VERSION
1+
const version = process.argv[2] || process.env.VERSION
22
const cc = require('conventional-changelog')
3-
const file = `./RELEASE_NOTE_${version}.md`
3+
const file = `./RELEASE_NOTE${version ? `_${version}` : ``}.md`
44
const fileStream = require('fs').createWriteStream(file)
55

66
cc({

build/release-weex.sh

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
3131
cd -
3232

3333
# commit
34-
git add src/entries/weex*
3534
git add packages/weex*
3635
git commit -m "[release] weex-vue-framework@$NEXT_VERSION"
3736
fi

build/release.sh

+16-10
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ echo
1212
if [[ $REPLY =~ ^[Yy]$ ]]; then
1313
echo "Releasing $VERSION ..."
1414

15-
npm run lint
16-
npm run flow
17-
npm run test:cover
18-
npm run test:e2e
19-
npm run test:ssr
15+
if [[ -z $SKIP_TESTS ]]; then
16+
npm run lint
17+
npm run flow
18+
npm run test:cover
19+
npm run test:e2e
20+
npm run test:ssr
21+
fi
2022

2123
if [[ -z $SKIP_SAUCE ]]; then
2224
export SAUCE_BUILD_ID=$VERSION:`date +"%s"`
@@ -47,8 +49,15 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
4749

4850
# commit
4951
git add -A
50-
git commit -m "[build] $VERSION"
51-
npm version $VERSION --message "[release] $VERSION"
52+
git add -f \
53+
dist/*.js \
54+
packages/vue-server-renderer/basic.js \
55+
packages/vue-server-renderer/build.js \
56+
packages/vue-server-renderer/server-plugin.js \
57+
packages/vue-server-renderer/client-plugin.js \
58+
packages/vue-template-compiler/build.js
59+
git commit -m "build: build $VERSION"
60+
npm version $VERSION --message "build: release $VERSION"
5261

5362
# publish
5463
git push origin refs/tags/v$VERSION
@@ -58,7 +67,4 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
5867
else
5968
npm publish --tag $RELEASE_TAG
6069
fi
61-
62-
# generate release note
63-
VERSION=$VERSION npm run release:note
6470
fi

0 commit comments

Comments
 (0)