Commit Graph

430 Commits

Author SHA1 Message Date
Necmettin Karakaya
5baec1fdc5 chore: fix common misspelling errors (#5694)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2020-08-10 01:17:01 +08:00
Haoqun Jiang
3a5ed77a51 chore: default to non-class components for Vue 3 TS projects (#5755) 2020-08-06 17:42:46 +08:00
Haoqun Jiang
77f4489f2d fix: ignore .svn/** when reading and writing files (#5744)
Fixes #5689
2020-08-04 15:42:59 +08:00
Haoqun Jiang
1030f39599 fix(e2e): shouldn't install webdrivers for unchecked browsers on creation (#5736) 2020-08-03 15:20:29 +08:00
Christian Bromann
87e9d42fbe feat(e2e-webdriverio): add e2e plugin for WebdriverIO (#5479) 2020-08-01 00:46:14 +08:00
Haoqun Jiang
b1772cadd2 feat: allow choosing vue version on creation (and in presets) (#5637) 2020-07-24 18:54:15 +08:00
Haoqun Jiang
7f56846a2e refactor: replace jscodeshift with vue-codemod (#5629) 2020-07-01 15:06:55 +08:00
Haoqun Jiang
09cdf51c5e fix: fix support for some legacy registry servers (#5609)
Some registry servers do not recognize `application/vnd.npm.install-v1+json`
in the Accept header, so here we add `application/json` as fallback.
2020-06-24 10:35:55 +08:00
Haoqun Jiang
c889073c7f chore: improve error message when get metadata failed (#5604) 2020-06-24 10:35:01 +08:00
Haoqun Jiang
4891d91d3c fix: support auth token when retrieving package metadata (#5586) 2020-06-19 15:47:13 +08:00
fxxjdedd
fa871b05b3 fix: add --no-verify to initial git commit (#5540) 2020-06-01 18:50:04 +08:00
Haoqun Jiang
538a0288c8 fix(cli): fix the creation log (#5502) 2020-05-21 17:10:42 +08:00
Haoqun Jiang
02a365dc65 feat(plugin-api): expose inquirer to prompts.js, allowing custom prompt types (#5498) 2020-05-19 20:41:06 +08:00
Haoqun Jiang
aee9e178e7 fix: allow specifying plugin version when calling vue add (#5497)
fixes #4700
2020-05-19 09:11:15 +08:00
Haoqun Jiang
90f114640c fix(ui): the logs from creator should be displayed in the UI (#5493)
With `logWithSpinner`, the log would be output to the console instead.

Fixes #5240
Fixes #5445
2020-05-18 10:24:38 +08:00
Haoqun Jiang
75c398f04e fix(creator): do not override the README.md generated by plugins (#5472)
closes #4802
closes #4942
2020-05-16 22:09:56 +08:00
Romain
e2f00d2867 fix(ui): fix "update all plugins/dependencies" utility (#5395) 2020-05-08 16:42:45 +08:00
Haoqun Jiang
5e93d70e65 fix: normalize the file argument of transformScript, fix Windows compatibility (#5424) 2020-05-08 16:11:47 +08:00
Haoqun Jiang
9855c52305 fix: run migrator in a separator process, fix require cache issues during upgrade (#5360)
* fix: run migrator in a separator process, fix require cache issues during upgrade

* fix: fix cwd

* test: fix test mocks

* fix: early return
2020-04-07 16:12:44 +08:00
Jair Reina
e5449adf74 feat(vue-cli): Choosing to save as a preset tells you where it is saved (#5212)
close #5197

Co-authored-by: Jair Reina <Jair.Reina@digitaslbi.com>
2020-03-21 21:34:27 +08:00
Mike
74ca541e27 Improve package.json not found error  (#5238) 2020-03-07 00:23:08 +01:00
Cédric Exbrayat
5cb988cb27 fix(GeneratorAPI): remove warning when using extendPackage with prune (#5202)
Currently, if we use `api.extendPackage({foo: null}, {prune: true})` the dependency is removed but a warning is logged as the range is invalid:

```
 WARN  invalid version range for dependency "foo":

- null injected by generator "my-plugin"
```
2020-02-27 11:10:14 +08:00
James George
1423553a6d chore: Minor typographical fix (#5189)
* chore: typographical fix

* chore: update test
2020-02-16 20:52:17 +08:00
Haoqun Jiang
0d0168bf28 fix(ui): fix the incorrect RegExp used for CORS check 2020-02-07 19:04:35 +08:00
Haoqun Jiang
6d680bc012 fix(migrator): correctly extract config fields to files 2020-02-06 19:40:50 +08:00
Haoqun Jiang
246c1973ab fix: clear require cache after upgrade, before migrate 2020-02-06 19:02:35 +08:00
Haoqun Jiang
ef15316591 fix: preserve the tilde version range after vue upgrade 2020-02-06 19:02:35 +08:00
Haoqun Jiang
51a4da7e9f fix: should infer package manager from config if there's no lockfile in the project (#5150)
* fix: should infer package manager from config if there's no lockfile in the project

* fixup! fix: should infer package manager from config if there's no lockfile in the project
2020-02-06 16:25:28 +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
e4410b8e8d fixup! fix: fix duplicate slash in metadata url 2020-02-05 14:45:10 +08:00
Haoqun Jiang
813680eced fix: should use the local version number if the cache falls behind 2020-02-05 14:39:52 +08:00
Haoqun Jiang
e1b8519183 fix: fix duplicate slash in metadata url 2020-02-05 14:31:22 +08:00
Haoqun Jiang
ce64455996 fix(cors): fixup #4985, allow same-origin ws requests of any domain (#5142)
* fix: followup of #4985, allow same-site ws requests of any domain

* fix: match whole string
2020-02-04 22:51:06 +08:00
Haoqun Jiang
773f8a47e9 feat: lock minor versions when creating projects / adding plugins (#5134)
* feat: lock minor versions when creating projects / adding plugins

closes #5012

* refactor: also calculate latestMinor version

* feat: support add packages with tilde version range

* refactor: make the `runCommand` invocations more concise

* refactor: use the `getVersions` utility function to get latestMinor

* feat: when adding plugins, use tilde range by default

* fix: allow empty args
2020-02-04 16:26:32 +08:00
Guillaume Chau
da43343329 fix(CORS): only allow connections from the designated host (#4985)
* fix(cors): only allow localhost

* fix: use host so it's configurable

* fix: use cors options object

* feat: use a custom graphql-server instead of the one from apollo plugin

exports the httpServer instance

* fix: add CORS validation in the http upgrade request

Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2020-02-03 19:35:40 +08:00
Haoqun Jiang
76c173693e fix: correctly catch errors of offline install 2020-02-01 14:41:14 +08:00
Haoqun Jiang
eeb1491c64 test: use offline install for test projects (for vue upgrade) 2020-02-01 14:26:53 +08:00
Haoqun Jiang
170e63ecfc test: don't check for taobao registry during tests 2020-02-01 14:10:11 +08:00
Haoqun Jiang
02a0e8a187 feat: vue upgrade monorepo support, --from option, and a new vue migrate --from command (#5091)
* refactor(migrator): rename `installed` to `baseVersion`

* feat: `vue upgrade --from` option and a new `vue migrate` command

* fix: fix support for `vuePlugins.resolveFrom` option

* chore: add a fixme comment

* fix: use loadModule instead of manually calculating the package.json path

This also fixes support for monorepo.
(TODO: tests)

* fix: treat `resolveFrom` as `context`, fixing edge cases

* fix: use read-pkg instead of loadModule, avoid messing up require cache

* fix: getInstalledVersion still requires `loadModule` to support monorepo
2020-01-28 16:32:35 +08:00
Haoqun Jiang
b049e999d7 refactor: use env variables to set registry for package managers (#5110)
also fixes compatibility with Yarn 2
2020-01-27 20:03:50 +08:00
Haoqun Jiang
97650b7ef9 refactor: extract the utility to detect changed files in git 2020-01-16 21:23:13 +08:00
Eduardo San Martin Morote
3cfbd00e13 feat: enforce emoji variation in logs for gear (#5082) 2020-01-16 13:20:37 +05:30
Haoqun Jiang
0f377bd31d feat: upgrade to eslint 6 (#4933)
* feat: scaffold projects with eslint 6

* style: eslint fix

* refactor: do not use hard-coded ecmaVersion, use babel-eslint for now

* fix: upgrade to @vue/eslint-config-standard

* style: continue fix lint errors

* chore: upgrade to eslint-plugin-vue@^6.1.2

* refactor: use `ecmaVersion: 2020` for dynamic import syntax support

* test: fix baseESLintConfig

* chore: also update yarn.lock to fix CI caches

* chore: update lockfile again, fix babel regressions

* test: nightwatch tests should fail if lint errors occur

* chore: update the lockfile (again), fixing a bug in airbnb config
2020-01-14 10:13:54 +08:00
Haoqun Jiang
d7cbe5f0f1 refactor: use a plain http request to get package metadata (#5045)
* refactor: use a plain http request to get package metadata

fixes #4895
fixes #4995

* chore: add link to the package metadata documentation
2020-01-13 19:25:38 +05:30
Haoqun Jiang
42bd09f962 fix afterInvoke/onCreateComplete callbacks in Migrator (#5062)
closes #4837
2020-01-13 19:10:40 +05:30
Pavan Kumar Sunkara
1c269d22f5 fix: extendPackage object values should be string (#5038) 2020-01-13 21:22:21 +08:00
Yingya Zhang
eaa2b7341f feat: respect existing package.json (#4827) 2020-01-09 20:19:06 +08:00
Yingya Zhang
2531d10086 feat: add option merge to command create (#4828) 2020-01-06 07:46:34 +05:30
Haoqun Jiang
f7b95acb9b fix: should download to different directories for different pre… (#4922)
fixes #4778
2019-12-12 21:08:09 +05:30
Haoqun Jiang
1a0b59142a refactor: use dependencies from @vue/cli-share-utils whenver possible 2019-11-29 15:41:18 +08:00