Pavan Kumar Sunkara
246ae678cb
feat!: make router a separate plugin ( #4196 )
...
* refactor: move router to its own plugin
* refactor: rename routerHistoryMode option to historyMode
* test: add @vue/cli-plugin-router tests
* feat: change src/router.js for most common use cases
* fix: fix cli-ui tests
* docs: Remove router root option from docs
* fix: add support for legacy router option
2019-07-05 23:21:29 +08:00
Haoqun Jiang
9eadfe1eba
test: fix cliServiceVersion for generator unit tests
2019-07-05 19:47:34 +08:00
Haoqun Jiang
300d2aa2d4
v4.0.0-alpha.3
2019-07-04 09:08:42 +08:00
Haoqun Jiang
2386673e86
chore: pre release sync
2019-07-04 09:06:29 +08:00
Haoqun Jiang
992fe0790d
fix: use module directory instead of entry file for eslintPath ( #4233 )
...
fixes #4231
2019-07-04 08:58:34 +08:00
Haoqun Jiang
0c2ebc4ae2
v4.0.0-alpha.2
2019-07-03 15:42:06 +08:00
Haoqun Jiang
1939dfea9d
chore: pre release sync
2019-07-03 15:41:08 +08:00
Natalia Tepluhina
38debb4d14
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.
2019-07-03 10:49:15 +08:00
Cédric Exbrayat
35e02a235b
fix: remove debugger ( #4222 )
...
A `debugger` instruction was left after https://github.com/vuejs/vue-cli/pull/4090
2019-07-03 09:47:44 +08:00
Haoqun Jiang
867c6eaf2c
feat!: redesigns vue upgrade, supports code migration ( #4090 )
2019-07-02 16:23:34 +08:00
Haoqun Jiang
273d05fe08
style: fix lint errors
2019-06-28 22:15:09 +08:00
James George
934746da7f
chore: minor refactor ( #4205 )
...
eliminate redundancy
2019-06-28 21:58:34 +08:00
Haoqun Jiang
5460ca498f
feat: add transformScript to GeneratorAPI ( #4188 )
2019-06-26 18:25:47 +08:00
Haoqun Jiang
77092b2223
feat: implement version-related APIs for GeneratorAPI ( #4000 )
...
closes #2336
2019-06-26 18:25:21 +08:00
Haoqun Jiang
af25ef75ce
feat: make injectImports & injectRootOptions work for .vue files ( #4168 )
...
closes #1702
2019-06-21 17:20:53 +08:00
Leon Liu
76e7c38fc8
fix: prefer devServer.public as the custom url for browser to open ( #4169 )
...
fixes #3747
2019-06-19 19:23:44 +08:00
Haoqun Jiang
271bf395df
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.
2019-06-18 23:28:26 +08:00
Haoqun Jiang
8283f46d0b
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.
2019-06-15 13:23:05 +08:00
zrh122
570588ffb1
chore: upgrade default-gateway to 5.0.2 ( #4150 )
...
fixes #4144
2019-06-15 12:39:54 +08:00
Thorsten Lünborg
cb47a28c10
fix: airbnb lint should not warn on vuex state mutation ( #3961 )
...
close #3954
2019-06-13 10:12:42 +08:00
Haoqun Jiang
f3d2c1c133
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
2019-06-04 23:57:31 +08:00
Haoqun Jiang
78e1c4cf63
fix: fix resolve project local plugin's file path ( #4095 )
...
Thanks to @SneakyMax
See https://github.com/vuejs/vue-cli/issues/4014#issuecomment-497993827
2019-06-04 23:56:55 +08:00
Sanapoint 顼轩
47d56e998d
fix(cli-service): avoid opening browser twice
...
fixes #4079
2019-05-30 17:01:27 +08:00
Haoqun Jiang
82dbbeb07a
docs: add description of babel plugin usage in TS plugin prompt ( #4046 )
...
closes #3206
2019-05-25 23:00:55 +08:00
Haoqun Jiang
8fa6fa694a
v4.0.0-alpha.1
2019-05-25 17:48:40 +08:00
Haoqun Jiang
7bd8796227
chore: pre release sync
2019-05-25 17:46:04 +08:00
Haoqun Jiang
ac8b2b3bd1
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.
2019-05-25 16:50:10 +08:00
Haoqun Jiang
2ce1fc0982
chore: update deps
2019-05-25 14:34:43 +08:00
Luiz Victor Linhares Rocha
49725b4c04
feat(HtmlPwaPlugin): adds 'manifestCrossorigin' option ( #3939 )
...
close #3933
2019-05-25 13:58:54 +08:00
Haoqun Jiang
0c6085a0c8
fix: add missing dependencies to @vue/cli-upgrade ( #4036 )
...
fixes #3417
fixes #3222
2019-05-25 13:56:47 +08:00
Haoqun Jiang
3648a51a91
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.
2019-05-25 13:32:32 +08:00
Haoqun Jiang
88cf38b9a1
chore: update vue-template-compiler version
2019-05-24 16:53:30 +08:00
Haoqun Jiang
649b564feb
chore: update isbinaryfile to 4.x
2019-05-22 16:52:16 +08:00
Haoqun Jiang
f078c46fc3
chore(openBrowser): sync with upstream
2019-05-22 16:34:09 +08:00
Haoqun Jiang
43bdc333f4
chore: revert fs-extra to 7.x to fix incompatibilities with graceful-fs
...
See: https://github.com/jprichardson/node-fs-extra/issues/687
2019-05-21 23:54:51 +08:00
Haoqun Jiang
38c74c1542
chore: fix lint errors
2019-05-21 23:26:34 +08:00
Haoqun Jiang
b13ab797af
chore: update dependencies
2019-05-21 22:48:23 +08:00
Haoqun Jiang
d81d57beec
fix: fix dev mode compatibility with workers ( #4034 )
...
fixes #3539
2019-05-21 22:19:57 +08:00
Haoqun Jiang
d872cc0f2e
chore: bump fibers version to be compatible with node v12
2019-05-20 00:36:58 +08:00
Haoqun Jiang
80028755f8
fix: update the css-loader runtime path for css-loader v2 ( #4025 )
2019-05-19 21:04:15 +08:00
Guillaume Chau
3f9838b649
feat: prompt editor ( #3929 )
...
* feat(Prompt): editor
* docs(ui dev): update supported inquirer types
2019-05-18 13:32:48 +02:00
Francisco
edcce6a311
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
2019-05-18 16:55:56 +08:00
Payton Burdette
fa7c1aa02d
chore: upgrade webpack-dev-server to 3.4.1 ( #4020 )
...
fixes #4016
2019-05-18 16:45:28 +08:00
0xflotus
e9d4c4902c
docs: fix typo of transformIgnorePatterns ( #3927 ) [ci skip]
2019-05-17 17:02:06 +08:00
achretien
59b106ad04
feat: enable hmr for 'mini-css-extract-plugin' in dev ( #4011 )
2019-05-17 16:33:23 +08:00
Haoqun Jiang
2e417b01d2
refactor: replace recast with jscodeshift for injectImportsAndOptions ( #4003 )
...
fixes #3309
2019-05-17 14:58:31 +08:00
Guillaume Chau
abf30c4238
Merge branch 'v3' into dev
2019-05-16 16:04:39 +02:00
Guillaume Chau
3eabfad234
fix(task): ENV_VAR=value broken in commands
2019-05-16 15:41:35 +02:00
Haoqun Jiang
aeee7fac01
fix(cli-ui): update dependencies and fix peer dependency warnings ( #3992 )
2019-05-16 19:04:40 +08:00
Haoqun Jiang
15b5c8d4d7
chore!: change default value of lintOnSave option ( #3975 )
...
BREAKING CHANGE:
See https://github.com/vuejs/vue-cli/pull/3572
2019-05-14 11:20:20 +08:00