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.5
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.6.0
Choose a head ref

Commits on Mar 27, 2019

  1. Copy the full SHA
    1d14d4d View commit details

Commits on Apr 1, 2019

  1. Copy the full SHA
    30f2aad View commit details
  2. Copy the full SHA
    75bc181 View commit details
  3. Copy the full SHA
    aa3f53c View commit details
  4. Copy the full SHA
    d27dd24 View commit details
  5. Copy the full SHA
    9e317d2 View commit details
  6. feat: make fibers opt-in for dart sass (#3628)

    fixes #3429
    fixes #3570
    fixes #3624
    haoqunjiang authored Apr 1, 2019
    Copy the full SHA
    09964a0 View commit details
  7. Copy the full SHA
    a6d3166 View commit details
  8. Copy the full SHA
    78fdc07 View commit details

Commits on Apr 5, 2019

  1. feat(project create): bare option

    Guillaume Chau committed Apr 5, 2019
    Copy the full SHA
    c81e6c2 View commit details
  2. Copy the full SHA
    8c3ff11 View commit details

Commits on Apr 6, 2019

  1. fix(style): font-weight lighter => 300

    Guillaume Chau committed Apr 6, 2019
    Copy the full SHA
    6fe42e9 View commit details
  2. chore: update @vue/ui to 0.8.2

    Guillaume Chau committed Apr 6, 2019
    Copy the full SHA
    f42de72 View commit details

Commits on Apr 7, 2019

  1. fix: be more specific on date-fns locale paths

    somehow webpack resolves the main file to index.d.ts, causing build
    errors.
    haoqunjiang committed Apr 7, 2019
    Copy the full SHA
    14e54dc View commit details
  2. 1
    Copy the full SHA
    3e16924 View commit details

Commits on Apr 8, 2019

  1. Copy the full SHA
    2e20b7a View commit details
  2. Copy the full SHA
    a88203d View commit details
  3. feat: support PNPM as a package manager (#1531)

    Enables vue-cli to use PNPM (https://pnpm.js.org/) as package manager
    robertkruis authored and haoqunjiang committed Apr 8, 2019
    Copy the full SHA
    a02ef39 View commit details
  4. chore: more accurate vim swap file ignore (#3707)

    Currently this ignores more than the possible 3 character vim swap file extensions. This change will only ignore 3 letter vim swap files starting with `.sw` (most common)
    Newbrict authored and haoqunjiang committed Apr 8, 2019
    Copy the full SHA
    a575def View commit details
  5. Copy the full SHA
    cb11397 View commit details
  6. chore(eslint): remove 'name' from globals

    Guillaume Chau committed Apr 8, 2019
    Copy the full SHA
    1763170 View commit details
  7. chore(scripts): add apollo:debug command

    Guillaume Chau committed Apr 8, 2019
    Copy the full SHA
    5dfcc7e View commit details
  8. Copy the full SHA
    3479f21 View commit details
  9. Copy the full SHA
    dac7a4b View commit details
  10. fix(widget): make resize handles more visible

    Guillaume Chau committed Apr 8, 2019
    Copy the full SHA
    fd9cb16 View commit details
  11. feat(plugin add): feature icons

    Guillaume Chau committed Apr 8, 2019
    Copy the full SHA
    08de713 View commit details
  12. fix: set cache-control header on static files

    Guillaume Chau committed Apr 8, 2019
    Copy the full SHA
    c4bd1ab View commit details

Commits on Apr 9, 2019

  1. feat: vulnerability audit widget

    Guillaume Chau committed Apr 9, 2019
    Copy the full SHA
    fbfbd29 View commit details
  2. Copy the full SHA
    44fb60f View commit details
  3. Copy the full SHA
    03c9e70 View commit details
  4. Copy the full SHA
    b170e15 View commit details
  5. feat: add makeJSOnlyValue to generator API (#3568)

    Provides convenience method for passing JS into config files.
    Closes issue #3535.
    steveworkman authored and haoqunjiang committed Apr 9, 2019
    Copy the full SHA
    f69339e View commit details
  6. Copy the full SHA
    ff62895 View commit details
  7. chore: Update apollo packages (#3779)

    * chore: update apollo packages
    
    * fix: better project switching logic
    
    * fix(SharedData): wait for current project id
    
    * refactor(apollo): use 2.5 client-size state API
    Akryum authored Apr 9, 2019
    Copy the full SHA
    dcecb94 View commit details
  8. fix(audit): handle errors

    Guillaume Chau committed Apr 9, 2019
    Copy the full SHA
    2b4d74b View commit details

Commits on Apr 10, 2019

  1. chore(eslint): use babel-eslint

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    39fca0f View commit details
  2. feat(api): save sahred data to disk

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    40d9346 View commit details
  3. chore: update to @vue/ui 0.9.0

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    174c7d1 View commit details
  4. perf(webpack dashboard): cleaning the analyzer data

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    4f0286c View commit details
  5. perf(task details): better defering

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    ecd64c4 View commit details
  6. fix(tasks): sort

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    13199f5 View commit details
  7. feat(tasks): refresh button

    Guillaume Chau committed Apr 10, 2019
    Copy the full SHA
    ca2bdad View commit details

Commits on Apr 11, 2019

  1. Copy the full SHA
    d853d52 View commit details
  2. Copy the full SHA
    f1807fd View commit details
  3. Copy the full SHA
    d9929ef View commit details
  4. chore: update deps

    haoqunjiang committed Apr 11, 2019
    1
    Copy the full SHA
    cc66247 View commit details
  5. fix: better pnpm check

    1. separate project pnpm check and global pnpm check
    2. rename hasPnpm to hasPnpm3OrLater
    haoqunjiang committed Apr 11, 2019
    Copy the full SHA
    94f3ca0 View commit details
  6. Copy the full SHA
    6740ca3 View commit details
  7. Copy the full SHA
    095067e View commit details
  8. Copy the full SHA
    a1aef86 View commit details
Showing with 2,974 additions and 1,723 deletions.
  1. +3 −0 .eslintrc.js
  2. +1 −0 .gitignore
  3. +57 −0 CHANGELOG.md
  4. +5 −3 docs/config/README.md
  5. +8 −0 docs/dev-guide/generator-api.md
  6. +0 −4 docs/guide/build-targets.md
  7. +9 −1 docs/guide/css.md
  8. +15 −2 lerna.json
  9. +12 −13 package.json
  10. +1 −1 packages/@vue/babel-preset-app/README.md
  11. +2 −2 packages/@vue/babel-preset-app/package.json
  12. +1 −1 packages/@vue/cli-init/package.json
  13. +1 −1 packages/@vue/cli-overlay/package.json
  14. +3 −3 packages/@vue/cli-plugin-babel/package.json
  15. +3 −3 packages/@vue/cli-plugin-e2e-cypress/package.json
  16. +2 −2 packages/@vue/cli-plugin-e2e-nightwatch/package.json
  17. +2 −2 packages/@vue/cli-plugin-eslint/generator/index.js
  18. +31 −17 packages/@vue/cli-plugin-eslint/index.js
  19. +3 −3 packages/@vue/cli-plugin-eslint/package.json
  20. +2 −2 packages/@vue/cli-plugin-pwa/package.json
  21. +4 −4 packages/@vue/cli-plugin-typescript/generator/index.js
  22. +8 −8 packages/@vue/cli-plugin-typescript/package.json
  23. +23 −16 packages/@vue/cli-plugin-unit-jest/generator/index.js
  24. +4 −3 packages/@vue/cli-plugin-unit-jest/package.json
  25. +2 −2 packages/@vue/cli-plugin-unit-mocha/package.json
  26. +7 −7 packages/@vue/cli-service-global/package.json
  27. +1 −2 packages/@vue/cli-service/__tests__/Service.spec.js
  28. +42 −0 packages/@vue/cli-service/__tests__/buildLib.spec.js
  29. +0 −1 packages/@vue/cli-service/__tests__/generator.spec.js
  30. +1 −1 packages/@vue/cli-service/__tests__/multiPage.spec.js
  31. +2 −3 packages/@vue/cli-service/generator/index.js
  32. +1 −1 packages/@vue/cli-service/generator/router/index.js
  33. +1 −1 packages/@vue/cli-service/generator/template/_gitignore
  34. BIN packages/@vue/cli-service/generator/template/public/favicon.ico
  35. +1 −2 packages/@vue/cli-service/lib/PluginAPI.js
  36. +2 −2 packages/@vue/cli-service/lib/commands/build/demo-lib-js.html
  37. +2 −2 packages/@vue/cli-service/lib/commands/build/demo-lib.html
  38. +1 −0 packages/@vue/cli-service/lib/commands/build/index.js
  39. +15 −4 packages/@vue/cli-service/lib/commands/build/resolveLibConfig.js
  40. +4 −0 packages/@vue/cli-service/lib/commands/build/setPublicPath.js
  41. +2 −1 packages/@vue/cli-service/lib/commands/serve.js
  42. +2 −1 packages/@vue/cli-service/lib/config/app.js
  43. +15 −4 packages/@vue/cli-service/lib/config/base.js
  44. +12 −5 packages/@vue/cli-service/lib/options.js
  45. +1 −1 packages/@vue/cli-service/lib/util/getAssetPath.js
  46. +24 −22 packages/@vue/cli-service/package.json
  47. +46 −0 packages/@vue/cli-shared-utils/lib/env.js
  48. +3 −3 packages/@vue/cli-shared-utils/package.json
  49. +2 −2 packages/@vue/cli-test-utils/package.json
  50. +2 −1 packages/@vue/cli-ui-addon-webpack/.eslintrc.js
  51. +5 −5 packages/@vue/cli-ui-addon-webpack/package.json
  52. +2 −2 packages/@vue/cli-ui-addon-webpack/src/components/WebpackDashboard.vue
  53. +2 −1 packages/@vue/cli-ui-addon-widgets/.eslintrc.js
  54. +5 −5 packages/@vue/cli-ui-addon-widgets/package.json
  55. +14 −2 packages/@vue/cli-ui-addon-widgets/src/components/StatusWidget.vue
  56. +44 −7 packages/@vue/cli-ui-addon-widgets/src/components/Vulnerability.vue
  57. +85 −9 packages/@vue/cli-ui-addon-widgets/src/components/VulnerabilityDetails.vue
  58. +122 −56 packages/@vue/cli-ui-addon-widgets/src/components/VulnerabilityItem.vue
  59. +1 −1 packages/@vue/cli-ui-addon-widgets/src/components/Welcome.vue
  60. +6 −1 packages/@vue/cli-ui/.eslintrc.js
  61. +85 −8 packages/@vue/cli-ui/apollo-server/api/PluginApi.js
  62. +17 −0 packages/@vue/cli-ui/apollo-server/connectors/logs.js
  63. +28 −3 packages/@vue/cli-ui/apollo-server/connectors/plugins.js
  64. +47 −33 packages/@vue/cli-ui/apollo-server/connectors/projects.js
  65. +59 −9 packages/@vue/cli-ui/apollo-server/connectors/shared-data.js
  66. +10 −1 packages/@vue/cli-ui/apollo-server/connectors/tasks.js
  67. +1 −0 packages/@vue/cli-ui/apollo-server/schema/project.js
  68. +13 −3 packages/@vue/cli-ui/apollo-server/server.js
  69. +1 −0 packages/@vue/cli-ui/apollo-server/type-defs.js
  70. +5 −3 packages/@vue/cli-ui/apollo-server/util/command.js
  71. +2 −20 packages/@vue/cli-ui/apollo-server/util/db.js
  72. +23 −0 packages/@vue/cli-ui/apollo-server/util/rcFolder.js
  73. +24 −8 packages/@vue/cli-ui/locales/en.json
  74. +28 −25 packages/@vue/cli-ui/package.json
  75. +1 −1 packages/@vue/cli-ui/src/components/app/AppLoading.vue
  76. +5 −3 packages/@vue/cli-ui/src/components/app/ProgressScreen.vue
  77. +1 −9 packages/@vue/cli-ui/src/components/app/ProjectQuickDropdown.vue
  78. +1 −1 packages/@vue/cli-ui/src/components/app/TopBar.vue
  79. +1 −1 packages/@vue/cli-ui/src/components/content/StepWizard.vue
  80. +29 −0 packages/@vue/cli-ui/src/components/content/TerminalView.vue
  81. +1 −1 packages/@vue/cli-ui/src/components/dashboard/Widget.vue
  82. +2 −2 packages/@vue/cli-ui/src/components/dependency/NpmPackageSearch.vue
  83. +48 −6 packages/@vue/cli-ui/src/components/dependency/PackageSearchItem.vue
  84. +1 −0 packages/@vue/cli-ui/src/components/file-diff/FileDiffView.vue
  85. +1 −1 packages/@vue/cli-ui/src/components/plugin/ProjectPluginsAdd.vue
  86. +13 −0 packages/@vue/cli-ui/src/components/project-create/ProjectCreate.vue
  87. +7 −7 packages/@vue/cli-ui/src/components/project-manager/ProjectSelectListItem.vue
  88. +1 −1 packages/@vue/cli-ui/src/components/prompt/PromptCheckbox.vue
  89. +1 −1 packages/@vue/cli-ui/src/components/prompt/PromptColor.vue
  90. +1 −1 packages/@vue/cli-ui/src/components/prompt/PromptConfirm.vue
  91. +1 −1 packages/@vue/cli-ui/src/components/prompt/PromptInput.vue
  92. +1 −1 packages/@vue/cli-ui/src/components/prompt/PromptList.vue
  93. +1 −1 packages/@vue/cli-ui/src/components/prompt/PromptsList.vue
  94. +12 −6 packages/@vue/cli-ui/src/components/task/ProjectTaskDetails.vue
  95. +17 −0 packages/@vue/cli-ui/src/components/task/ProjectTasks.vue
  96. +1 −1 packages/@vue/cli-ui/src/i18n.js
  97. +6 −1 packages/@vue/cli-ui/src/mixins/{DisplayPriority.js → Defer.js}
  98. +4 −0 packages/@vue/cli-ui/src/plugins.js
  99. +2 −2 packages/@vue/cli-ui/src/state/defaults.js
  100. +17 −0 packages/@vue/cli-ui/src/state/typeDefs.js
  101. +1 −4 packages/@vue/cli-ui/src/style/main.styl
  102. +28 −16 packages/@vue/cli-ui/src/util/shared-data.js
  103. +22 −3 packages/@vue/cli-ui/src/vue-apollo.js
  104. +7 −3 packages/@vue/cli-ui/ui-defaults/tasks.js
  105. +138 −0 packages/@vue/cli-ui/ui-defaults/utils/audit.js
  106. +2 −0 packages/@vue/cli-ui/ui-defaults/utils/modules.js
  107. +8 −2 packages/@vue/cli-ui/ui-defaults/utils/stats.js
  108. +25 −42 packages/@vue/cli-ui/ui-defaults/widgets.js
  109. +1 −1 packages/@vue/cli-upgrade/package.json
  110. +1 −1 packages/@vue/cli/__tests__/Creator.spec.js
  111. +20 −0 packages/@vue/cli/__tests__/Generator.spec.js
  112. +1 −0 packages/@vue/cli/bin/vue.js
  113. +43 −19 packages/@vue/cli/lib/Creator.js
  114. +10 −0 packages/@vue/cli/lib/GeneratorAPI.js
  115. +2 −1 packages/@vue/cli/lib/add.js
  116. +10 −3 packages/@vue/cli/lib/invoke.js
  117. +1 −1 packages/@vue/cli/lib/options.js
  118. +26 −0 packages/@vue/cli/lib/util/__tests__/extendJSConfig.spec.js
  119. +9 −1 packages/@vue/cli/lib/util/extendJSConfig.js
  120. +9 −5 packages/@vue/cli/lib/util/installDeps.js
  121. +7 −2 packages/@vue/cli/lib/util/loadCommand.js
  122. +2 −1 packages/@vue/cli/lib/util/registries.js
  123. +11 −11 packages/@vue/cli/package.json
  124. +1 −1 packages/@vue/eslint-config-prettier/package.json
  125. +1 −1 packages/@vue/eslint-config-standard/package.json
  126. +2 −2 packages/@vue/eslint-config-typescript/package.json
  127. +21 −21 packages/vue-cli-version-marker/package.json
  128. +11 −29 scripts/genChangelog.js
  129. +41 −0 scripts/markVersions.js
  130. +0 −31 scripts/release.js
  131. +1,317 −1,113 yarn.lock
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,9 @@ module.exports = {
env: {
"jest": true
},
globals: {
name: 'off'
},
rules: {
"indent": ["error", 2, {
"MemberExpression": "off"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -8,3 +8,4 @@ temp
.vuerc
.version
.versions
.changelog
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@

## Unreleased (2019-04-13)

#### :rocket: New Feature
* `@vue/cli-ui`
* [#3688](https://github.com/vuejs/vue-cli/pull/3688) feat(ui): add copyContent to clipboard button on terminal component ([@pikax](https://github.com/pikax))
* `@vue/cli-service`
* [#3703](https://github.com/vuejs/vue-cli/pull/3703) feat(cli-service): add --filename option to specify the output file name ([@NickeyLin](https://github.com/NickeyLin))
* [#3760](https://github.com/vuejs/vue-cli/pull/3760) feat: bundle currentScript polyfill by default if library needs IE support ([@sodatea](https://github.com/sodatea))
* [#3595](https://github.com/vuejs/vue-cli/pull/3595) feat: support multi-main entry in pages config ([@sodatea](https://github.com/sodatea))
* [#3663](https://github.com/vuejs/vue-cli/pull/3663) feat: support pug as html template ([@sodatea](https://github.com/sodatea))
* `@vue/cli`
* [#3568](https://github.com/vuejs/vue-cli/pull/3568) feat(cli): Added makeJSOnlyValue to generator API. Provides convenien… ([@steveworkman](https://github.com/steveworkman))
* [#3643](https://github.com/vuejs/vue-cli/pull/3643) feat: do not write undefined fields to config files ([@sodatea](https://github.com/sodatea))
* `@vue/cli-service`, `@vue/cli-shared-utils`, `@vue/cli-ui`, `@vue/cli`
* [#1531](https://github.com/vuejs/vue-cli/pull/1531) feat: support PNPM as a package manager ([@robertkruis](https://github.com/robertkruis))
* `@vue/cli-plugin-eslint`, `@vue/cli-service`
* [#3572](https://github.com/vuejs/vue-cli/pull/3572) Add 3rd option to `lintOnSave` to support 'default' behaviour (Closes [#3552](https://github.com/vuejs/vue-cli/issues/3552)) ([@LinusBorg](https://github.com/LinusBorg))
* `@vue/cli-plugin-unit-jest`
* [#3589](https://github.com/vuejs/vue-cli/pull/3589) feat: add jest typeahead plugin ([@sodatea](https://github.com/sodatea))

#### :bug: Bug Fix
* `@vue/cli-service`, `@vue/cli-shared-utils`, `@vue/cli-ui`, `@vue/cli`
* [#3790](https://github.com/vuejs/vue-cli/pull/3790) fix pnpm compatibility issues during scaffolding ([@sodatea](https://github.com/sodatea))

#### :house: Internal
* `@vue/cli-service`
* [#2405](https://github.com/vuejs/vue-cli/pull/2405) refactor: remove unused `placeAtRootIfRelative` parameter ([@dailyvuejs](https://github.com/dailyvuejs))
* [#3707](https://github.com/vuejs/vue-cli/pull/3707) chore: more accurate vim swap file ignore ([@Newbrict](https://github.com/Newbrict))
* [#3709](https://github.com/vuejs/vue-cli/pull/3709) chore: use high resolution version of favicon.ico ([@phanan](https://github.com/phanan))
* [#3628](https://github.com/vuejs/vue-cli/pull/3628) feat: make `fibers` opt-in for dart sass ([@sodatea](https://github.com/sodatea))
* Other
* [#3650](https://github.com/vuejs/vue-cli/pull/3650) workflow: use lerna-changelog ([@sodatea](https://github.com/sodatea))

#### Committers: 10
- Carlos Rodrigues ([@pikax](https://github.com/pikax))
- Dimitar Dimitrov ([@Newbrict](https://github.com/Newbrict))
- Guillaume Chau ([@Akryum](https://github.com/Akryum))
- Haoqun Jiang ([@sodatea](https://github.com/sodatea))
- Nick ([@NickeyLin](https://github.com/NickeyLin))
- Phan An ([@phanan](https://github.com/phanan))
- Steve Workman ([@steveworkman](https://github.com/steveworkman))
- Thorsten Lünborg ([@LinusBorg](https://github.com/LinusBorg))
- [@dailyvuejs](https://github.com/dailyvuejs)
- [@robertkruis](https://github.com/robertkruis)


# [3.5.5](https://github.com/vuejs/vue-cli/compare/v3.5.4...v3.5.5) (2019-04-01)

## babel-preset-app

#### Reverts

* "fix: should not add polyfills from transform-runtime plugin ([#3730](https://github.com/vuejs/vue-cli/issues/3730))" ([#3742](https://github.com/vuejs/vue-cli/issues/3742)) ([7228146](https://github.com/vuejs/vue-cli/commit/7228146)), closes [#3741](https://github.com/vuejs/vue-cli/issues/3741)



# [3.5.4](https://github.com/vuejs/vue-cli/compare/v3.5.3...v3.5.4) (2019-03-31)

## babel-preset-app
8 changes: 5 additions & 3 deletions docs/config/README.md
Original file line number Diff line number Diff line change
@@ -140,14 +140,16 @@ Deprecated since Vue CLI 3.3, please use [`publicPath`](#publicPath) instead.

### lintOnSave

- Type: `boolean | 'error'`
- Type: `boolean | 'warning' | 'default' | 'error'`
- Default: `true`

Whether to perform lint-on-save during development using [eslint-loader](https://github.com/webpack-contrib/eslint-loader). This value is respected only when [`@vue/cli-plugin-eslint`](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint) is installed.

When set to `true`, `eslint-loader` will emit lint errors as warnings. By default, warnings are only logged to the terminal and does not fail the compilation.
When set to `true` or `'warning'`, `eslint-loader` will emit lint errors as warnings. By default, warnings are only logged to the terminal and does not fail the compilation, so this is a good default for development.

To make lint errors show up in the browser overlay, you can use `lintOnSave: 'error'`. This will force `eslint-loader` to always emit errors. this also means lint errors will now cause the compilation to fail.
To make lint errors show up in the browser overlay, you can use `lintOnSave: 'default'`. This will force `eslint-loader` to actually emit errors. this also means lint errors will now cause the compilation to fail.

Setting it to `'errors'` will force eslint-loader to emit warnings as errors as well, which means warnings will also show up in the overlay.

Alternatively, you can configure the overlay to display both warnings and errors:

8 changes: 8 additions & 0 deletions docs/dev-guide/generator-api.md
Original file line number Diff line number Diff line change
@@ -97,6 +97,14 @@ Add a message to be printed when the generator exits (after any other standard m
- **Usage**:
Convenience method for generating a JS config file from JSON

## makeJSOnlyValue

- **Arguments**
- `{any} str` - JS expression as a string

- **Usage**:
Turns a string expression into executable JS for .js config files

## injectImports

- **Arguments**
4 changes: 0 additions & 4 deletions docs/guide/build-targets.md
Original file line number Diff line number Diff line change
@@ -13,10 +13,6 @@ App is the default build target. In this mode:

## Library

::: tip Note on IE Compatibility
In lib mode, the public path is [dynamically determined](https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/cli-service/lib/commands/build/setPublicPath.js) based on the URL from which the main js file is loaded (to enable dynamic assets loading). However, this feature requires `document.currentScript` support, which is missing in IE. So it's recommended to include the [current-script-polyfill](https://www.npmjs.com/package/current-script-polyfill) in the final web page before the library is imported, if IE support is a requirement.
:::

::: tip Note on Vue Dependency
In lib mode, Vue is *externalized*. This means the bundle will not bundle Vue even if your code imports Vue. If the lib is used via a bundler, it will attempt to load Vue as a dependency through the bundler; otherwise, it falls back to a global `Vue` variable.
:::
10 changes: 9 additions & 1 deletion docs/guide/css.md
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ You can select pre-processors (Sass/Less/Stylus) when creating the project. If y

``` bash
# Sass
npm install -D sass-loader node-sass
npm install -D sass-loader sass

# Less
npm install -D less-loader less
@@ -29,6 +29,14 @@ $color: red;
</style>
```

::: tip A Tip on Sass Performance
Note that when using Dart Sass, **synchronous compilation is twice as fast as asynchronous compilation** by default, due to the overhead of asynchronous callbacks. To avoid this overhead, you can use the [fibers](https://www.npmjs.com/package/fibers) package to call asynchronous importers from the synchronous code path. To enable this, simply install `fibers` as a project dependency:
```
npm install -D fibers
```
Please also be aware, as it's a native module, there may be compatibility issues vary on the OS and build environment. In that case, please run `npm uninstall -D fibers` to fix the problem.
:::

### Automatic imports

If you want to automatically import files (for colors, variables, mixins...), you can use the [style-resources-loader](https://github.com/yenshih/style-resources-loader). Here is an example for stylus that imports `./src/styles/imports.styl` in every SFC and every stylus files:
17 changes: 15 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
{
"npmClient": "yarn",
"useWorkspaces": false,
"version": "3.5.5",
"version": "3.6.0",
"packages": [
"packages/@vue/babel-preset-app",
"packages/@vue/cli*"
]
],
"changelog": {
"repo": "vuejs/vue-cli",
"labels": {
"PR: New Feature": ":rocket: New Feature",
"PR: Breaking Change": ":boom: Breaking Change",
"PR: Bug Fix": ":bug: Bug Fix",
"PR: Documentation": ":memo: Documentation",
"PR: Internal": ":house: Internal",
"PR: Underlying Tools": ":hammer: Underlying Tools"
},
"cacheDir": ".changelog",
"nextVersionFromMetadata": true
}
}
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"sync": "node scripts/syncDeps.js",
"boot": "node scripts/bootstrap.js",
"release": "yarn --pure-lockfile && yarn clean && node scripts/release.js",
"changelog": "node scripts/genChangelog.js run",
"version": "node scripts/markVersions.js && node scripts/genChangelog.js && git add packages/vue-cli-version-marker CHANGELOG.md",
"docs": "vuepress dev docs",
"docs:build": "vuepress build docs",
"patch-chromedriver": "node scripts/patchChromedriver.js"
@@ -43,33 +43,32 @@
]
},
"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",
"conventional-changelog": "^3.0.6",
"debug": "^4.1.0",
"eslint": "^5.14.1",
"eslint": "^5.16.0",
"eslint-plugin-graphql": "^3.0.3",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-vue": "^5.2.2",
"eslint-plugin-vue-libs": "^3.0.0",
"execa": "^1.0.0",
"globby": "^9.0.0",
"graphql": "^14.0.2",
"globby": "^9.2.0",
"graphql": "^14.2.1",
"http-server": "^0.11.1",
"inquirer": "^6.0.0",
"jest": "^23.1.0",
"lerna": "^3.13.0",
"lint-staged": "^8.1.4",
"lerna": "^3.13.2",
"lerna-changelog": "^0.8.2",
"lint-staged": "^8.1.5",
"memfs": "^2.15.2",
"minimist": "^1.2.0",
"request": "^2.83.0",
"request-promise-native": "^1.0.7",
"rimraf": "^2.6.2",
"semver": "^5.5.0",
"typescript": "^3.3.3333",
"semver": "^6.0.0",
"typescript": "^3.4.3",
"vuepress": "1.0.0-alpha.44",
"vuepress-theme-vue": "^1.1.0",
"webpack": ">=4 < 4.29",
@@ -78,8 +77,8 @@
"resolutions": {
"babel-core": "7.0.0-bridge.0",
"puppeteer": "1.11.0",
"vue": "^2.6.7",
"vue-template-compiler": "^2.6.7",
"vue-server-renderer": "^2.6.7"
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10",
"vue-server-renderer": "^2.6.10"
}
}
2 changes: 1 addition & 1 deletion packages/@vue/babel-preset-app/README.md
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ Use this option when you have 3rd party dependencies that are not processed by B

- Default: `true`.

Set to `false` to disable JSX support.
Set to `false` to disable JSX support. Or you can toggle [@vue/babel-preset-jsx](https://github.com/vuejs/jsx/tree/dev/packages/babel-preset-jsx) features here.

### loose

4 changes: 2 additions & 2 deletions 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.5",
"version": "3.6.0",
"description": "babel-preset-app for vue-cli",
"main": "index.js",
"publishConfig": {
@@ -31,7 +31,7 @@
"@babel/preset-env": "^7.0.0 < 7.4.0",
"@babel/runtime": "^7.0.0",
"@babel/runtime-corejs2": "^7.2.0",
"@vue/babel-preset-jsx": "^1.0.0-beta.2",
"@vue/babel-preset-jsx": "^1.0.0-beta.3",
"babel-plugin-dynamic-import-node": "^2.2.0",
"core-js": "^2.6.5"
},
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.1",
"version": "3.6.0",
"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.1",
"version": "3.6.0",
"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.5",
"version": "3.6.0",
"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.5",
"@vue/cli-shared-utils": "^3.5.1",
"@vue/babel-preset-app": "^3.6.0",
"@vue/cli-shared-utils": "^3.6.0",
"babel-loader": "^8.0.5",
"webpack": ">=4 < 4.29"
},
6 changes: 3 additions & 3 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.1",
"version": "3.6.0",
"description": "e2e-cypress plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,8 +23,8 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^3.5.1",
"cypress": "^3.1.5",
"@vue/cli-shared-utils": "^3.6.0",
"cypress": "^3.2.0",
"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.1",
"version": "3.6.0",
"description": "e2e-nightwatch plugin for vue-cli",
"main": "index.js",
"repository": {
@@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@vue/cli-shared-utils": "^3.5.1",
"@vue/cli-shared-utils": "^3.6.0",
"chromedriver": "^2.46.0",
"deepmerge": "^3.2.0",
"execa": "^1.0.0",
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/generator/index.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ module.exports = (api, { config, lintOn = [] }, _, invoking) => {
// in order to keep compatibility with v3.0.x users who defaults to ESlint v4.
devDependencies: {
'babel-eslint': '^10.0.1',
'eslint': '^5.8.0',
'eslint': '^5.16.0',
'eslint-plugin-vue': '^5.0.0'
}
}
@@ -71,7 +71,7 @@ module.exports = (api, { config, lintOn = [] }, _, invoking) => {

if (lintOn.includes('commit')) {
Object.assign(pkg.devDependencies, {
'lint-staged': '^8.1.4'
'lint-staged': '^8.1.5'
})
pkg.gitHooks = {
'pre-commit': 'lint-staged'
Loading