Cédric Exbrayat
7c19dd61e2
fix: do not generate empty file when use ts without router ( #4374 )
...
(cherry picked from commit 52bae8e14a )
2019-08-02 18:48:24 +08:00
李枨煊
bb2e3e7217
fix: fix stats display when chunkFilename contains query string ( #4359 )
...
(cherry picked from commit 42ecd08d35 )
2019-08-02 18:47:22 +08:00
Domenico Gemoli
fb738a2921
docs: replacing nightwatch CLI options URL with proper documentation ( #4364 )
...
(cherry picked from commit fd4573aadf )
2019-08-02 18:46:34 +08:00
yiliang
b9a0e46ef9
chore(cli-service): word spelling in comments ( #4367 )
...
(cherry picked from commit a2856a750c )
2019-08-02 18:45:27 +08:00
Haoqun Jiang
b12f7299c7
test: add test for #4347
...
(cherry picked from commit f69a80664f )
2019-08-02 18:42:45 +08:00
Boris K
00538f70da
feat: add --port argument to 'vue serve' command ( #4342 )
...
(cherry picked from commit 59d3e74f33 )
2019-08-02 18:42:20 +08:00
Haoqun Jiang
878c337feb
fix: fix typo in typescript generator, convertAllFiles -> convertJsToTs ( #4346 )
...
fixes https://github.com/vuejs/vue-cli/issues/2676#issuecomment-514163315
(cherry picked from commit 8b7af389d1 )
2019-08-02 18:42:06 +08:00
李瑞丰
66c410b31a
fix(eslint-generator): add ts file check to lint-staged ( #4347 )
...
fix #3947
(cherry picked from commit 80c20db703 )
2019-08-02 18:41:47 +08:00
Haoqun Jiang
470c94ee1a
fix: use yarn --version to detect yarn ( #4336 )
...
- We never referred to `yarnpkg` anywhere else in the codebase
- For the rare case that `yarn` binary is overridden by Hadoop YARN,
`yarn --version` will throw (it only supports `yarn version`), therefore
it won't pass this check.
Fixes #3941 .
Closes #3942 .
(cherry picked from commit 448dbdb4f3 )
2019-08-02 18:41:34 +08:00
Haoqun Jiang
4e586c0e37
fix: require parent template after when condition evaluated as truthy ( #4330 )
...
fixes #4291
(cherry picked from commit a1c88edce7 )
2019-08-02 18:38:26 +08:00
Haoqun Jiang
c9d5c6f422
feat(eslint-generator): upgrade @vue/eslint-config-prettier to v5.0.0 ( #4329 )
...
This only affects newly generated projects so it's not considered a
breaking change.
Fixes #4310
(cherry picked from commit 6207dd97c3 )
2019-08-02 18:38:02 +08:00
Haoqun Jiang
25566b38de
v3.9.3
2019-07-18 20:10:45 +08:00
Binwei Fang
6324444a36
fix(cli-test-utils): fix initGit option ( #4224 )
...
fixes #4223
(cherry picked from commit 16e379d79d )
2019-07-18 17:02:39 +08:00
shadow-light
745935a3b3
fix: indexPath should also affect non-production builds ( #4057 )
...
fixes #2327
fixes #4247
(cherry picked from commit 9faddce63f )
2019-07-18 17:01:40 +08:00
Eric Mastro
4267b542af
fix(@vue/cli-service): Update lodash.defaultsdeep ( #4273 )
...
Update `lodash.defaultsdeep` to version `^4.6.1`.
This is causing a high severity vulnerability in our repo.
Fixed in https://github.com/lodash/lodash/pull/4336 .
2019-07-11 18:21:34 +08:00
Haoqun Jiang
eda08fb2a9
v3.9.2
2019-07-06 19:36:44 +08:00
Haoqun Jiang
01f7f278fa
fix: fix eslint path resolution in vue serve ( #4246 )
...
fixes #4237
(cherry picked from commit 0ba505ca02 )
2019-07-06 19:03:47 +08:00
Min ho Kim
fc6e0b70ef
chore: fix typos ( #4241 )
...
(cherry picked from commit c0aa2bb310 )
2019-07-06 18:44:16 +08:00
Haoqun Jiang
aafc83ff16
test: fix cliServiceVersion for generator unit tests
...
(cherry picked from commit 9eadfe1eba )
2019-07-06 18:43:16 +08:00
Haoqun Jiang
ea91df2d70
v3.9.1
2019-07-04 09:02:18 +08:00
Haoqun Jiang
86830acd17
fix: use module directory instead of entry file for eslintPath ( #4233 )
...
fixes #4231
(cherry picked from commit 992fe0790d )
2019-07-04 09:00:44 +08:00
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