1913 Commits

Author SHA1 Message Date
Haoqun Jiang
f276598ece v3.9.0 2019-07-03 16:20:20 +08:00
Haoqun Jiang
38136aceef chore: pre release sync 2019-07-03 16:16:33 +08:00
Natalia Tepluhina
51e63cf7ae feat(typescript): add convertJsToTs and allowJs options (#4212)
Close #2676

At the moment when we run `vue add`, Vue CLI renames all `*.js` files to `*.ts`. This PR introduces two new prompts on `@vue/cli-plugin-typescript` late-invokation:

1. `convertJsToTs`: if set to `true`, renames all `.js` files to `.ts`. Otherwise renames only `main.js` -> `main.ts`;
2. `allowJs`: if set to `true`, adds `allowJs: true` to TSConfig compiler options.

(cherry picked from commit 38debb4d14)
2019-07-03 16:13:52 +08:00
Haoqun Jiang
a60612edf3 style: fix lint errors
(cherry picked from commit 273d05fe08)
2019-07-03 16:13:29 +08:00
James George
97fe2c6796 chore: minor refactor (#4205)
eliminate redundancy

(cherry picked from commit 934746da7f)
2019-07-03 16:13:16 +08:00
Haoqun Jiang
113eb65e6d feat: add transformScript to GeneratorAPI (#4188)
(cherry picked from commit 5460ca498f)
2019-07-03 16:12:49 +08:00
Haoqun Jiang
818e5ddccd feat: implement version-related APIs for GeneratorAPI (#4000)
closes #2336

(cherry picked from commit 77092b2223)
2019-07-03 16:12:28 +08:00
Haoqun Jiang
469c73561d feat: make injectImports & injectRootOptions work for .vue files (#4168)
closes #1702

(cherry picked from commit af25ef75ce)
2019-06-24 16:51:46 +08:00
Leon Liu
082440752d fix: prefer devServer.public as the custom url for browser to open (#4169)
fixes #3747

(cherry picked from commit 76e7c38fc8)
2019-06-24 16:51:26 +08:00
Haoqun Jiang
1bc8006790 chore: move yorkie from cli-service to plugin-eslint & plugin-typescript (#4153)
It is because yorkie is not used anywhere in @vue/cli-service, but only
included for the `lintOn: 'commit'` feature of eslint & typescript
plugin.

Also, a lot of global installation issues are caused by the yorkie
postinstall script. Moving it out of the dependency chain of `@vue/cli`
mitigates such issues.

(cherry picked from commit 271bf395df)
2019-06-24 16:50:58 +08:00
Haoqun Jiang
48f2dcdf2b v3.8.4 2019-06-15 14:23:29 +08:00
Haoqun Jiang
ff7218b6a8 fix: fix config merging during vue invoke in Node.js v12 (#4148)
The root cause here is the same as #4095
The failing `loadModule` call will return `undefined` for a js config
read operation, which later caused config being overwritten.

(cherry picked from commit 8283f46d0b)
2019-06-15 14:19:03 +08:00
zrh122
ee9610b6b1 chore: upgrade default-gateway to 5.0.2 (#4150)
fixes #4144

(cherry picked from commit 570588ffb1)
2019-06-15 14:18:50 +08:00
Haoqun Jiang
e84de1a0e8 v3.8.3 2019-06-13 10:44:46 +08:00
Haoqun Jiang
41b4d3799f fix: display correct address when multiple network adapters present (#4083)
fixes #3266

see https://github.com/vuejs/vue-cli/issues/3266#issuecomment-493487325

Thanks to @shenliangv

(cherry picked from commit f3d2c1c133)
2019-06-13 10:32:17 +08:00
Haoqun Jiang
bcc53db2e0 fix: fix resolve project local plugin's file path (#4095)
Thanks to @SneakyMax
See https://github.com/vuejs/vue-cli/issues/4014#issuecomment-497993827

(cherry picked from commit 78e1c4cf63)
2019-06-13 10:30:47 +08:00
Sanapoint 顼轩
79e4ba4fb3 fix(cli-service): avoid opening browser twice
fixes #4079

(cherry picked from commit 47d56e998d)
2019-06-13 10:30:08 +08:00
Guillaume Chau
1ff22d2a51 fix(task): keep double quotes in script command 2019-05-27 11:44:23 +02:00
Haoqun Jiang
10ec5f5e4a v3.8.2 2019-05-26 00:16:52 +08:00
Haoqun Jiang
ebcc67bc50 v3.8.1 2019-05-26 00:09:49 +08:00
Haoqun Jiang
19d50b9ea5 Revert "chore: prefer .tsx? files over .jsx? file extensions (#3909)"
This reverts commit c3b6519a11.
2019-05-26 00:08:52 +08:00
Haoqun Jiang
d6ce9c2fe9 v3.8.0 2019-05-25 23:19:23 +08:00
Haoqun Jiang
6d1706ea6f chore: pre release sync 2019-05-25 23:13:00 +08:00
Haoqun Jiang
1ba4b9ccc8 docs: add description of babel plugin usage in TS plugin prompt (#4046)
closes #3206

(cherry picked from commit 82dbbeb07a)
2019-05-25 23:04:56 +08:00
Luiz Victor Linhares Rocha
6996df3d5e feat(HtmlPwaPlugin): adds 'manifestCrossorigin' option (#3939)
close #3933

(cherry picked from commit 49725b4c04)
2019-05-25 22:57:52 +08:00
Haoqun Jiang
7b8a06fae6 chore: remove gitHead field from package.json
It was introduced only due to a failed `lerna publish`
2019-05-25 22:50:33 +08:00
Haoqun Jiang
bde9b3d4b5 fix: add apollo-client as dependencies, fix peer dep warning 2019-05-25 22:25:26 +08:00
Haoqun Jiang
cb6ca3870f fix: add default inMemoryCacheOptions
vue-cli-plugin-apollo now defaults it to null, which won't trigger
default parameter fallback, so this triggers another bug in
apollo-cache-inmemory 1.6.0 787be61441/packages/apollo-cache-inmemory/src/inMemoryCache.ts (L136)
causing "Cannot read property 'freezeResults' of null" error.

(cherry picked from commit ac8b2b3bd1)
2019-05-25 22:15:19 +08:00
Haoqun Jiang
1b51835970 test: replace http-server with serve to create a test server (#4056)
Fixes Windows compatibility caused by https://github.com/indexzero/http-server/issues/525

And, serve is better maintained than http-server or ecstatic.

(cherry picked from commit 3648a51a91)
2019-05-25 22:12:31 +08:00
Haoqun Jiang
7597c60f57 chore: update vue-template-compiler version
(cherry picked from commit 88cf38b9a1)
2019-05-25 22:12:19 +08:00
Haoqun Jiang
04148dd3ae chore: update isbinaryfile to 4.x
(cherry picked from commit 649b564feb)
2019-05-25 22:11:44 +08:00
Haoqun Jiang
78bc1dbecf chore(openBrowser): sync with upstream
(cherry picked from commit f078c46fc3)
2019-05-25 22:09:08 +08:00
Haoqun Jiang
6f085d36a4 fix: fix dev mode compatibility with workers (#4034)
fixes #3539

(cherry picked from commit d81d57beec)
2019-05-25 22:08:36 +08:00
Guillaume Chau
dbac8171b9 feat: prompt editor (#3929)
* feat(Prompt): editor

* docs(ui dev): update supported inquirer types

(cherry picked from commit 3f9838b649)
2019-05-25 22:08:03 +08:00
Francisco
204e1fcf6b chore(dev-server): set clientLogLevel option to silent (#4018)
The `none` option is deprecated and will be removed in the next major https://github.com/webpack/webpack-dev-server/pull/1901/files

(cherry picked from commit edcce6a311)
2019-05-25 22:07:03 +08:00
Payton Burdette
70281be0a9 chore: upgrade webpack-dev-server to 3.4.1 (#4020)
fixes #4016

(cherry picked from commit fa7c1aa02d)
2019-05-25 20:46:31 +08:00
0xflotus
5c95ee9539 docs: fix typo of transformIgnorePatterns (#3927) [ci skip]
(cherry picked from commit e9d4c4902c)
2019-05-25 20:45:38 +08:00
achretien
c50969fcbe feat: enable hmr for 'mini-css-extract-plugin' in dev (#4011)
(cherry picked from commit 59b106ad04)
2019-05-25 20:45:14 +08:00
Haoqun Jiang
2a151b0e18 refactor: replace recast with jscodeshift for injectImportsAndOptions (#4003)
fixes #3309

(cherry picked from commit 2e417b01d2)
2019-05-25 20:44:57 +08:00
Haoqun Jiang
844f75b6ab fix(cli-ui): update dependencies and fix peer dependency warnings (#3992)
(cherry picked from commit aeee7fac01)
2019-05-25 20:44:28 +08:00
Haoqun Jiang
fe4a57141a chore: remove accidentally checked-in package-lock.json
(cherry picked from commit 34fcc59b76)
2019-05-25 20:44:13 +08:00
James George
a893e59282 feat(cli): suggest matching commands if the user mistypes (#3860)
(cherry picked from commit ab18cd5952)
2019-05-25 20:44:13 +08:00
Thorsten Lünborg
fc0fe3a198 feat(babel-preset-app): Bump jsx dependency version (#3978)
@vue/babel-preset-jsx 1.0.0 has been released. It doesn't have any breaking changes from the latest beta that we included so far.

(cherry picked from commit 65a35db0ac)
2019-05-25 20:42:23 +08:00
maple
eac03255c9 fix: detectLanguage function (#3966)
(cherry picked from commit 206803cbef)
2019-05-25 20:41:07 +08:00
Haoqun Jiang
7ce7a3ae50 chore: remove extraneous log statement
(cherry picked from commit 341286b708)
2019-05-25 20:40:42 +08:00
Haoqun Jiang
dd8a96d1b6 chore: joi -> @hapi/joi
(cherry picked from commit f99645cfcd)
2019-05-25 20:40:29 +08:00
Thorsten Lünborg
c3b6519a11 chore: prefer .tsx? files over .jsx? file extensions (#3909)
close #3898

(cherry picked from commit 0c635afb1b)
2019-05-25 20:40:17 +08:00
Guillaume Chau
e56d510b39 feat: rename project (#3955)
* feat: project rename

* chore: use a pen icon for rename button
2019-05-16 16:05:11 +02:00
Guillaume Chau
3eabfad234 fix(task): ENV_VAR=value broken in commands 2019-05-16 15:41:35 +02:00
Haoqun Jiang
0dbfa5a0bf v3.7.0 2019-04-28 14:21:35 +08:00