Commit Graph

2618 Commits

Author SHA1 Message Date
Haoqun Jiang 2334ff83ee fix: fix output quote styles in codemods
The recast print utility prefers double quotes by default,
this may fail many users' eslint check, so we have to implement a
detection utility to tell if double quotes are actually needed.

Template literals are also converted to string literals, to make things
easier for future iterations.
2019-09-30 18:18:35 +08:00
Haoqun Jiang ebdb142a4b fix: fix sassOptions merging for scss syntax in sass-loader v8 (#4631)
fixes #4630
2019-09-30 14:02:48 +08:00
Yingya Zhang 8869a01d48 feat: support custom package manager (#4621)
Closes #4483

* feat: support custom package manager

* feat: refine warning msg for unknown package manager

* feat: refine blank lines

* feat: refine warning msg for unknown package manager

* feat: refine warning msg for unknown package manager
2019-09-30 14:01:43 +08:00
Haoqun Jiang ed2b888782 Revert "feat: allow custom packageManager other than npm/yarn/p… (#4632)
This reverts commit e0f846984a.
2019-09-30 14:00:31 +08:00
Yingya Zhang e0f846984a feat: allow custom packageManager other than npm/yarn/pnpm (#4620)
Closes #4483
2019-09-30 13:59:21 +08:00
Haoqun Jiang 14ff94da34 fix: force lines to be ended with lf, fix windows tests 2019-09-29 23:09:25 +08:00
Haoqun Jiang c42acfcca3 feat(babel): transform preset names in the plugin migrator (#4629) 2019-09-29 22:13:31 +08:00
Haoqun Jiang c53a49dc98 fix: fix nightwatch template's compatibility with eslint plugin (#4622)
Fixes #4619

* fix: fix nightwatch template's compatibility with eslint plugin

* test: should add eslint plugin **after** nightwatch plugin

* fix: add _eslintrc.js
2019-09-29 22:06:21 +08:00
Haoqun Jiang 5e819b5290 fix: fix nightwatch cli option (--url) handling (#4627)
fixes #4619
2019-09-29 22:05:51 +08:00
Haoqun Jiang a42f838543 docs: fix typos [ci skip] 2019-09-25 13:32:36 +08:00
Haoqun Jiang b98b0779ef chore: elaborate on the new jest presets 2019-09-25 12:53:37 +08:00
Haoqun Jiang 21257378d7 v4.0.0-rc.4 v4.0.0-rc.4 2019-09-25 12:31:11 +08:00
Haoqun Jiang 4f009cdb60 chore: pre release sync 2019-09-25 12:30:25 +08:00
Haoqun Jiang ad6d516a3d chore: update chromedriver version 2019-09-25 03:00:14 +08:00
Haoqun Jiang 2315990311 workflow: try defaultMaxListeners 2019-09-25 02:06:01 +08:00
Haoqun Jiang 08fd908bcb workflow: fix the MaxListenersExceededWarning 2019-09-25 01:55:09 +08:00
Haoqun Jiang f970d1a129 workflow: run checkLink sequentially 2019-09-25 01:42:27 +08:00
Haoqun Jiang bd9442b092 chore: merge branch 'next' into dev 2019-09-25 01:28:55 +08:00
vahdet 3f5f438f7e Edited Dockerfile of Docker(Nginx) deployment doc (#4561)
* Edited Dockerfile of Docker(Nginx) deployment doc

Edited `Dockerfile` section of https://cli.vuejs.org/guide/deployment.html#docker-nginx

As shown in [Vue v2 cookbook](https://vuejs.org/v2/cookbook/dockerize-vuejs-app.html) copying `package*.json` initially and running `npm install` in a separate step allows caching and reduces time elapsed during Docker build. Also the difference between the two docs will be reduced and be less confusing to those who end up with both of them.

* node version to latest

(cherry picked from commit 69f7145b02)
2019-09-25 01:25:47 +08:00
Kid 3da900813d docs: update Chinese translation of Deployment (#4486) [ci skip]
Co-Authored-By: GU Yiling <justice360@gmail.com>
(cherry picked from commit 9c99ce2be6)
2019-09-25 01:25:37 +08:00
vimvinter ba97068bb3 docs(zh): update build-targets.md (#4505) [ci skip]
(cherry picked from commit c730b76f43)
2019-09-25 01:25:26 +08:00
Owan Hunte dcd2a850b8 Documentation typo fixes (#4500)
* Minor typo fix for CLI Service docs page

In the last paragraph of the CLI Service docs page the second instance of the word 'need' should be changed to 'needs'.

* Typo fix to 'HTML and Static Assets' docs page

(cherry picked from commit b20e27ad12)
2019-09-25 01:25:09 +08:00
Haoqun Jiang f5c39b6c39 chore: lockfile maintenance 2019-09-25 01:21:37 +08:00
Haoqun Jiang 387046b264 chore: update default chromedriver version to the latest 2019-09-25 01:21:08 +08:00
Haoqun Jiang cb740ae268 fix: correctly ignore html templates in copy-webpack-plugin (#4613)
Fixes #3597.
Fixes #4299.
2019-09-25 00:19:25 +08:00
Haoqun Jiang 8705885d6f feat: use jsdom v15 in jest presets instead of the default v11 (#4607) 2019-09-25 00:18:26 +08:00
Haoqun Jiang ed50ceb255 refactor: rename jest presets (#4609)
* refactor: rename jest presets

Follow up of #4597.
Renamed `preset` folder to `presets`.
Added a default preset and it is accessible in the short form of
`@vue/cli-plugin-unit-jest`.

This change is inspired by ts-jest presets:
https://kulshekhar.github.io/ts-jest/user/config/#jest-preset

* fix: update import path

* fix: fix typo in file path
2019-09-25 00:02:39 +08:00
Haoqun Jiang 2e1e92b7e8 refactor: move jest configs into presets (#4597)
* refactor: move jest configs into a preset

This could significantly reduce the size of default boilerplate,
and gives us more control on the internal config details, thus
potentially making future upgrades easier.

* fix: add back applyTS
2019-09-23 18:22:59 +08:00
Haoqun Jiang cc06091d8c docs: fix syntax highlighting 2019-09-23 17:11:07 +08:00
Natalia Tepluhina cc9dba64a7 docs: fixed vuepress link to next branch (#4604) 2019-09-22 13:23:30 +08:00
Haoqun Jiang 0473432679 feat(nightwatch): check user's installed browser versions on scaffolding / before running tests (#4563) 2019-09-12 18:33:10 +08:00
Haoqun Jiang dcd8d94e36 chore: add geckodriver to workspace devDependencies
fix peer dependency warnings
2019-09-11 15:39:22 +08:00
Haoqun Jiang 863d6bbfbf v4.0.0-rc.3 v4.0.0-rc.3 2019-09-10 00:05:39 +08:00
Haoqun Jiang 83d459b34c chore: pre release sync 2019-09-09 23:51:30 +08:00
Haoqun Jiang b156ff17e5 Merge pull request #4554 from sodatea/sass-loader-8
Support sass-loader v8
2019-09-09 23:35:15 +08:00
Haoqun Jiang 59d6a7c856 docs: rephrase the upgrade notice 2019-09-09 23:01:39 +08:00
Andrei Rusu 59adbd69c7 feat: Upgrade Nightwatch to v1.2 and update bundled config and generated tests (#4541)
* feat: Upgraded Nightwatch to version 1.2; updated distributed config; added new cli flags: --headless, --parallel...; added support for running chromedriver and geckodriver standalone; added unit tests

* docs: updated nightwatch plugin readme

* feat: add chromedriver and geckodriver as peer dependencies

* updated readme and driver depedencies

* updated optional dependencies

* fixed failing tests

* updated generated tests

* updated tests
2019-09-09 18:49:33 +08:00
Haoqun Jiang 8cc9ea5f81 fix: pause & resume spinners elegantly 2019-09-09 17:23:47 +08:00
Haoqun Jiang af17a9b49f feat: support sass-loader v8 2019-09-09 17:23:21 +08:00
Haoqun Jiang d37d68afba v4.0.0-rc.2 v4.0.0-rc.2 2019-09-08 11:52:59 +08:00
Haoqun Jiang 0c5d740202 chore: pre release sync 2019-09-08 11:52:11 +08:00
Haoqun Jiang 87285d62af ci: log patched chromedriver version 2019-09-08 01:50:40 +08:00
Cédric Exbrayat cd91c0f650 docs: remove run for yarn commands in readme (#4551) 2019-09-08 01:47:20 +08:00
tomomi 9e4592fcb1 fix: fix incompatibility with Chrome 75 (#4440) 2019-09-08 01:31:13 +08:00
Haoqun Jiang 1cc6c5128e ci: auto detect chrome version 2019-09-08 01:14:25 +08:00
Haoqun Jiang 6a2ca0ab17 Revert "ci: no longer need to patch chromedriver in appveyor"
This reverts commit 96eac78f6e.
2019-09-08 00:51:41 +08:00
Haoqun Jiang 522a0f8d03 test: set a really long timeout for HMR tests 2019-09-07 13:07:15 +08:00
Haoqun Jiang 72ba7505af fix: should not proxy sockjs endpoint (#4550)
fixes #4504
thanks to https://github.com/facebook/create-react-app/pull/7444
2019-09-07 13:02:34 +08:00
Haoqun Jiang 74fae4454b feat: implement a migrator to auto add eslint to deps (#4549) 2019-09-07 12:56:30 +08:00
Haoqun Jiang b799b831b1 fix(upgrade): correctly update version range in package.json (#4546) 2019-09-07 00:30:29 +08:00