Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vue-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.5.1
Choose a base ref
...
head repository: vuejs/vue-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.5.3
Choose a head ref

Commits on Mar 12, 2019

  1. Copy the full SHA
    e7693cc View commit details
  2. Copy the full SHA
    f138696 View commit details
  3. test: remove .only

    haoqunjiang committed Mar 12, 2019
    Copy the full SHA
    dd18cd8 View commit details
  4. test: fix windows test

    haoqunjiang committed Mar 12, 2019
    Copy the full SHA
    e48a956 View commit details

Commits on Mar 13, 2019

  1. docs: pwa migration

    haoqunjiang committed Mar 13, 2019
    Copy the full SHA
    b93c0a2 View commit details

Commits on Mar 14, 2019

  1. Copy the full SHA
    eda048a View commit details
  2. Copy the full SHA
    bbd573b View commit details
  3. Copy the full SHA
    2cf5849 View commit details

Commits on Mar 15, 2019

  1. Copy the full SHA
    b460b67 View commit details

Commits on Mar 16, 2019

  1. Copy the full SHA
    a1b784f View commit details

Commits on Mar 20, 2019

  1. Copy the full SHA
    b993030 View commit details

Commits on Mar 21, 2019

  1. Copy the full SHA
    fd20e1f View commit details

Commits on Mar 26, 2019

  1. Copy the full SHA
    156ef21 View commit details

Commits on Mar 27, 2019

  1. Copy the full SHA
    4d6fcf5 View commit details
  2. v3.5.2

    haoqunjiang committed Mar 27, 2019
    Copy the full SHA
    0dc7934 View commit details
  3. Copy the full SHA
    e1328ac View commit details
  4. Copy the full SHA
    614367d View commit details
  5. Copy the full SHA
    10296ff View commit details
  6. Copy the full SHA
    adac48d View commit details
  7. Copy the full SHA
    f107623 View commit details
  8. v3.5.3

    haoqunjiang committed Mar 27, 2019
    Copy the full SHA
    582dc45 View commit details
Showing with 572 additions and 210 deletions.
  1. +27 −0 CHANGELOG.md
  2. +2 −1 README.md
  3. +27 −19 docs/.vuepress/config.js
  4. BIN docs/.vuepress/public/icons/android-chrome-192x192.png
  5. BIN docs/.vuepress/public/icons/android-chrome-512x512.png
  6. BIN docs/.vuepress/public/icons/apple-touch-icon-120x120.png
  7. BIN docs/.vuepress/public/icons/apple-touch-icon-152x152.png
  8. BIN docs/.vuepress/public/icons/apple-touch-icon-180x180.png
  9. BIN docs/.vuepress/public/icons/apple-touch-icon-60x60.png
  10. BIN docs/.vuepress/public/icons/apple-touch-icon-76x76.png
  11. BIN docs/.vuepress/public/icons/apple-touch-icon.png
  12. BIN docs/.vuepress/public/icons/favicon-16x16.png
  13. BIN docs/.vuepress/public/icons/favicon-32x32.png
  14. BIN docs/.vuepress/public/icons/msapplication-icon-144x144.png
  15. BIN docs/.vuepress/public/icons/mstile-150x150.png
  16. +149 −0 docs/.vuepress/public/icons/safari-pinned-tab.svg
  17. +20 −0 docs/.vuepress/public/manifest.json
  18. +1 −1 docs/guide/css.md
  19. +1 −1 lerna.json
  20. +1 −3 package.json
  21. +12 −7 packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js
  22. +6 −4 packages/@vue/babel-preset-app/package.json
  23. +22 −4 packages/@vue/babel-preset-app/polyfillsPlugin.js
  24. +4 −3 packages/@vue/cli-plugin-babel/package.json
  25. +1 −1 packages/@vue/cli-plugin-typescript/generator/index.js
  26. +5 −4 packages/@vue/cli-plugin-typescript/package.json
  27. +1 −1 packages/@vue/cli-plugin-unit-jest/README.md
  28. +3 −2 packages/@vue/cli-plugin-unit-jest/package.json
  29. +6 −5 packages/@vue/cli-service-global/package.json
  30. +7 −2 packages/@vue/cli-service/__tests__/Service.spec.js
  31. +3 −0 packages/@vue/cli-service/lib/PluginAPI.js
  32. +4 −1 packages/@vue/cli-service/lib/commands/build/resolveAppConfig.js
  33. +5 −7 packages/@vue/cli-service/lib/webpack/ModernModePlugin.js
  34. +3 −2 packages/@vue/cli-service/package.json
  35. +5 −4 packages/@vue/cli-ui-addon-webpack/package.json
  36. +5 −4 packages/@vue/cli-ui-addon-widgets/package.json
  37. +5 −4 packages/@vue/cli-ui/package.json
  38. +6 −5 packages/@vue/cli/package.json
  39. +21 −21 packages/vue-cli-version-marker/package.json
  40. +220 −104 yarn.lock
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# [3.5.2](https://github.com/vuejs/vue-cli/compare/v3.5.1...v3.5.2) (2019-03-27)

## babel-preset-app

#### Bug Fixes

* use absolute import path for injected core-js polyfills ([#3710](https://github.com/vuejs/vue-cli/issues/3710)) ([4d6fcf5](https://github.com/vuejs/vue-cli/commit/4d6fcf5)), closes [#3678](https://github.com/vuejs/vue-cli/issues/3678)
* explicitly set corejs version for [@babel](https://github.com/babel)/preset-env ([#3696](https://github.com/vuejs/vue-cli/issues/3696)) ([156ef21](https://github.com/vuejs/vue-cli/commit/156ef21)), closes [#3695](https://github.com/vuejs/vue-cli/issues/3695)

## docs

#### Features

* add manifest.json, make the website installable ([eda048a](https://github.com/vuejs/vue-cli/commit/eda048a))



# [3.5.1](https://github.com/vuejs/vue-cli/compare/v3.5.0...v3.5.1) (2019-03-12)

## cli-service

#### Bug Fixes

* should resolve to full path when setting default entryFiles ([dd37773](https://github.com/vuejs/vue-cli/commit/dd37773)), closes [#3616](https://github.com/vuejs/vue-cli/issues/3616) [#3618](https://github.com/vuejs/vue-cli/issues/3618)



# [3.5.0](https://github.com/vuejs/vue-cli/compare/v3.4.1...v3.5.0) (2019-03-08)

## babel-preset-app
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# vue-cli [![Build Status](https://circleci.com/gh/vuejs/vue-cli/tree/dev.svg?style=shield)](https://circleci.com/gh/vuejs/vue-cli/tree/dev) [![Windows Build status](https://ci.appveyor.com/api/projects/status/rkpafdpdwie9lqx0/branch/dev?svg=true)](https://ci.appveyor.com/project/yyx990803/vue-cli/branch/dev)
# vue-cli [![Build Status](https://circleci.com/gh/vuejs/vue-cli/tree/dev.svg?style=shield)](https://circleci.com/gh/vuejs/vue-cli/tree/dev) [![Windows Build status](https://ci.appveyor.com/api/projects/status/rkpafdpdwie9lqx0/branch/dev?svg=true)](https://ci.appveyor.com/project/yyx990803/vue-cli/branch/dev) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)


> Vue CLI is the Standard Tooling for Vue.js Development.
46 changes: 27 additions & 19 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -16,10 +16,36 @@ module.exports = {
description: '🛠️ Стандартный инструментарий для разработки на Vue.js'
}
},
serviceWorker: true,
head: [
['link', { rel: 'icon', href: '/favicon.png' }],
['link', { rel: 'manifest', href: '/manifest.json' }],
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }],
['meta', { name: 'msapplication-TileColor', content: '#000000' }]
],
plugins: {
'@vuepress/pwa': {
serviceWorker: true,
updatePopup: {
'/': {
message: "New content is available.",
buttonText: "Refresh"
},
'/zh/': {
message: "发现新内容可用",
buttonText: "刷新"
},
'/ru/': {
message: 'Доступно обновление контента',
buttonText: 'Обновить'
}
}
}
},
theme: '@vuepress/theme-vue',
themeConfig: {
repo: 'vuejs/vue-cli',
@@ -37,12 +63,6 @@ module.exports = {
selectText: 'Languages',
lastUpdated: 'Last Updated',
editLinkText: 'Edit this page on GitHub',
serviceWorker: {
updatePopup: {
message: "New content is available.",
buttonText: "Refresh"
}
},
nav: [
{
text: 'Guide',
@@ -135,12 +155,6 @@ module.exports = {
selectText: '选择语言',
lastUpdated: '上次编辑时间',
editLinkText: '在 GitHub 上编辑此页',
serviceWorker: {
updatePopup: {
message: "发现新内容可用",
buttonText: "刷新"
}
},
nav: [
{
text: '指南',
@@ -224,12 +238,6 @@ module.exports = {
selectText: 'Переводы',
lastUpdated: 'Последнее обновление',
editLinkText: 'Изменить эту страницу на GitHub',
serviceWorker: {
updatePopup: {
message: 'Доступно обновление контента',
buttonText: 'Обновить'
}
},
nav: [
{
text: 'Руководство',
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/icons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/icons/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 149 additions & 0 deletions docs/.vuepress/public/icons/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/.vuepress/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Vue CLI",
"short_name": "Vue CLI",
"icons": [
{
"src": "/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/index.html",
"display": "standalone",
"background_color": "#fff",
"theme_color": "#3eaf7c"
}
2 changes: 1 addition & 1 deletion docs/guide/css.md
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ module.exports = {
}
```

Loaders can be configured via `loaderOptions` include:
Loaders which can be configured via `loaderOptions` include:

- [css-loader](https://github.com/webpack-contrib/css-loader)
- [postcss-loader](https://github.com/postcss/postcss-loader)
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"npmClient": "yarn",
"useWorkspaces": false,
"version": "3.5.1",
"version": "3.5.3",
"packages": [
"packages/@vue/babel-preset-app",
"packages/@vue/cli*"
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@
},
"devDependencies": {
"@vue/conventional-changelog": "^0.1.1",
"@vuepress/plugin-pwa": "^1.0.0-alpha.44",
"@vuepress/theme-vue": "1.0.0-alpha.44",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
@@ -75,10 +76,7 @@
"yorkie": "^2.0.0"
},
"resolutions": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-core": "7.0.0-bridge.0",
"ps-tree": "^1.1.1",
"puppeteer": "1.11.0",
"vue": "^2.6.7",
"vue-template-compiler": "^2.6.7",
19 changes: 12 additions & 7 deletions packages/@vue/babel-preset-app/__tests__/babel-preset.spec.js
Original file line number Diff line number Diff line change
@@ -7,6 +7,11 @@ const defaultOptions = {
filename: 'test-entry-file.js'
}

const genCoreJSImportRegExp = mod => {
// expected to include a `node_modules` in the import path because we use absolute path for core-js
return new RegExp(`import "${['.*node_modules', 'core-js', 'modules', mod].join(`[\\${path.sep}]+`)}`)
}

beforeEach(() => {
process.env.VUE_CLI_ENTRY_FILES = JSON.stringify([path.join(process.cwd(), 'test-entry-file.js')])
})
@@ -22,9 +27,9 @@ test('polyfill detection', () => {
filename: 'test-entry-file.js'
})
// default includes
expect(code).not.toMatch(`import "core-js/modules/es6.promise"`)
expect(code).not.toMatch(genCoreJSImportRegExp('es6.promise'))
// usage-based detection
expect(code).not.toMatch(`import "core-js/modules/es6.map"`)
expect(code).not.toMatch(genCoreJSImportRegExp('es6.map'))

;({ code } = babel.transformSync(`
const a = new Map()
@@ -36,9 +41,9 @@ test('polyfill detection', () => {
filename: 'test-entry-file.js'
}))
// default includes
expect(code).toMatch(`import "core-js/modules/es6.promise"`)
expect(code).toMatch(genCoreJSImportRegExp('es6.promise'))
// promise polyfill alone doesn't work in IE, needs this as well. fix: #1642
expect(code).toMatch(`import "core-js/modules/es6.array.iterator"`)
expect(code).toMatch(genCoreJSImportRegExp('es6.array.iterator'))
// usage-based detection
expect(code).toMatch(/import _Map from ".*runtime-corejs2\/core-js\/map"/)
})
@@ -56,7 +61,7 @@ test('modern mode always skips polyfills', () => {
filename: 'test-entry-file.js'
})
// default includes
expect(code).not.toMatch(`import "core-js/modules/es6.promise"`)
expect(code).not.toMatch(genCoreJSImportRegExp('es6.promise'))
// usage-based detection
expect(code).not.toMatch(/import _Map from ".*runtime-corejs2\/core-js\/map"/)

@@ -71,7 +76,7 @@ test('modern mode always skips polyfills', () => {
filename: 'test-entry-file.js'
}))
// default includes
expect(code).not.toMatch(`import "core-js/modules/es6.promise"`)
expect(code).not.toMatch(genCoreJSImportRegExp('es6.promise'))
// usage-based detection
expect(code).not.toMatch(/import _Map from ".*runtime-corejs2\/core-js\/map"/)
delete process.env.VUE_CLI_MODERN_BUILD
@@ -98,7 +103,7 @@ test('async/await', () => {
}
hello()
`.trim(), defaultOptions)
expect(code).toMatch(`import "core-js/modules/es6.promise"`)
expect(code).toMatch(genCoreJSImportRegExp('es6.promise'))
// should use regenerator runtime
expect(code).toMatch(`import "regenerator-runtime/runtime"`)
// should use required helper instead of inline
Loading