Commit Graph

195 Commits

Author SHA1 Message Date
Haoqun Jiang
465986923a v4.3.0 2020-04-01 15:59:32 +08:00
Haoqun Jiang
ee05918486 chore: dependency maintenance 2020-04-01 14:27:44 +08:00
Haoqun Jiang
0380f226b9 v4.2.3 2020-02-27 22:31:36 +08:00
Haoqun Jiang
94da5243be v4.2.2 2020-02-07 19:10:35 +08:00
Haoqun Jiang
8b951f81d5 v4.2.1 2020-02-07 18:09:45 +08:00
Haoqun Jiang
079a451f18 v4.2.0 2020-02-07 15:44:52 +08:00
Haoqun Jiang
f5f4de0aa3 feat(GeneratorAPI): allow passing options to api.extendPackage (#5149)
Currently, 3 options are implemented:

- options.prune (defaults to `false`) - Remove null or undefined
fields from the object after merging.
- options.merge (defaults to `true`) deep-merge nested fields, note
that dependency fields are always deep merged regardless of this option.
- options.warnIncompatibleVersions (defaults to `true`) Output warning
if two dependency version ranges don't intersect.

Closes #4779
2020-02-06 14:28:00 +08:00
Haoqun Jiang
c8cecffedb refactor: remove usage of deprecated babel functions, preparing for babel 8 (#5133)
* refactor: use babel.loadPartialConfigSync (added in babel 7.8)

As planned in https://github.com/babel/babel/issues/10746,
in babel 8 the old `loadPartialConfig` can't be used synchronously.

* refactor: remove dependence on internal babel files, preparing for babel 8

See
https://github.com/babel/babel/issues/10746
https://github.com/babel/babel/pull/10899
2020-02-03 19:52:42 +08:00
Haoqun Jiang
8028d9fff7 chore: dependency maintenance 2020-02-02 23:08:35 +08:00
Haoqun Jiang
a468abfa6c feat: implement a migrator to upgrade to eslint 6 (#5085)
* refactor: extract deps & config logic to separate files

* feat: implement a migrator to upgrade to eslint 6

* fix: add required deps for eslint v4

* test: move migrator tests to each standalone plugins

* refactor: use spread operator instead of Object.assign
2020-01-27 14:00:16 +08:00
Haoqun Jiang
3b7227d544 v4.1.2 2019-12-28 20:54:27 +08:00
Haoqun Jiang
c7961cd5af fix: do not throw when babel config contains ignore/include/exclude (#4924)
fixes #4923
2019-12-06 15:23:44 +08:00
Haoqun Jiang
3873d02382 chore: dependency maintenance 2019-11-29 15:15:17 +08:00
Haoqun Jiang
2ddcc65dfe v4.1.1 2019-11-27 23:14:15 +08:00
Haoqun Jiang
d316a18789 v4.1.0 2019-11-27 14:58:46 +08:00
Haoqun Jiang
84aed8ef10 chore: dependency maintenance 2019-11-27 00:34:22 +08:00
Haoqun Jiang
1c41371a42 v4.1.0-beta.0 2019-11-09 21:49:23 +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
17925c6ae6 v4.0.5 2019-10-22 19:53:34 +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
d82a2bbe26 v4.0.4 2019-10-18 15:48:03 +08:00
Haoqun Jiang
aa29fd1526 v4.0.3 2019-10-17 15:59:03 +08:00
Haoqun Jiang
8b08c73e8e v4.0.2 2019-10-17 10:22:54 +08:00
Haoqun Jiang
81f84577e4 v4.0.0 2019-10-16 19:19:06 +08:00
Nathaniel Blackburn
b65b24e8e5 fix: correct typo in babel migrator (#4683) 2019-10-16 11:16:03 +08:00
Haoqun Jiang
5cce80c2f7 v4.0.0-rc.8 2019-10-11 16:11:02 +08:00
Haoqun Jiang
58592fed4e v4.0.0-rc.7 2019-10-01 23:35:39 +08:00
Haoqun Jiang
b823ca84d3 v4.0.0-rc.6 2019-09-30 20:27:57 +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 2019-09-30 18:39:52 +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
14ff94da34 fix: force lines to be ended with lf, fix windows tests 2019-09-29 23:09:25 +08:00
Haoqun Jiang
c42acfcca3 feat(babel): transform preset names in the plugin migrator (#4629) 2019-09-29 22:13:31 +08:00
Haoqun Jiang
21257378d7 v4.0.0-rc.4 2019-09-25 12:31:11 +08:00
Haoqun Jiang
863d6bbfbf v4.0.0-rc.3 2019-09-10 00:05:39 +08:00
Haoqun Jiang
d37d68afba v4.0.0-rc.2 2019-09-08 11:52:59 +08:00
Haoqun Jiang
df0f813703 v4.0.0-rc.1 2019-09-04 16:19:42 +08:00
Maël Nison
be0cb95246 fix(cli-plugin-babel): properly exports the babel preset (#4533) 2019-09-02 18:24:14 +08:00
Haoqun Jiang
91024a7843 v4.0.0-rc.0 2019-08-21 17:48:28 +08:00
Daan Roet
428d1720fe feat: upgrade webpack (#4253) 2019-08-12 21:58:58 +08:00
Haoqun Jiang
f9a9880d93 v4.0.0-beta.3 2019-08-08 11:10:03 +08:00
Haoqun Jiang
7a399ef7e2 v4.0.0-beta.2 2019-07-30 00:22:38 +08:00
Haoqun Jiang
fc3e0a30b5 chore: plugins should list @vue/cli-service in peerDependencies (#4365) 2019-07-29 10:45:12 +08:00
Haoqun Jiang
575349982b v4.0.0-beta.1 2019-07-25 10:40:03 +08:00
Haoqun Jiang
00996ba7cf v4.0.0-beta.0 2019-07-22 22:23:01 +08:00
Haoqun Jiang
615ae0f5b7 v4.0.0-alpha.5 2019-07-14 23:12:42 +08:00
Haoqun Jiang
bd82649a64 v4.0.0-alpha.4 2019-07-06 19:51:01 +08:00
Haoqun Jiang
8b8bb99316 feat: allow omitting scope prefix for official plugins on vue add (#4219) 2019-07-06 17:09:38 +08:00
Haoqun Jiang
300d2aa2d4 v4.0.0-alpha.3 2019-07-04 09:08:42 +08:00