Commit Graph

1998 Commits

Author SHA1 Message Date
Haoqun Jiang f69a80664f test: add test for #4347 2019-07-25 09:59:18 +08:00
Boris K 59d3e74f33 feat: add --port argument to 'vue serve' command (#4342) 2019-07-25 09:57:00 +08:00
Haoqun Jiang 2d59c9676c fix: fix css modules configuration in css-loader v3 (#4345)
fixes #4337
2019-07-25 09:56:04 +08:00
Haoqun Jiang 8b7af389d1 fix: fix typo in typescript generator, convertAllFiles -> convertJsToTs (#4346)
fixes https://github.com/vuejs/vue-cli/issues/2676#issuecomment-514163315
2019-07-25 09:55:34 +08:00
李瑞丰 80c20db703 fix(eslint-generator): add ts file check to lint-staged (#4347)
fix #3947
2019-07-25 09:54:47 +08:00
Haoqun Jiang 448dbdb4f3 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.
2019-07-23 20:35:05 +08:00
Haoqun Jiang 00996ba7cf v4.0.0-beta.0 2019-07-22 22:23:01 +08:00
Haoqun Jiang 6cb28f5911 chore: pre release sync 2019-07-22 22:21:24 +08:00
Haoqun Jiang 45cad0c7e3 fix: when executing multiple actions, only check git status once (#4332) 2019-07-22 22:19:10 +08:00
Haoqun Jiang 37e2b44d17 chore!: update versions of underlying webpack loaders (#4331)
BREAKING CHANGE:
- The minimum required nodejs version is 8.9.0
- For css-loader breaking changes, see https://github.com/webpack-contrib/css-loader/releases/tag/v3.0.0
- For url-loader breaking changes, see https://github.com/webpack-contrib/url-loader/releases/tag/v2.0.0
2019-07-22 21:33:55 +08:00
Haoqun Jiang a1c88edce7 fix: require parent template after when condition evaluated as truthy (#4330)
fixes #4291
2019-07-22 20:58:06 +08:00
Haoqun Jiang 6207dd97c3 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
2019-07-22 20:45:52 +08:00
Mewes Kochheim de9748a5a5 fix: do not introduce extra level of directory when building lib for scope packages (#4320)
This fixes references to static assets in the bundled script.

Fixes #4311
2019-07-22 19:47:22 +08:00
Haoqun Jiang e2e3469a18 chore!: ensure consistent directory structure for all modes (#4323)
BREAKING CHANGE:
Changing directory strcuture, though now becoming more intuitive, may
still break users' workflows, so it's considered a breaking change.

Fixes #4215.
Fixes #3767.
Fixes #4234
2019-07-21 20:00:31 +08:00
Pavan Kumar Sunkara 544faee81e feat: more flexible hook system for generators (#2337) 2019-07-21 19:59:18 +08:00
Binwei Fang 16e379d79d fix(cli-test-utils): fix initGit option (#4224)
fixes #4223
2019-07-18 16:40:12 +08:00
Haoqun Jiang 3dd3774346 chore!: move dev configs into serve command (#4302)
BREAKING CHANGE:
These configs are only meaningful when used with a running dev
server.
Technically, it is a breaking change.
For example, this breaks use cases in which a user runs their own dev
server instead of calling `vue-cli-service serve`.
2019-07-18 16:36:53 +08:00
Haoqun Jiang a1f13c7a05 fixup! chore: deprecate tslint (#4289) 2019-07-17 11:00:58 +08:00
Haoqun Jiang debc3f19b2 fix: fix latest version check when current version is a prerelease (#4295) 2019-07-16 23:31:00 +08:00
Haoqun Jiang 44325fa16e chore: fix prompt message 2019-07-15 21:49:30 +08:00
Haoqun Jiang 53b3daf97f chore: deprecate tslint (#4289) 2019-07-15 21:48:51 +08:00
Haoqun Jiang 615ae0f5b7 v4.0.0-alpha.5 2019-07-14 23:12:42 +08:00
Haoqun Jiang 7dbf3cefc0 chore: pre release sync 2019-07-14 23:09:36 +08:00
shadow-light 9faddce63f fix: indexPath should also affect non-production builds (#4057)
fixes #2327
fixes #4247
2019-07-14 22:39:31 +08:00
shadow-light 52ae1c8a9b fix!: make webpack use values consistent (#4230)
The use key is `pug-plain` despite a similar item above it using the key `pug-plain-loader`. This just makes them consistent.
2019-07-14 22:22:59 +08:00
Haoqun Jiang 4af27247cc refactor: unify package manager related logic (#4256) 2019-07-13 00:29:39 +08:00
Haoqun Jiang 7fc0f842e8 feat!: confirm for uncommitted changes before add/invoke/upgrade (#4275) 2019-07-12 20:04:08 +08:00
Eric Mastro ddfdd1af24 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.

(cherry picked from commit 4267b542af)
2019-07-11 18:57:52 +08:00
Haoqun Jiang 3289e1065c workflow: move eslint-config-* packages to standalone repos for easier maintenance
Their upstream packages update much more frequently than most other
packages in this repo, so they are more likely to be subject to breaking
changes, thus requiring a different version strategy.
2019-07-08 22:47:58 +08:00
Haoqun Jiang bd82649a64 v4.0.0-alpha.4 2019-07-06 19:51:01 +08:00
Haoqun Jiang dc7cb4cae0 chore: pre release sync 2019-07-06 19:50:00 +08:00
Haoqun Jiang 63452ef0e4 test: bump test timeout for upgrade tests 2019-07-06 19:47:32 +08:00
Haoqun Jiang 0ba505ca02 fix: fix eslint path resolution in vue serve (#4246)
fixes #4237
2019-07-06 17:10:02 +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
Pavan Kumar Sunkara 362587a966 feat!: make vuex a separate plugin (#4242)
fixes #2335, #4024
2019-07-06 15:13:09 +08:00
Min ho Kim c0aa2bb310 Fix typos (#4241) 2019-07-06 07:09:29 +03:00
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