Commit Graph

3226 Commits

Author SHA1 Message Date
Haoqun Jiang
e7774caddb chore: vue-cli-plugin-apollo should be a dev dependency
It's not used in any server-side code
2021-01-22 16:41:50 +08:00
Haoqun Jiang
5f4656e7e5 chore: merge branch 'master' into dev 2021-01-22 16:30:34 +08:00
Haoqun Jiang
3d80810a55 v5.0.0-alpha.3 v5.0.0-alpha.3 2021-01-22 16:20:35 +08:00
Haoqun Jiang
bf6ce27a35 chore: pre release sync 2021-01-22 16:19:44 +08:00
Haoqun Jiang
28ce4f6bda docs: mention the removal of node-sass in the migration guide [skip ci] 2021-01-22 16:10:37 +08:00
Kristoffer K
b69697ebba fix(cli): resolve plugins relative to the package context (#5794)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2021-01-22 15:52:12 +08:00
Haoqun Jiang
e1eba098ae fix: discard NODE_ENV when installing project dependencies (#6224)
Avoid empty `node_modules` when the user has set `NODE_ENV` to
`production` in the shell environment.

In the long run we should have a more comprehensive preflight check
for execution environment though.
2021-01-21 16:31:19 +08:00
Haoqun Jiang
51d82a56c7 chore: disable cacheCompression for babel-loader by default (#6222)
See the reasoning at https://github.com/facebook/create-react-app/pull/7633

This change should improve the build speed for large projects
2021-01-21 10:28:27 +08:00
Haoqun Jiang
45aca819d1 fix: "commonjs2" target should not be used with "output.library" (#6218)
Closes #6188
2021-01-21 10:27:48 +08:00
Andy Chen
e026771641 docs: fix minor typo (#6223) 2021-01-20 23:24:39 +08:00
Haoqun Jiang
82aef123d9 test: simplify loadModule special case handling for tests
1. createRequire should have been properly handled in newer Jest
versions: https://github.com/facebook/jest/pull/9469
2. We don't test migrators with Jest mock modules anymore

So it's safe to skip that condition
2021-01-20 16:38:26 +08:00
Haoqun Jiang
4e8a4ff03a chore: add __testfixtures__ to npmignore 2021-01-20 15:56:03 +08:00
Maurici Abad Gutierrez
3f82947c0d feat: support SVG favicon (#6198) 2021-01-19 15:18:24 +08:00
Haoqun Jiang
3608b04a7a refactor: fix eslint warnings in the cli-ui codebase (#6189) 2021-01-18 20:09:59 +08:00
Haoqun Jiang
b711a05a5f fix(unit-mocha): shouldn't require webpack-4 plugin with cli-service v4 (#6215)
Note this plugin is compatible with cli-service v4, therefore users can
upgrade to it separately for mocha major version upgrades
2021-01-18 17:23:05 +08:00
Bodo Graumann
2503ba6421 fix: support basic auth for npm registry access (#6207)
When username and password are configured in the .npmrc for the
respective scope, use basic auth when getting package metadata from the
npm registry.

Closes #6206
2021-01-14 16:42:00 +08:00
Robin Hellemans
8f1324ceee docs: update description of ESlint default linted files (#6199) 2021-01-13 16:39:14 +08:00
Haoqun Jiang
af3e6c4ca0 fix: should use graphql v15 at all levels of dependency (#6192)
It causes peer dependency warnings because of several ill-maintained
apollo packages, but let's just ignore them.
Fixes #6191
2021-01-11 12:16:12 +08:00
Haoqun Jiang
c711516125 feat!: bump default sass-loader version to v10, drop sass-loader v7 support (#6187) 2021-01-10 19:04:39 +08:00
Tony Trinh
637414cb69 feat: open browser when toast clicked (#6001) 2021-01-07 14:55:11 +08:00
Haoqun Jiang
48d6afd73d v5.0.0-alpha.2 v5.0.0-alpha.2 2021-01-06 15:31:25 +08:00
Haoqun Jiang
60c0004a7c chore: pre release sync 2021-01-06 15:30:36 +08:00
Haoqun Jiang
6ee1413aaa chore: Merge branch 'next' into dev 2021-01-06 15:29:35 +08:00
Haoqun Jiang
104f9bcc71 v5.0.0-alpha.1 v5.0.0-alpha.1 2021-01-06 15:25:18 +08:00
Haoqun Jiang
dfa7148b80 chore: pre release sync 2021-01-06 15:24:57 +08:00
Haoqun Jiang
89774a2b39 chore: Merge branch 'master' into dev 2021-01-06 15:18:11 +08:00
Haoqun Jiang
8177753cd4 chore: merge v4.5.10 changelog 2021-01-06 15:13:34 +08:00
Haoqun Jiang
4378c8df26 style: replace eslint-plugin-vue-libs with standard config (#6148) 2021-01-06 14:29:12 +08:00
Jakub Niewczas
ffc0686e89 fix: fix pwa installability by adding fetch event listener to noopServiceWorker (#5327)
currently google chrome prevents installing pwa due to the error: “Page does not work offline”. The reason is service worker has to listen to fetch event. It doesnt have to do anything so the listener can be an empty function, but it has to be declared
2021-01-06 12:28:17 +08:00
Haoqun Jiang
4549bde150 fix(mocha): workaround the ShadowRoot issue in Vue 3.0.5 (#6186) 2021-01-06 11:45:14 +08:00
前端小武
597b236f77 docs(zh): fix publicPath hash (#6185) [skip ci] 2021-01-05 18:44:28 +08:00
Githoniel
a634400529 fix(cli-service): restrict request headers of historyApiFallback in WebpackDevServer (#6162) 2021-01-05 13:40:42 +08:00
Dahunsi Fehintoluwa
3eaef4d388 docs: fixed some typos on deployment.md (#6176)
Corrected 'fo' to 'of' and 'wit' to 'with' on line 180
2020-12-31 10:50:19 +08:00
Raine Revere
5830171f52 fix: add missing jest-transform-stub media types (#6169) (#6170)
Existing:
- css
- styl
- less
- sass
- scss
- svg
- png
- jpg
- ttf
- woff
- woff2

Added:
- jpeg
- gif
- eot
- otf
- webp
- mp4
- webm
- wav
- mp3
- m4a
- aac
- oga
2020-12-25 16:22:49 +08:00
Mark Szymanski
0435313e4c docs: update skip plugins section of cli-service (#5927)
Simplify language, omit unnecessary use case example to better align with tone of other feature descriptions
2020-12-20 20:05:09 +08:00
fxxjdedd
451f3d2f5f feat: make globby includes dot files (#5537)
https://cli.vuejs.org/dev-guide/plugin-dev.html#filename-edge-cases

Although in this passage, it is suggested that we should change ".env" to "_env" to solve the problem of uploading npm packages. But there will also be such a demand, the files in `generator/template` are dynamically pulled from the git repository at runtime, and there may be `.env` files in the repository, so this pr can solve the problem here
2020-12-20 20:02:58 +08:00
Binwei Fang
dc4c4559b6 fix(generator): avoid doing redundant write operations (#6011)
Avoid overwriting the file which is not modified when executing `vue add/invoke`
This will reduce the chance of encountering issues like #5939
2020-12-20 19:56:33 +08:00
Cédric Exbrayat
d74351456a chore: use webpack-chain v6.5.1 (#6157)
Vue CLI v5.0.0-alpha.0 uses `rule.resolve` in the CLI service (see https://github.com/vuejs/vue-cli/blob/v5.0.0-alpha.0/packages/@vue/cli-service/lib/config/base.js#L17-L20) which was introduced in webpack-chain v6.5.0.

As the CLI service defines a dependency to webpack-chain v6.4.0, this causes issues in existing projects when trying to upgrade to the CLi v5.

Upgrading an existing project leads to `yarn build` throwing:

```
TypeError: Cannot read property 'set' of undefined
    at /Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/config/base.js:20:19
    at /Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/Service.js:240:40
    at Array.forEach (<anonymous>)
    at Service.resolveChainableWebpackConfig (/Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/Service.js:240:26)
    at PluginAPI.resolveChainableWebpackConfig (/Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/PluginAPI.js:145:25)
    at module.exports (/Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:9:22)
    at build (/Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/commands/build/index.js:147:50)
    at /Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/commands/build/index.js:89:13
    at Service.run (/Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/lib/Service.js:234:12)
    at Object.<anonymous> (/Users/ced-pro/Code/ninjasquad/vue-ebook/book-tests/node_modules/@vue/cli-service/bin/vue-cli-service.js:36:9)
```

This fixes the issue by specifying the necesseray minimal version for webpack-chain.
2020-12-20 15:13:19 +08:00
Binwei Fang
91050b09f5 refactor(generator): minor refactor afterInvoke/afterAnyInvoke (#5993)
make afterInvoke/afterAnyInvoke code more readable and add test
2020-12-18 20:47:27 +08:00
Maurici Abad Gutierrez
fe0fa6718e docs: easier Netlify setup for history mode (#6093)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2020-12-18 17:21:04 +08:00
Haoqun Jiang
0372160524 chore: some trivial dependency version bumps (#6152) 2020-12-17 16:24:10 +08:00
Haoqun Jiang
41eb4e9fb9 chore: Merge branch 'master' into dev 2020-12-17 16:16:03 +08:00
JiZhi
9e32481d4c docs: mode-and-env doc need be updated (#6050) 2020-12-17 16:15:31 +08:00
Hollow Man
0716512cf6 docs: fix grammar Mistake in Docs (#6074) [skip ci]
files -> file
Signed-off-by: Hollow Man hollowman@hollowman.ml
2020-12-17 16:15:27 +08:00
汪磊
2e28324600 docs(zh): correction of some format problems (#6036) [skip ci] 2020-12-17 16:15:22 +08:00
JiZhi
6f3fc16431 docs: mode-and-env doc need be updated (#6050) 2020-12-17 16:11:24 +08:00
RJW
ced2c34998 docs(zh): fix SyntaxError + = => += (#6147)[skip ci]
lines[renderIndex] + = `\n router,` => lines[renderIndex] += `\n router,`
2020-12-15 12:15:50 +08:00
Haoqun Jiang
b5bb095bfd chore: merge changelog from v4 branch 2020-12-15 09:17:23 +08:00
Haoqun Jiang
4573897226 docs: update webpack-4 migrate instructions [skip ci] 2020-12-15 08:46:34 +08:00
Haoqun Jiang
2814c428fa chore: Merge branch 'master' into dev 2020-12-14 23:01:48 +08:00