Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about loader incompatible with webpack 4 #6265

Closed
wants to merge 144 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
e9da3cf
docs: refactor the navbar, add entry for v4->v5 migration guide
sodatea Sep 7, 2020
b07be3c
chore: dependency maintenance
sodatea Sep 7, 2020
473eab2
chore!: some trivial major version bumps for dependencies
sodatea Sep 8, 2020
393e79b
fixup! chore!: some trivial major version bumps for dependencies
sodatea Sep 8, 2020
adb8c7d
chore!: remove TSLint support (#5065)
Shinigami92 Sep 10, 2020
6857b82
chore: Merge branch 'dev' into next
sodatea Sep 10, 2020
bb095d9
docs: add notes for TSLint [ci skip]
sodatea Sep 10, 2020
36e500d
chore!: update eslint-loader, minimum supported ESLint version is 6 (…
sodatea Sep 11, 2020
3717f7c
feat(plugin)!: update cypress plugin to reflect cross-browser capabil…
amirrustam Feb 4, 2020
149e3f1
fixup! feat(plugin)!: update cypress plugin to reflect cross-browser …
sodatea Sep 28, 2020
5780a8b
docs: update the migration guide
sodatea Sep 28, 2020
b8b0ba7
docs: add cypress migration guide [skip ci]
sodatea Sep 28, 2020
edce9d0
chore!: bump unit-mocha dependency versions (#5907)
sodatea Sep 29, 2020
e4820c6
fixup! chore!: bump unit-mocha dependency versions (#5907)
sodatea Sep 29, 2020
3656416
chore: merge branch 'next' into dev
sodatea Oct 9, 2020
920160a
refactor: rename the `version` parameter to `versionRange`
sodatea Oct 9, 2020
5a30ec4
chore: bump vuepress version
sodatea Oct 10, 2020
1a0d4df
feat(lint): add output file option (close #4849) (#4850)
ataylorme Oct 12, 2020
3f7fb4f
feat!: bump fork-ts-checker-webpack-plugin version to v5 (#5941)
sodatea Oct 12, 2020
a263da5
chore: Create FUNDING.yml (#5944)
sodatea Oct 13, 2020
b8d593a
fix: npm 7 compat by turning on `legacy-peer-deps` flag (#5961)
sodatea Oct 15, 2020
d77fa6a
fix: narrow the eslint peer dep version range, avoiding npm 7 error (…
sodatea Oct 15, 2020
49db9c4
fix: npm 7 compat by turning on `legacy-peer-deps` flag (#5961)
sodatea Oct 15, 2020
90d3dfc
chore!: some trivial dependency major version updates (#5951)
sodatea Oct 15, 2020
5898fcb
fixup! chore!: some trivial dependency major version updates (#5951)
sodatea Oct 16, 2020
b2755d1
fix: update vue-shims for Vue v3.0.1 (#5975)
cexbrayat Oct 19, 2020
29c9fc6
fix: update vue-shims for Vue v3.0.1 (#5975)
cexbrayat Oct 19, 2020
825e983
fix: also update the migrator for vue 3 typescript shim
sodatea Oct 19, 2020
0db188e
fix: also update the migrator for vue 3 typescript shim
sodatea Oct 19, 2020
d06a1e8
v4.5.8
sodatea Oct 19, 2020
25a89c6
chore: merge branch 'v4' into dev
sodatea Oct 19, 2020
2039117
chore: lockfile maintenance
sodatea Oct 19, 2020
2373df1
fix: using `lang` attribute with empty string in html template (#5992)
fangbinwei Oct 26, 2020
d03169c
fix: ensure EOL in existing tsconfig.json (#6006)
ParkerM Oct 31, 2020
0b86e70
types(vue.config.js): add descriptions for config (#5967)
vegerot Nov 2, 2020
68be2ec
docs(zh): correction of some format problems (#6036) [skip ci]
zce Nov 9, 2020
ba6cb7c
refactor!: replace request with node-fetch (#6009)
jeneser Nov 13, 2020
d355004
fix(generator): only process template file contents, bump yaml-front-…
ferm10n Nov 13, 2020
cb58c5f
fix: prevent snoretoast shortcut, set notif title (#2720) (#6000)
tony19 Nov 14, 2020
cb5f117
fix(typescript): remove getPrompts function in prompts.js (#6053)
jeneser Nov 14, 2020
66a87f2
chore!: drop support of NPM 5 (#6051)
sodatea Nov 14, 2020
05c010e
chore!: drop support of end-of-life node releases (8, 11, 13) (#6052)
sodatea Nov 14, 2020
fe88b1c
fix(cypress): allow users to update cypress (#6062)
elevatebart Nov 17, 2020
f5359bd
workflow: test migrator / vue 3 scenarios with verdaccio (#6071)
sodatea Nov 19, 2020
482ef10
chore!: bump joi to v17 (#5973)
sodatea Nov 19, 2020
9136696
feat(eslint): support eslint7 and @babel/eslint-parser (#6059)
fangbinwei Nov 20, 2020
33f954c
fix(cli-service): pass --public host to devserver (#6066)
jonaskuske Nov 20, 2020
89d58ce
test: fix jest args order
sodatea Nov 20, 2020
e10545a
test: should not use file:// protocol now that we have verdaccio
sodatea Nov 20, 2020
8230aa3
test: yet another dirty fix for verdaccio testing
sodatea Nov 20, 2020
746540b
refactor: sub-package eslint maintance (#6078)
fangbinwei Nov 23, 2020
83773ae
fix(generator): upgrade to prettier v2 (#6020)
jeneser Nov 26, 2020
3b06867
fix(mocha): disable SSR optimization for Vue 3 testing (#6097)
sodatea Nov 30, 2020
6da5df4
perf(cli): delete the EOL_NODE_MAJORS checking (#6102)
ChanningHan Dec 2, 2020
928f915
chore: webpack-bundle-analyzer to ^4.1.0 (#6092)
genie-youn Dec 2, 2020
da8bd39
chore: return with an exit code of 1 on supplying an unknown command …
jamesgeorge007 Dec 2, 2020
6c3f118
fix(cli-service): html template add html5 doctype declaration (#6083)
zzzJH Dec 2, 2020
bd1f1b7
chore!: remove deprecated node-sass (#6090)
andreiTn Dec 2, 2020
f685044
fix(cli-service): don't write entry-wc to node_modules (#6101)
merceyz Dec 2, 2020
2dbe0be
feat!: support and use webpack 5 as default (#6060)
sodatea Dec 3, 2020
17339d7
test: should not expect babel polyfill paths to be extension-less (#6…
sodatea Dec 4, 2020
a153af8
feat: replace eslint-loader by eslint-webpack-plugin (#6094)
fangbinwei Dec 7, 2020
0b5ae42
feat!: update jest to v26 (#6116)
sodatea Dec 8, 2020
1e5ba6b
feat!: make `vue serve/build` aliases to `npm run serve/build` (#6115)
sodatea Dec 8, 2020
0a63715
docs: fix grammar Mistake in Docs (#6074) [skip ci]
HollowMan6 Dec 8, 2020
75533f1
doc(zh): add entry default value (#6073) [skip ci]
nk Dec 8, 2020
89b0377
feat!: upgrade postcss-loader, using postcss 8 by default (#6108)
sodatea Dec 8, 2020
f73fa6e
chore: dependency maintenance
sodatea Dec 8, 2020
69b570e
chore: update cmd-shim and move it to devDependencies (#6127)
sodatea Dec 9, 2020
a04509d
feat: update cypress to v6 (#6120)
sodatea Dec 9, 2020
f1962ad
feat!: update mocha to v8 (#6121)
sodatea Dec 9, 2020
5c728a4
chore!: update typescript-related dependencies (#6129)
sodatea Dec 9, 2020
b96c3bd
feat: update eslint-related packages (#6123)
sodatea Dec 9, 2020
7e42890
chore!: bump stylus-loader from v3 to v4 (#6130)
jeneser Dec 9, 2020
2913524
test: fix tests according to cypress 6 breaking change
sodatea Dec 9, 2020
04297fd
chore: lockfile maintenance
sodatea Dec 9, 2020
b9cce99
test: do not hard-code major version number in test
sodatea Dec 9, 2020
663bbd7
fix: fix usage of cmd-shim (#6137)
fangbinwei Dec 10, 2020
ea6151f
fix: eslint formatter path error (#6134)
githoniel Dec 10, 2020
10fc575
chore!: bump ejs to v3 (#6133)
sodatea Dec 11, 2020
eee082d
feat: bump lint-staged to v10 (#6136)
sodatea Dec 11, 2020
85c2e00
chore!: support v5 alpha as peer dependencies, drop v4 prereleases (#…
sodatea Dec 11, 2020
696cbd1
chore: dependency and lockfile maintenance
sodatea Dec 11, 2020
b1344c2
fix: fix stylus config
sodatea Dec 11, 2020
4de8c99
refactor!: replace optimize-cssnano-plugin with css-minimizer-webpack…
sodatea Dec 14, 2020
a672585
fix: fix cypress mirror url for cypress version > 3 (#6145)
sodatea Dec 14, 2020
c72b6b0
feat: add a @vue/cli-plugin-webpack-4 package for future use (#6144)
sodatea Dec 14, 2020
3b3cd90
refactor: replace cache-loader with babel-loader's built-in cache (#6…
sodatea Dec 14, 2020
ba5caf0
chore: pre release sync
sodatea Dec 14, 2020
e22d7f8
fix: fix title injection of the generated html file
sodatea Dec 14, 2020
81dc30a
fix: disable eslint for Vue 3 type shim (for now)
sodatea Dec 14, 2020
a7387ef
Revert "chore: pre release sync"
sodatea Dec 14, 2020
ff96714
chore: pre release sync
sodatea Dec 14, 2020
7139e40
v5.0.0-alpha.0
sodatea Dec 14, 2020
45cd92c
chore: fix changelog formatting [ci skip]
sodatea Dec 14, 2020
5b3ab5d
fix: temporary workaround for vuepress build
sodatea Dec 14, 2020
2814c42
chore: Merge branch 'master' into dev
sodatea Dec 14, 2020
4573897
docs: update webpack-4 migrate instructions [skip ci]
sodatea Dec 15, 2020
b5bb095
chore: merge changelog from v4 branch
sodatea Dec 15, 2020
6f3fc16
docs: mode-and-env doc need be updated (#6050)
theniceangel Dec 17, 2020
41eb4e9
chore: Merge branch 'master' into dev
sodatea Dec 17, 2020
0372160
chore: some trivial dependency version bumps (#6152)
sodatea Dec 17, 2020
91050b0
refactor(generator): minor refactor afterInvoke/afterAnyInvoke (#5993)
fangbinwei Dec 18, 2020
d743514
chore: use webpack-chain v6.5.1 (#6157)
cexbrayat Dec 20, 2020
dc4c455
fix(generator): avoid doing redundant write operations (#6011)
fangbinwei Dec 20, 2020
451f3d2
feat: make globby includes dot files (#5537)
fxxjdedd Dec 20, 2020
5830171
fix: add missing jest-transform-stub media types (#6169) (#6170)
raineorshine Dec 25, 2020
a634400
fix(cli-service): restrict request headers of historyApiFallback in W…
githoniel Jan 5, 2021
597b236
docs(zh): fix `publicPath` hash (#6185) [skip ci]
xuexb Jan 5, 2021
4549bde
fix(mocha): workaround the ShadowRoot issue in Vue 3.0.5 (#6186)
sodatea Jan 6, 2021
ffc0686
fix: fix pwa installability by adding fetch event listener to noopSer…
kubenstein Jan 6, 2021
4378c8d
style: replace eslint-plugin-vue-libs with standard config (#6148)
sodatea Jan 6, 2021
8177753
chore: merge v4.5.10 changelog
sodatea Jan 6, 2021
89774a2
chore: Merge branch 'master' into dev
sodatea Jan 6, 2021
dfa7148
chore: pre release sync
sodatea Jan 6, 2021
104f9bc
v5.0.0-alpha.1
sodatea Jan 6, 2021
6ee1413
chore: Merge branch 'next' into dev
sodatea Jan 6, 2021
60c0004
chore: pre release sync
sodatea Jan 6, 2021
48d6afd
v5.0.0-alpha.2
sodatea Jan 6, 2021
637414c
feat: open browser when toast clicked (#6001)
tony19 Jan 7, 2021
c711516
feat!: bump default sass-loader version to v10, drop sass-loader v7 s…
sodatea Jan 10, 2021
af3e6c4
fix: should use graphql v15 at all levels of dependency (#6192)
sodatea Jan 11, 2021
2503ba6
fix: support basic auth for npm registry access (#6207)
bodograumann Jan 14, 2021
b711a05
fix(unit-mocha): shouldn't require webpack-4 plugin with cli-service …
sodatea Jan 18, 2021
3608b04
refactor: fix eslint warnings in the cli-ui codebase (#6189)
sodatea Jan 18, 2021
3f82947
feat: support SVG favicon (#6198)
mauriciabad Jan 19, 2021
4e8a4ff
chore: add __testfixtures__ to npmignore
sodatea Jan 20, 2021
82aef12
test: simplify loadModule special case handling for tests
sodatea Jan 20, 2021
45aca81
fix: "commonjs2" target should not be used with "output.library" (#6218)
sodatea Jan 21, 2021
51d82a5
chore: disable cacheCompression for babel-loader by default (#6222)
sodatea Jan 21, 2021
e1eba09
fix: discard `NODE_ENV` when installing project dependencies (#6224)
sodatea Jan 21, 2021
b69697e
fix(cli): resolve plugins relative to the package context (#5794)
merceyz Jan 22, 2021
28ce4f6
docs: mention the removal of node-sass in the migration guide [skip ci]
sodatea Jan 22, 2021
bf6ce27
chore: pre release sync
sodatea Jan 22, 2021
3d80810
v5.0.0-alpha.3
sodatea Jan 22, 2021
5f4656e
chore: merge branch 'master' into dev
sodatea Jan 22, 2021
e7774ca
chore: vue-cli-plugin-apollo should be a dev dependency
sodatea Jan 22, 2021
634bf59
feat(typescript): add `useDefineForClassFields` option in tsconfig te…
ktsn Jan 25, 2021
b9e2f70
fix(cli-service): avoiding recreating dist directory (#6221)
fangbinwei Jan 25, 2021
e7985a3
chore: remove dependency on eslint-plugin-vue-libs
sodatea Jan 27, 2021
f8017ca
chore: upgrade commander to v7 (#6242)
sodatea Jan 27, 2021
b41ed76
fix: mini-css-extract-plugin publicPath option can be an absolute pat…
Veath Jan 27, 2021
f9d53c7
chore: vuex 4.0.0 has been released, `-0` suffix no longer necessary
sodatea Feb 3, 2021
49e6040
Add note about loader incompatible with webpack 4
JarnoRFB Feb 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
109 changes: 81 additions & 28 deletions .circleci/config.yml
@@ -1,9 +1,19 @@
version: 2
version: 2.1

defaults: &defaults
working_directory: ~/project/vue
docker:
- image: vuejs/ci
- image: circleci/node:lts-browsers

aliases:
- &restore-yarn-cache
key: v2-vue-cli-{{ checksum "yarn.lock" }}

- &save-yarn-cache
key: v2-vue-cli-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- ~/.cache

workflow_filters: &filters
filters:
Expand All @@ -16,54 +26,67 @@ jobs:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v2-vue-cli-{{ checksum "yarn.lock" }}
- restore_cache: *restore-yarn-cache
- run: yarn --network-timeout 600000
- save_cache:
key: v2-vue-cli-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- ~/.cache
- save_cache: *save-yarn-cache
- persist_to_workspace:
root: ~/
paths:
- project/vue
- .cache/Cypress

group-1:
e2e:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: ./scripts/e2e-test/run-e2e-test.sh

core:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn test -p cli,cli-service,cli-shared-utils

group-2:
core-webpack-4:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: VUE_CLI_USE_WEBPACK4=true yarn test -p cli,cli-service,cli-shared-utils

typescript:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn test 'ts(?:\w(?!E2e))+\.spec\.js$'

group-3:
typescript-webpack-4:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: VUE_CLI_USE_WEBPACK4=true yarn test 'ts(?:\w(?!E2e))+\.spec\.js$'

plugins:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn lint-without-fix
- run: yarn check-links
- restore_cache:
keys:
# TODO: should use a more accurate cache key
- v2-vue-cli-offline-{{ checksum "yarn.lock" }}
- run: yarn config set yarn-offline-mirror ~/npm-packages-offline-cache
- run: yarn test -p cli-service-global,eslint,pwa,babel,babel-preset-app,vuex,router
- save_cache:
key: v2-vue-cli-offline-{{ checksum "yarn.lock" }}
paths:
- ~/npm-packages-offline-cache
- run: yarn test -p eslint,pwa,babel,babel-preset-app,vuex,router

group-4:
plugins-webpack-4:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: VUE_CLI_USE_WEBPACK4=true yarn test -p eslint,pwa,babel,babel-preset-app,vuex,router

tests:
<<: *defaults
steps:
- attach_workspace:
Expand All @@ -72,6 +95,14 @@ jobs:
# e2e-nightwatch was left out due to some unknown issues with selenium and the CI image
- run: yarn test tsPluginE2e

tests-webpack-4:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: VUE_CLI_USE_WEBPACK4=true yarn test -p unit-mocha,unit-jest,e2e-cypress
- run: VUE_CLI_USE_WEBPACK4=true yarn test tsPluginE2e

cli-ui:
<<: *defaults
steps:
Expand All @@ -83,29 +114,51 @@ jobs:
- store_artifacts:
path: packages/@vue/cli-ui/tests/e2e/screenshots

# TODO: cli-ui-webpack-4

workflows:
version: 2
test:
jobs:
- install:
<<: *filters
- group-1:
- core:
<<: *filters
requires:
- install
- core-webpack-4:
<<: *filters
requires:
- install
- typescript:
<<: *filters
requires:
- install
- typescript-webpack-4:
<<: *filters
requires:
- install
- group-2:
- plugins:
<<: *filters
requires:
- install
- group-3:
- plugins-webpack-4:
<<: *filters
requires:
- install
- group-4:
- tests:
<<: *filters
requires:
- install
- tests-webpack-4:
<<: *filters
requires:
- install
- cli-ui:
<<: *filters
requires:
- install
- e2e:
<<: *filters
requires:
- install
1 change: 0 additions & 1 deletion .eslintignore
Expand Up @@ -3,6 +3,5 @@ template
template-vue3
packages/test
temp
entry-wc.js
dist
__testfixtures__
31 changes: 15 additions & 16 deletions .eslintrc.js
@@ -1,33 +1,32 @@
module.exports = {
extends: [
"plugin:vue-libs/recommended"
'@vue/standard'
],
plugins: [
"node"
],
env: {
"jest": true
},
globals: {
name: 'off'
},
rules: {
"indent": ["error", 2, {
"MemberExpression": "off"
indent: ['error', 2, {
MemberExpression: 'off'
}],
"no-shadow": ["error"],
"node/no-extraneous-require": ["error", {
"allowModules": [
"@vue/cli-service",
"@vue/cli-test-utils"
quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'quote-props': 'off',
'no-shadow': ['error'],
'node/no-extraneous-require': ['error', {
allowModules: [
'@vue/cli-service',
'@vue/cli-test-utils'
]
}]
},
overrides: [
{
files: ['**/__tests__/**/*.js', "**/cli-test-utils/**/*.js"],
files: ['**/__tests__/**/*.js', '**/cli-test-utils/**/*.js'],
env: {
jest: true
},
rules: {
"node/no-extraneous-require": "off"
'node/no-extraneous-require': 'off'
}
}
]
Expand Down
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
@@ -0,0 +1,4 @@
github: [yyx990803, sodatea]
patreon: evanyou
open_collective: vuejs
tidelift: npm/vue