Haoqun Jiang
fec160ff96
fix: no need to assertCliVersion. avoid breaking old versions
2019-10-16 20:31:18 +08:00
Haoqun Jiang
81f84577e4
v4.0.0
v4.0.0
2019-10-16 19:19:06 +08:00
Haoqun Jiang
0603f1eed9
chore: pre release sync
2019-10-16 19:18:38 +08:00
Haoqun Jiang
15c86f0f9b
docs: preparing v4 stable release [ci skip]
2019-10-16 19:13:47 +08:00
Haoqun Jiang
c80fb6ab26
fix: pin typescript version to 3.5 until we support typescript-eslint 2
2019-10-16 18:53:04 +08:00
Haoqun Jiang
4de59d06ac
fix(types): update css options interface to reflect v4 changes
2019-10-16 17:52:38 +08:00
Haoqun Jiang
2601fece02
docs: add notes about vue --version output format [ci skip]
2019-10-16 14:36:33 +08:00
Haoqun Jiang
28fd1db9d0
chore: merge branch 'next' into dev
2019-10-16 14:15:09 +08:00
Haoqun Jiang
d72b453728
fix: fix afterAnyInvoke hook compatibility with pnpm 4
...
Maybe caused by the change of resolve mechanism in pnpm 4,
calling the hook from the creator would get a `Cannot find module`
error. As a workaround, we now require and cache the module outside the
callback function.
2019-10-16 13:28:00 +08:00
Haoqun Jiang
953a080c19
fix: update .npmrc for pnpm 4
2019-10-16 13:22:04 +08:00
Haoqun Jiang
5d2c8da754
refactor: replace --disturl option with NODEJS_ORG_MIRROR env variable
...
for better compatibility with pnpm 4 (which does not allow the
`--disturl` option)
2019-10-16 13:18:14 +08:00
B4rtware
badf63d7f0
fix: add pnpm v4 support ( #4677 )
...
* fix: add pnpm v4 support
in pnpm v4 the option '--loglevel' is no longer available instead '--reporter' is used.
* refactor: remove 'v' from PNPM constants for linting
* refactor: rename variable
* fix: typo in _hasPnpm4orLater
Co-Authored-By: Pavan Kumar Sunkara <pavan.sss1991@gmail.com >
* refactor: reduce the amount of duplicate code for pnpm version check
* refactor: remove return-assignment
* refactor: add explicit return value instead of using array access
Co-Authored-By: Pavan Kumar Sunkara <pavan.sss1991@gmail.com >
* fix: remove return value from checkPnpmVersion
* fix: pnpmVersion variable
* refactor: cache pnpm version number
* refactor: fix function name and revert api break
* fix: function call correction
* refactor: export hasPnpmVersionOrLater and use this in favor of hasPnpm4OrLater
* refactor: move cache getter into getPnpmVersion
* refactor: add comment
* refactor: remove comment
2019-10-16 13:15:58 +08:00
Nathaniel Blackburn
b65b24e8e5
fix: correct typo in babel migrator ( #4683 )
2019-10-16 11:16:03 +08:00
Haoqun Jiang
36774935a5
chore!: add @vue/cli in --version output, to avoid confusion ( #4681 )
...
* feat!: add `Vue CLI` in `--version` output, to avoid confusion
* chore: should use `@vue/cli` as the correct branding
2019-10-16 11:14:42 +08:00
Haoqun Jiang
469d3d8825
docs: migration guide from v3 to v4 ( #4552 ) [ci skip]
...
* docs: [wip] migration guide from v3 to v4
* docs: migration -> migrating
* docs: `--all` is not required
* docs: add more content
* docs: fix typo [ci skip]
* docs: fix jest changelog link [ci skip]
* docs: elaborate on babel plugin changes
* docs: elaborate on the less-loader version issue
* docs: finish eslint changelog [ci skip]
* docs: more on webpack configs [ci skip]
* docs: move migrating-to-v3 to first-level nav
* docs: elaborate on css-loader changes [ci skip]
* docs: finish nightwatch guide [ci skip]
* docs: link to workbox v4 release notes [ci skip]
* docs: [wip] detailed explanation on vue.config.js
* docs: add examples for terser; add router & vuex directory change
* docs: mention `api.hasPlugin('vue-router')` [ci skip]
* docs: add subtitles [ci skip]
* docs: update descriptions to reflect rc.8 changes
* docs: some grammar corrections [ci skip]
* docs: add whitespace handling changes [ci skip]
* docs: @4 -> @next [ci skip]
* docs: blank lines [ci skip]
* Update docs/migrating-from-v3/README.md
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com >
* Update docs/migrating-from-v3/README.md
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com >
* Update docs/migrating-from-v3/README.md
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com >
* Update docs/migrating-from-v3/README.md
Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com >
2019-10-15 20:24:34 +08:00
René Eschke
c76091075f
missing documentation for building with vuex ( #2319 )
...
I really needed this tip and luckily got it from this awesome community in a github issue.
This definitely needs to be in the docs aswell:
https://github.com/vuejs/vue-cli/issues/2304#issuecomment-414702510
2019-10-11 22:18:43 +02:00
Maël Nison
3aa513ace5
Add a variant for config get registry ( #4530 )
...
* Update shouldUseTaobao.js
* Fixes linting
2019-10-11 22:01:07 +02:00
Haoqun Jiang
5cce80c2f7
v4.0.0-rc.8
v4.0.0-rc.8
2019-10-11 16:11:02 +08:00
Haoqun Jiang
3fcff0268a
chore: pre release sync
2019-10-11 16:08:49 +08:00
Haoqun Jiang
0ddad86161
chore: lockfile maintenance
2019-10-11 15:37:41 +08:00
Phan An
81d0245dd6
chore: better upgrade messages ( #3926 )
...
* chore: better upgrade messages
* feat: try to find the right command to update
2019-10-11 15:34:22 +08:00
Haoqun Jiang
08d7761099
chore!: upgrade terser-webpack-plugin to 2.x ( #4676 )
...
BREAKING CHANGE:
The only real breaking change is https://github.com/webpack-contrib/terser-webpack-plugin/issues/129 ,
which is not likely to affect normal users.
The rest are default option values changes, which are already covered in
the default provided `terserOptions` of Vue CLI.
Note that here we choose to disable `extractComments` by default, as I
don't see enough data showing such license comments taking too much
space. The extra LICENSE file may also be confusing to some users.
2019-10-11 14:51:20 +08:00
Haoqun Jiang
01e36f30cf
refactor!: use DefinePlugin (again) instead of EnvironmentPlugin ( #4673 )
...
* Revert "refactor: use EnvironmentPlugin instead of DefinePlugin"
This reverts commit 7117a096df .
* refactor: use the exported DefinePlugin
2019-10-11 13:14:24 +08:00
Haoqun Jiang
5c2d0baaab
fix: fix dependency issue
2019-10-11 12:57:43 +08:00
Haoqun Jiang
eabdaf1da8
fix: update command names, per https://github.com/Akryum/vue-cli-plugin-apollo/pull/158
2019-10-11 01:01:47 +08:00
Haoqun Jiang
4dd25c28e6
chore: fix peer dep warnings
2019-10-11 00:27:26 +08:00
Haoqun Jiang
da9269b328
feat(babel-preset): set target to node whenever NODE_ENV === 'test' ( #4663 )
...
Typically only unit test frameworks do so.
2019-10-10 10:00:31 +08:00
Haoqun Jiang
617dd04cb4
feat: improve compatibility with v3 plugin usage ( #4664 )
...
1. `public/manifest.json` will be used when no `pwa.manifestOptions`
present;
2. warn user when there are both the file & the config field present.
2019-10-10 09:59:49 +08:00
Haoqun Jiang
e5196f581a
fix: fix redundant log messages from webpack-dev-server ( #4666 )
...
By replacing the `quiet` option with `logLevel: 'silent'`.
Fixes #4599
2019-10-10 09:59:16 +08:00
Haoqun Jiang
a24b971529
chore: merge branch 'next' into dev
2019-10-08 13:25:55 +08:00
Haoqun Jiang
7813ca9e73
chore: update sponsors ( #4656 )
...
(cherry picked from commit 4f4aae2420 )
2019-10-08 13:25:37 +08:00
Thorsten Lünborg
c101afbd71
docs(cli-service): Clarify object options for css.extract ( #4402 ) [ci skip]
...
Link to mini-css-extract-plugin so users can check
what kind of options they can provide.
close #4401
(cherry picked from commit 5dfea8134f )
2019-10-08 13:25:30 +08:00
Haoqun Jiang
f5135d41a5
feat: make the minimizer config available in all modes ( #4641 )
...
As long as the `minimize` option is set to false (which is default in
production mode), the code won't be minimized. So the mode doesn't
matter when it comes to the `minimizer` config.
By exposing this config, users can simplify their custom config, by
removing the `process.env.NODE_ENV === 'production'` guard around their
custom minimizer configuration.
2019-10-07 00:14:28 +08:00
James F McMahon
b218dfec29
docs: Reference mochapack in README ( #4652 ) [ci skip]
...
As of e08603b , this plugin uses mochapack instead of mocha-webpack. Updated the README to reflect this.
2019-10-07 00:07:43 +08:00
Haoqun Jiang
3b016e7901
feat: add webdriver log files to gitignore ( #4644 )
2019-10-04 23:28:27 +08:00
Haoqun Jiang
58592fed4e
v4.0.0-rc.7
v4.0.0-rc.7
2019-10-01 23:35:39 +08:00
Haoqun Jiang
6dcc62740f
chore: pre release sync
2019-10-01 23:34:00 +08:00
Haoqun Jiang
e63bf6122b
fix: avoid accidentally overriding sass config with scss configs ( #4637 )
2019-10-01 23:30:15 +08:00
Haoqun Jiang
b823ca84d3
v4.0.0-rc.6
v4.0.0-rc.6
2019-09-30 20:27:57 +08:00
Haoqun Jiang
45e1e983ab
chore: pre release sync
2019-09-30 20:20:35 +08:00
Haoqun Jiang
5bff9c3f28
fix(upgrade-all): avoid accidentally writing outdated package.json back ( #4634 )
2019-09-30 20:15:23 +08:00
Haoqun Jiang
cd5f404cde
fix(babel-migrator): transform babel preset regardless of plugin version ( #4633 )
2019-09-30 19:55:59 +08:00
Haoqun Jiang
d49f784eb0
v4.0.0-rc.5
v4.0.0-rc.5
2019-09-30 18:39:52 +08:00
Haoqun Jiang
29d070ca75
chore: pre release sync
2019-09-30 18:35:59 +08:00
Haoqun Jiang
2334ff83ee
fix: fix output quote styles in codemods
...
The recast print utility prefers double quotes by default,
this may fail many users' eslint check, so we have to implement a
detection utility to tell if double quotes are actually needed.
Template literals are also converted to string literals, to make things
easier for future iterations.
2019-09-30 18:18:35 +08:00
Haoqun Jiang
ebdb142a4b
fix: fix sassOptions merging for scss syntax in sass-loader v8 ( #4631 )
...
fixes #4630
2019-09-30 14:02:48 +08:00
Yingya Zhang
8869a01d48
feat: support custom package manager ( #4621 )
...
Closes #4483
* feat: support custom package manager
* feat: refine warning msg for unknown package manager
* feat: refine blank lines
* feat: refine warning msg for unknown package manager
* feat: refine warning msg for unknown package manager
2019-09-30 14:01:43 +08:00
Haoqun Jiang
ed2b888782
Revert "feat: allow custom packageManager other than npm/yarn/p… ( #4632 )
...
This reverts commit e0f846984a .
2019-09-30 14:00:31 +08:00
Yingya Zhang
e0f846984a
feat: allow custom packageManager other than npm/yarn/pnpm ( #4620 )
...
Closes #4483
2019-09-30 13:59:21 +08:00
Haoqun Jiang
14ff94da34
fix: force lines to be ended with lf, fix windows tests
2019-09-29 23:09:25 +08:00