Commit Graph

2728 Commits

Author SHA1 Message Date
Haoqun Jiang
3873d02382 chore: dependency maintenance 2019-11-29 15:15:17 +08:00
Haoqun Jiang
2ddcc65dfe v4.1.1 v4.1.1 2019-11-27 23:14:15 +08:00
Haoqun Jiang
dd98fa6799 fix: fix tsx compilation (#4894)
closes #4892
closes #4893
2019-11-27 23:10:13 +08:00
Haoqun Jiang
d21245d6b5 workflow: correctly decide which dist-tag to use 2019-11-27 23:02:14 +08:00
Haoqun Jiang
d316a18789 v4.1.0 v4.1.0 2019-11-27 14:58:46 +08:00
Haoqun Jiang
44cfe78871 chore: pre release sync 2019-11-27 14:57:24 +08:00
Per Åkerberg
13376ce012 Replace chalk.reset with stripAnsi in @vue/cli-shared-utils/lib/logger.js (#4842)
* Replace chalk.reset with stripAnsi 

When logging multi-line logs, the logger uses chalk.reset in order to get the length of the tag for the log. This is to achieve an indented layout of multi-line logs. chalk.reset only replaces styles such as bold and italic, not color. When the tag contains colors, the result is not pretty. Replacing with stripAnsi gets the intended result.

* Adds reference to strip-ansi

* Removes misplaces comma from package.json

* Removes extraneous semicolon
2019-11-27 14:50:10 +08:00
Haoqun Jiang
ba9596dfa6 test: asyncToGenerator is no longer used in async/await transformation
See https://github.com/babel/babel/pull/9481
2019-11-27 00:35:33 +08:00
Haoqun Jiang
84aed8ef10 chore: dependency maintenance 2019-11-27 00:34:22 +08:00
Haoqun Jiang
357c99a3fb chore: merge branch 'master' into dev 2019-11-27 00:03:10 +08:00
Haoqun Jiang
81e17e80b8 ci: warn on unlicensed dependencies 2019-11-26 22:24:34 +08:00
Haoqun Jiang
40616f425e ci: should fail on autofixable lint errors 2019-11-26 18:01:58 +08:00
Haoqun Jiang
b7f83b45ce fix: support parser option for codemods, and enable ts parsing by default (#4883)
fixes #4861
2019-11-26 15:52:50 +08:00
Yann Bertrand
ef2cbae66f fix: invalid version error when modules not installed (#4859)
fix #4781
2019-11-26 15:38:57 +08:00
Haoqun Jiang
2c13800051 chore: fix typo in comment [ci skip] 2019-11-25 16:18:35 +08:00
Yingya Zhang
0f6ec2e53d fix: typo atfer (#4851) 2019-11-25 16:11:29 +08:00
Jose G. Alfonso
f83c44113f Update doc section on Git Hooks (#4820)
Added complete required entries for lint-staged to work
2019-11-21 10:33:38 +02:00
Haoqun Jiang
e46ac20784 docs: add warnings on css sideEffects (#4836)
These warnings are originally stated in the vue-loader documentation,
but the CLI documentation perhaps have more visibility.

Fixes #4832
2019-11-21 10:33:02 +02:00
Haoqun Jiang
2652ab6a6b fix: include prereleases for assert*Version calls 2019-11-13 00:14:24 +08:00
Thomas Kint
6c4a0bf4f8 feat: allow use of full url for pwa manifest and icons (#4736) 2019-11-12 22:33:18 +08:00
文翰弟
f9291581e8 docs(zh): Update browser-compatibility.md (#4831) 2019-11-11 19:16:21 +08:00
Haoqun Jiang
1c41371a42 v4.1.0-beta.0 v4.1.0-beta.0 2019-11-09 21:49:23 +08:00
Haoqun Jiang
3094ae623f chore: pre release sync 2019-11-09 21:48:23 +08:00
Haoqun Jiang
d1c66d43d8 workflow: should be able to publish to next dist-tag in local registry 2019-11-09 21:43:43 +08:00
Haoqun Jiang
8cb5a637ab workflow: don't skip version prompt for local release [ci skip] 2019-11-09 17:47:39 +08:00
Jan Van Bruggen
c8392f12dc Add missing cli-ui dependencies (#4818)
Add missing `cli-ui/` dependencies that overlap with the root`/package.json`. Although `cli-ui/` does work if `yarn install` has been run at the root directory, `cli-ui/package.json` is an incomplete specification.
2019-11-09 15:11:47 +08:00
Haoqun Jiang
63257931bc fix: don't prepend publicPath with slash (#4816)
fixes #3338
fixes #4184

Actually I don't know why the slash was added in the first place, seems
extraneous to me.
2019-11-09 15:07:39 +08:00
Haoqun Jiang
1124b62bdd fix: vue add should not throw if plugin has no generator
The bug was introduced in #2337.
2019-11-08 23:25:29 +08:00
Haoqun Jiang
30f72420e2 fix: vue add should not crash when executed under Yarn PnP
TODO: should fix `loadModule` in PnP environment
2019-11-08 23:25:13 +08:00
Roman Seidelsohn
26c48992ef fix(lib): replace "url" module with simple string split (close #4667) (#4809)
* fix(lib): replace "url" module with simple string split (close #4667)

Fixes issue #4667 by implementing the proposal https://github.com/vuejs/vue-cli/issues/4667#issuecomment-548464520
Also gets rid of a node module by using simpler code for removing eventual GET parameters

* Update packages/@vue/cli-service/lib/commands/build/formatStats.js

Co-Authored-By: Haoqun Jiang <haoqunjiang@gmail.com>
2019-11-08 18:17:58 +08:00
gregoiredx
d4bd9c644f use gitlab CI env variable for project name (#4716)
* use gitlab CI env variable for project name

* add explanation on CI_PROJECT_NAME env var

* docs: gzip support in GitLab Pages
2019-11-07 07:17:48 +02:00
Haoqun Jiang
1e663df1ca feat(GeneratorAPI): accept multiple arguments for the resolve method (#4715)
* feat(GeneratorAPI): accept multiple arguments for the resolve method

To make its signature conform to  the standard `path.resolve`, avoid
confusions.

There's already a bug in the downstream plugin that was caused by such
confusion: a742953b83/generator/index.js (L163-L171)

* docs: update descriptions of the `resolve` api [ci skip]
2019-11-07 10:29:06 +08:00
Haoqun Jiang
9ebc2ab3e9 feat: enable postcss+autoprefixer by default internally, reducing boilerplate (#4798)
This also fixes the issue with Yarn PnP that requires `autoprefixer` to
be explicitly listed in the user's project dependency.
2019-11-07 09:28:44 +08:00
Haoqun Jiang
e1d156ff85 fix: add sourceType: 'unambiguous' to babel preset (#4797)
fixes #4773
2019-11-07 09:27:53 +08:00
Yoshiaki Itakura
77384eced8 fix docs css.loaderOptions.css.localsConvention (#4803)
Moved 'localsConvention' to the same level as 'modules'.
2019-11-06 22:14:28 +08:00
Haoqun Jiang
759d77fd5c refactor: use babel overrides to transpile babel runtime helpers (#4777)
* refactor: use babel overrides to transpile babel runtime helpers

As recommended in babel/babel#9903.
Get rid of the module-resolver plugin, may fix #3928.
Seems to have fixed #4742 as well.

There may be a small breaking change: as we now use `excludes` & `includes`, babel requires `filename` option to be present (introduced in https://github.com/babel/babel/pull/10181/files). So users who call `babel.transformSync` directly may encounter an error.

However, as we explicitly stated that this preset is only used for Vue CLI internally, I don't expect too many such use cases there. And the error messages are clear enough.
Considering the benefits that this PR brings, I think it's an acceptable tradeoff.


 test: update tests for babel

* test: fix windows tests

* test: remove unused variables

* fix: fix scope package paths on Windows

* test: wait some time in router tests in case dom hasn't updated in time
2019-11-04 16:29:06 +08:00
Maël Nison
0a5c79be52 Enforces require.resolve for loaders (#4532)
* Enforces require.resolve for loaders

* Updates the lockfile

* Fixes more things

* Adds an extra check

* test(loaders): fix the tests

* style(cli): fix the linting

* style(cli): fix the linting (on windows)

* Update package.json

* Updates the lockfile

* chore: sync dependency versions

* chore: sync dependency versions

* chore: don't introduce unnecessary changes in yarn.lock

* extraneous space
2019-11-04 16:26:33 +08:00
Haoqun Jiang
2565c5d07e feat: support binary mirrors for taobao registry (#4767)
* feat: support binary mirrors for taobao registry

fixes issues like #4718

* fix: only install cypress 3, for now

* fix: do not override user defined `CYPRESS_INSTALL_BINARY` env
2019-11-01 23:39:56 +08:00
Guillaume Chau
698c0d63a7 docs: add 'Browse plugins' link to header (#4760) 2019-11-01 16:53:25 +08:00
arnaudvalle
6347fd2660 docs: specify default entryFile value for serve command (#4758) 2019-10-26 10:54:30 +03:00
Sean G. Wright
ae111393f2 Update migrating-from-v3 README typo (#4746)
Changed `--sav-dev` to `--save-dev`
2019-10-25 16:04:27 +08:00
Haoqun Jiang
17925c6ae6 v4.0.5 v4.0.5 2019-10-22 19:53:34 +08:00
Haoqun Jiang
964fad5968 fix: should tolerate cli version check error (#4741)
* fix: should tolerate cli version check error

* fix: add the error message after the DEBUG indicator
2019-10-22 19:08:32 +08:00
Haoqun Jiang
31df36d85f fix(eslint): autofix code style after scaffolding on older versions of cli (#4740) 2019-10-22 16:47:36 +08:00
Haoqun Jiang
8093630c08 fix(ui): "add router" button should not require prompt in terminal (#4739) 2019-10-22 15:38:41 +08:00
Haoqun Jiang
6904e3bbf1 chore: lockfile maintenance 2019-10-21 20:53:20 +08:00
Haoqun Jiang
b35a8d3e1e fix(ui): fix latest version check without yarn (#4724)
Fixes #4710
2019-10-21 20:29:25 +08:00
Mulia Nasution
2cdb50c802 Fix indentation of --inline-vue description (#4733) 2019-10-21 20:13:48 +08:00
Haoqun Jiang
86c500fd4b chore: dependency maintenance (#4734)
* chore: dependency maintenance

* Revert "test: replace `waitForFunction` with `waitForXPath`"

This reverts commit b2848aeeaf.
2019-10-21 20:13:21 +08:00
Haoqun Jiang
96890b526f fix: do not install core plugins that have major version bumps (#4720)
* fix: fix version check for core plugins in v4

* fix: fix the error when the diff result is null
2019-10-21 17:20:23 +08:00