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.0
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.1
Choose a head ref
  • 11 commits
  • 35 files changed
  • 4 contributors

Commits on Feb 25, 2019

  1. Copy the full SHA
    8db6237 View commit details

Commits on Mar 8, 2019

  1. Copy the full SHA
    a6451ca View commit details
  2. Copy the full SHA
    097be7c View commit details

Commits on Mar 9, 2019

  1. Copy the full SHA
    b2d6dbd View commit details
  2. Copy the full SHA
    8d5d854 View commit details

Commits on Mar 10, 2019

  1. Copy the full SHA
    d23e728 View commit details
  2. Copy the full SHA
    3173d20 View commit details
  3. Copy the full SHA
    ddf3a2f View commit details

Commits on Mar 11, 2019

  1. Copy the full SHA
    29d7d0b View commit details

Commits on Mar 12, 2019

  1. 2
    Copy the full SHA
    dd37773 View commit details
  2. v3.5.1

    haoqunjiang committed Mar 12, 2019
    Copy the full SHA
    0b363be View commit details
Showing with 570 additions and 1,068 deletions.
  1. +67 −0 CHANGELOG.md
  2. +1 −1 docs/.vuepress/config.js
  3. 0 docs/.vuepress/{style.styl → styles/index.styl}
  4. +8 −0 docs/config/README.md
  5. +89 −0 docs/guide/deployment.md
  6. +1 −1 docs/guide/troubleshooting.md
  7. +1 −1 lerna.json
  8. +2 −1 package.json
  9. +1 −3 packages/@vue/babel-preset-app/README.md
  10. +1 −1 packages/@vue/babel-preset-app/package.json
  11. +1 −1 packages/@vue/cli-init/package.json
  12. +1 −1 packages/@vue/cli-overlay/package.json
  13. +3 −3 packages/@vue/cli-plugin-babel/package.json
  14. +2 −2 packages/@vue/cli-plugin-e2e-cypress/package.json
  15. +2 −2 packages/@vue/cli-plugin-e2e-nightwatch/package.json
  16. +2 −2 packages/@vue/cli-plugin-eslint/package.json
  17. +2 −2 packages/@vue/cli-plugin-pwa/package.json
  18. +2 −2 packages/@vue/cli-plugin-typescript/package.json
  19. +32 −2 packages/@vue/cli-plugin-unit-jest/README.md
  20. +1 −0 packages/@vue/cli-plugin-unit-jest/generator/index.js
  21. +2 −2 packages/@vue/cli-plugin-unit-jest/package.json
  22. +2 −2 packages/@vue/cli-plugin-unit-mocha/package.json
  23. +5 −5 packages/@vue/cli-service-global/package.json
  24. +18 −0 packages/@vue/cli-service/__tests__/Service.spec.js
  25. +15 −4 packages/@vue/cli-service/lib/Service.js
  26. +3 −3 packages/@vue/cli-service/package.json
  27. +1 −1 packages/@vue/cli-shared-utils/package.json
  28. +1 −1 packages/@vue/cli-test-utils/package.json
  29. +4 −4 packages/@vue/cli-ui-addon-webpack/package.json
  30. +4 −4 packages/@vue/cli-ui-addon-widgets/package.json
  31. +6 −6 packages/@vue/cli-ui/package.json
  32. +1 −1 packages/@vue/cli-upgrade/package.json
  33. +5 −5 packages/@vue/cli/package.json
  34. +21 −21 packages/vue-cli-version-marker/package.json
  35. +263 −984 yarn.lock
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
# [3.5.0](https://github.com/vuejs/vue-cli/compare/v3.4.1...v3.5.0) (2019-03-08)

## babel-preset-app

#### Bug Fixes

* use an environment variable to determine the entry files to inject default polyfills ([#3565](https://github.com/vuejs/vue-cli/issues/3565)) ([93f57ac](https://github.com/vuejs/vue-cli/commit/93f57ac)), closes [#2983](https://github.com/vuejs/vue-cli/issues/2983)
#### Features

* add `entryFiles` option, allowing explicit polyfill injection to specified files ([#3470](https://github.com/vuejs/vue-cli/issues/3470)) ([7df0c58](https://github.com/vuejs/vue-cli/commit/7df0c58))

## cli

#### Bug Fixes

* add missing package keys to the sort array (issue [#3509](https://github.com/vuejs/vue-cli/issues/3509)) ([#3510](https://github.com/vuejs/vue-cli/issues/3510)) ([6e9ba9b](https://github.com/vuejs/vue-cli/commit/6e9ba9b))

## cli-plugin-babel

#### Features

* add .mjs files as transpileable files ([#3485](https://github.com/vuejs/vue-cli/issues/3485)) ([8562d3e](https://github.com/vuejs/vue-cli/commit/8562d3e))

## cli-plugin-e2e-nightwatch

#### Bug Fixes

* setting env by `-e` in e2e tests ([#3583](https://github.com/vuejs/vue-cli/issues/3583)) ([9aff29d](https://github.com/vuejs/vue-cli/commit/9aff29d))

## cli-plugin-typescript

#### Features

* loosen the restriction of typescript version ([#3542](https://github.com/vuejs/vue-cli/issues/3542)) ([873ad84](https://github.com/vuejs/vue-cli/commit/873ad84))

## cli-plugin-unit-jest

#### Bug Fixes

* lock `[@vue](https://github.com/vue)/test-utils` version as it's still in beta and may introduce breaking changes ([266090d](https://github.com/vuejs/vue-cli/commit/266090d))

## cli-service

#### Bug Fixes

* fix modern mode in monorepo by resolving in the package scope ([14b2c6e](https://github.com/vuejs/vue-cli/commit/14b2c6e)), closes [/github.com/vuejs/vue-cli/pull/3477#issuecomment-466926461](https://github.com//github.com/vuejs/vue-cli/pull/3477/issues/issuecomment-466926461)
* **cli-service:** inspect --rules (close [#3334](https://github.com/vuejs/vue-cli/issues/3334)) ([#3378](https://github.com/vuejs/vue-cli/issues/3378)) ([6f93bfe](https://github.com/vuejs/vue-cli/commit/6f93bfe))
* proxy should warn when array is passed. ([#3525](https://github.com/vuejs/vue-cli/issues/3525)) ([bb4f349](https://github.com/vuejs/vue-cli/commit/bb4f349)), closes [#3524](https://github.com/vuejs/vue-cli/issues/3524)
#### Features

* allow vue.config.js to return a function ([#3499](https://github.com/vuejs/vue-cli/issues/3499)) ([f5b174f](https://github.com/vuejs/vue-cli/commit/f5b174f)), closes [#3213](https://github.com/vuejs/vue-cli/issues/3213)
* support environment variable expansion ([#3534](https://github.com/vuejs/vue-cli/issues/3534)) ([bd57f15](https://github.com/vuejs/vue-cli/commit/bd57f15))

## cli-service-global

#### Features

* warn if run instant prototyping in a project directory ([#3508](https://github.com/vuejs/vue-cli/issues/3508)) ([2de215e](https://github.com/vuejs/vue-cli/commit/2de215e)), closes [#2473](https://github.com/vuejs/vue-cli/issues/2473)

## docs

#### Bug Fixes

* **cli-service:** catch exception if "copy to clipboard" fails (issue [#3476](https://github.com/vuejs/vue-cli/issues/3476)) ([#3503](https://github.com/vuejs/vue-cli/issues/3503)) ([fec38f5](https://github.com/vuejs/vue-cli/commit/fec38f5))



# [3.4.1](https://github.com/vuejs/vue-cli/compare/v3.4.0...v3.4.1) (2019-02-20)

## cli-plugin-babel
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ module.exports = {
head: [
['link', { rel: 'icon', href: '/favicon.png' }],
],
theme: 'vue',
theme: '@vuepress/theme-vue',
themeConfig: {
repo: 'vuejs/vue-cli',
docsDir: 'docs',
File renamed without changes.
8 changes: 8 additions & 0 deletions docs/config/README.md
Original file line number Diff line number Diff line change
@@ -188,6 +188,14 @@ Deprecated since Vue CLI 3.3, please use [`publicPath`](#publicPath) instead.

By default `babel-loader` ignores all files inside `node_modules`. If you want to explicitly transpile a dependency with Babel, you can list it in this option.

::: warning Jest config
This option is not respected by the [cli-unit-jest plugin](#jest), because in jest, we don't have to transpile code from `/node_modules` unless it uses non-standard features - Node >8.11 supports the latest ECMAScript features already.

However, jest sometimes has to transform content from node_modules if that code uses ES6 `import`/`export` syntax. In that case, use the `tranformIgnorePatterns` option in `jest.config.js`.

See [the plugin's README](https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-unit-jest/README.md) for more information.
:::

### productionSourceMap

- Type: `boolean`
89 changes: 89 additions & 0 deletions docs/guide/deployment.md
Original file line number Diff line number Diff line change
@@ -319,3 +319,92 @@ Verify your project is successfully published by Surge by visiting `myawesomepro
cd -
```
### Docker (Nginx)
Deploy your application using nginx inside of a docker container.
1. Install [docker](https://www.docker.com/get-started)
2. Create a `Dockerfile` file in the root of your project.
```Dockerfile
FROM node:10
COPY ./ /app
WORKDIR /app
RUN npm install && npm run build
FROM nginx
RUN mkdir /app
COPY --from=0 /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
```
3. Create a `.dockerignore` file in the root of your project
Setting up the `.dockerignore` file prevents `node_modules` and any intermediate build artifacts from being copied to the image which can cause issues during building.
```gitignore
**/node_modules
**/dist
```
4. Create a `nginx.conf` file in the root of your project
`Nginx` is an HTTP(s) server that will run in your docker container. It uses a configuration file to determine how to serve content/which ports to listen on/etc. See the [nginx configuration documentation](https://www.nginx.com/resources/wiki/start/topics/examples/full/) for an example of all of the possible configuration options.
The following is a simple `nginx` configuration that serves your vue project on port `80`. The root `index.html` is served for `page not found` / `404` errors which allows us to use `pushState()` based routing.
```text
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root /app;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}
```
5. Build your docker image
```bash
docker build . -t my-app
# Sending build context to Docker daemon 884.7kB
# ...
# Successfully built 4b00e5ee82ae
# Successfully tagged my-app:latest
```
6. Run your docker image
This build is based on the official `nginx` image so log redirection has already been set up and self daemonizing has been turned off. Some other default settings have been setup to improve running nginx in a docker container. See the [nginx docker repo](https://hub.docker.com/_/nginx) for more info.
```bash
docker run -d -p 8080:80 my-app
curl localhost:8080
# <!DOCTYPE html><html lang=en>...</html>
```
2 changes: 1 addition & 1 deletion docs/guide/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -30,4 +30,4 @@ module.exports = {
```

::: warning
Disabling `resovle.symlinks` may break hot module reloading if your dependencies are installed by third-party npm clients that utilized symbolic links, such as`cnpm` or `pnpm`.
Disabling `resolve.symlinks` may break hot module reloading if your dependencies are installed by third-party npm clients that utilized symbolic links, such as`cnpm` or `pnpm`.
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.0",
"version": "3.5.1",
"packages": [
"packages/@vue/babel-preset-app",
"packages/@vue/cli*"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@
},
"devDependencies": {
"@vue/conventional-changelog": "^0.1.1",
"@vuepress/theme-vue": "1.0.0-alpha.44",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"conventional-changelog": "^3.0.6",
@@ -68,7 +69,7 @@
"rimraf": "^2.6.2",
"semver": "^5.5.0",
"typescript": "^3.3.3333",
"vuepress": "^0.14.9",
"vuepress": "1.0.0-alpha.44",
"vuepress-theme-vue": "^1.1.0",
"webpack": ">=4 < 4.29",
"yorkie": "^2.0.0"
4 changes: 1 addition & 3 deletions packages/@vue/babel-preset-app/README.md
Original file line number Diff line number Diff line change
@@ -29,9 +29,7 @@ If you need additional stage 3 or below features, you need to install and config
### Vue JSX support

- [@babel/plugin-syntax-jsx](https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-jsx)
- [babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)
- ~~[babel-plugin-jsx-event-modifiers](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers)~~ (temporarily disabled until fixed for Babel 7)
- ~~[babel-plugin-jsx-v-model](https://github.com/nickmessing/babel-plugin-jsx-v-model)~~ (temporarily disabled until fixed for Babel 7)
- [@vue/babel-preset-jsx](https://github.com/vuejs/jsx)

### [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime)

2 changes: 1 addition & 1 deletion packages/@vue/babel-preset-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/babel-preset-app",
"version": "3.5.0",
"version": "3.5.1",
"description": "babel-preset-app for vue-cli",
"main": "index.js",
"publishConfig": {
2 changes: 1 addition & 1 deletion packages/@vue/cli-init/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-init",
"version": "3.5.0",
"version": "3.5.1",
"description": "init addon for vue-cli",
"main": "index.js",
"publishConfig": {
2 changes: 1 addition & 1 deletion packages/@vue/cli-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-overlay",
"version": "3.5.0",
"version": "3.5.1",
"description": "error overlay & dev server middleware for vue-cli",
"main": "dist/client.js",
"files": [
6 changes: 3 additions & 3 deletions packages/@vue/cli-plugin-babel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-babel",
"version": "3.5.0",
"version": "3.5.1",
"description": "babel plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -21,8 +21,8 @@
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/cli-plugin-babel#readme",
"dependencies": {
"@babel/core": "^7.0.0",
"@vue/babel-preset-app": "^3.5.0",
"@vue/cli-shared-utils": "^3.5.0",
"@vue/babel-preset-app": "^3.5.1",
"@vue/cli-shared-utils": "^3.5.1",
"babel-loader": "^8.0.5",
"webpack": ">=4 < 4.29"
},
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-e2e-cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-e2e-cypress",
"version": "3.5.0",
"version": "3.5.1",
"description": "e2e-cypress plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^3.5.0",
"@vue/cli-shared-utils": "^3.5.1",
"cypress": "^3.1.5",
"eslint-plugin-cypress": "^2.2.1"
}
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-e2e-nightwatch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-e2e-nightwatch",
"version": "3.5.0",
"version": "3.5.1",
"description": "e2e-nightwatch plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^3.5.0",
"@vue/cli-shared-utils": "^3.5.1",
"chromedriver": "^2.46.0",
"deepmerge": "^3.2.0",
"execa": "^1.0.0",
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-eslint",
"version": "3.5.0",
"version": "3.5.1",
"description": "eslint plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^3.5.0",
"@vue/cli-shared-utils": "^3.5.1",
"babel-eslint": "^10.0.1",
"eslint-loader": "^2.1.2",
"globby": "^9.0.0",
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-pwa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-pwa",
"version": "3.5.0",
"version": "3.5.1",
"description": "pwa plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^3.5.0",
"@vue/cli-shared-utils": "^3.5.1",
"webpack": ">=4 < 4.29",
"workbox-webpack-plugin": "^3.6.3"
},
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/cli-plugin-typescript",
"version": "3.5.0",
"version": "3.5.1",
"description": "typescript plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -24,7 +24,7 @@
},
"dependencies": {
"@types/webpack-env": "^1.13.6",
"@vue/cli-shared-utils": "^3.5.0",
"@vue/cli-shared-utils": "^3.5.1",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"globby": "^9.0.0",
"ts-loader": "^5.3.3",
Loading