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
592b305d7e
chore: add newline in prompt message
2020-01-27 23:19:42 +08:00
Haoqun Jiang
c6151103b4
test: fix mock module in upgrader test
2020-01-27 23:19:42 +08:00
Haoqun Jiang
51cdebdadf
fix applyESLint when eslint plugin is added after unit test plugins ( #5028 )
...
* fix: fix applyESLint when eslint plugin is added after unit test plugins
closes #5017
* test: update test for mocha generator
2020-01-27 21:44:36 +08:00
Haoqun Jiang
103d0f125f
test: skip the eslint migrator test that constantly times out for now
2020-01-27 21:23:44 +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
be06858bc6
test: remove .only
2020-01-27 20:03:02 +08:00
Haoqun Jiang
a468abfa6c
feat: implement a migrator to upgrade to eslint 6 ( #5085 )
...
* refactor: extract deps & config logic to separate files
* feat: implement a migrator to upgrade to eslint 6
* fix: add required deps for eslint v4
* test: move migrator tests to each standalone plugins
* refactor: use spread operator instead of Object.assign
2020-01-27 14:00:16 +08:00
Haoqun Jiang
15679de2bf
refactor: use createRequire to load/resolve modules ( #5092 )
...
* refactor: use createRequire to resolve modules
* fix: use file path as createRequire argument; fix loadModule.
2020-01-23 07:08:50 +01:00
Maël Nison
8fcea225b7
feat: adds transparent PnP support to Webpack ( #4953 )
...
* feat: adds transparent PnP support to Webpack
* fix: add the plugin name
* fix: now pass tests
2020-01-19 08:18:37 +05:30
Haoqun Jiang
932e412cb8
ci: preserve yarn cache folder between builds in appveyor
2020-01-16 22:36:58 +08:00
Haoqun Jiang
04b0bfe3ac
test: add legacy plugin versions to dev deps, speeding up the upgrader test
2020-01-16 22:22:11 +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
bc3e4af3c0
refactor: use the title option in the html template, instead… ( #5060 )
...
closes #5056
2020-01-13 19:34:41 +05:30
Dan Hogan
9ac7ce5b09
Added rel="noopener noreferrer" to external links ( #4744 )
...
* Added rel="noopener noreferrer" to external links
* Added rel="noopener noreferrer" to external links
* Added rel="noopener noreferrer" to external links
2020-01-13 19:27:42 +05:30
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
Daniel Bächtold
7e54d935f4
feat: adaptive icon support with maskable icons ( #5053 )
2020-01-13 19:20:05 +05:30
plantainX
4e154ac5ad
feat(cli-service-global): to know if the build has finished ( #5061 )
2020-01-13 19:15:25 +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
Bogdan Luca
7b17d6132c
fix: use a single websocket connection for HMR ( #5069 )
...
* fix(hmr-websocket): add failing test
* fix(hmr-websocket): set injectClient to false, as we inject our own client
* fix(hmr-websocket): change test project name
2020-01-13 21:20:53 +08:00
Marcel Lindig
fff9caaca5
feat(cli): add stdin flag to serve ( #2411 )
...
* feat(cli): add stdin flag to serve
* add back --public help
* reorder help
2020-01-10 18:12:01 +08:00
Tao Wei
cb3db60aa8
style: unified components' naming style ( #4991 )
2020-01-09 20:19:57 +08:00
Yingya Zhang
eaa2b7341f
feat: respect existing package.json ( #4827 )
2020-01-09 20:19:06 +08:00
ntnyq
afb5db82e7
docs(zh): Sync Chinese translation ( #5051 ) [ci skip]
2020-01-09 20:18:10 +08:00
Yingya Zhang
9ec2d34e65
feat: specify babel runtime version ( #4959 )
2020-01-06 16:11:03 +08:00
Haoqun Jiang
413470de24
feat: don't throw on console/debugger statements for vue serve ( #5029 )
...
1. they're useful in development
2. to be in line with the default preset
2020-01-06 07:47:51 +05:30
Yingya Zhang
2531d10086
feat: add option merge to command create ( #4828 )
2020-01-06 07:46:34 +05:30
Xin Tan
80b93951b1
Updated zh-cn translation in cli section ( #5019 )
...
* UPDATDED: translation in simplified Chinese for 'yorkie' and 'husky' in warning
* UPDATED: add missing code snippits in EN doc
2020-01-03 16:06:06 +08:00
Cédric Exbrayat
1ae53e5c95
fix: comment eslint disable in cypress config ( #4910 )
...
The current cypress config has a global eslint-disable:
typescript
```
/* eslint-disable import/no-extraneous-dependencies, global-require, arrow-body-style */
// const webpack = require('@cypress/webpack-preprocessor')
```
But this assumes that `eslint-import-plugin` is present, whereas this is only true when the selected preset is the Airbnb one.
In other cases, this fails `yarn lint` right away with:
```
error: Definition for rule 'import/no-extraneous-dependencies' was not found (import/no-extraneous-dependencies) at tests/e2e/plugins/index.js```
Even if using the Airbnb preset, the comment does not have any effect, as, by default, the `require` call is commented.
This commit now splits the rules disabling in two:
- one commented for the people using Airbnb and who will uncomment the require call below, as it is only useful for them.
- one activated that disables `arrow-body-style` as it will fail the linting for people using Airbnb preset with the current config.
2020-01-03 14:55:19 +08:00
Thorsten Lünborg
bc2dc96e6e
fix(e2e-nightwatch): check for correct flag name ( #5016 )
...
* fix(e2e-nightwatch): check for correct flag name
flag is documented as `--use-selenium` but we checked for `args['with-selenium']`
fix #5015
* test(e2e-nightwatch): selenium test
uses correct flag now
2020-01-03 14:51:46 +08:00
Alexander Sokolov
4087220b86
docs: [RU] Translation update ( #5009 )
...
* docs: (ru) config/README.md update devServer example
* docs: (ru) creating-a-project.md update
* docs: css.md add less examples
* docs: browser-compatibility.md update
* docs: deployment.md update
* docs: (ru) config/readme.md update
* docs: (ru) deployment.md update
* docs: (ru) prototyping.md add yarn command
* docs: config.md fix
* docs: ui-localization.md typo
* docs: [RU] Translation update
* docs: [RU] Translation update
* docs: vuex.md added
* docs: router.md added
* docs: migration from v3 added
* docs: config.js updated
* docs: config/readme.md updated
* docs: unit-mocha.md updated
* docs: css.md updated
* docs: cli-service.md updated
* docs: generator-api.md updated
* docs: build-target.md update
* docs: deployment.md update
* docs: e2e-nightwatch.md update
* docs: unit-jest.md update
* docs: e2e-nightwatch.md update
* docs: migrating-from-v3.md update
* docs: plugin-dev.md update
* docs: plugin-dev.md update
* docs: plugin-dev.md update
* docs: plugin-dev.md update
* docs: config.md fix
* docs: pwa.md update
* docs: pwa.md update
2019-12-29 16:14:20 +02:00
Haoqun Jiang
3b7227d544
v4.1.2
v4.1.2
2019-12-28 20:54:27 +08:00
Haoqun Jiang
95ae2a1eb2
chore: merge branch 'master' into dev
2019-12-28 19:31:26 +08:00
Haoqun Jiang
0cba5128e9
fix: fix several bugs in the PWA plugin UI, make it usable again ( #4974 )
...
closes #4903
2019-12-28 15:21:55 +08:00
Ivan Demidov
15943274ff
chore: fix link to himepage ( #5004 )
2019-12-28 15:20:45 +08:00
Jorge Moliner
9e739074a4
docs: update example code ( #4987 )
2019-12-22 12:41:56 +02:00
ziga
ef548a7eca
Update debugging instructions ( #4754 )
...
I only tested on macOS – but I suspect it's same on all OS-es.
Refs:
- https://jestjs.io/docs/en/troubleshooting
- https://jestjs.io/docs/en/cli.html#runinband
2019-12-21 07:51:26 +02:00
Haoqun Jiang
7bc3cd7541
docs: his -> their ( #4976 )
2019-12-21 07:44:06 +02:00
clem
3f15b4cff7
mention navigateFallback in the pwa docs ( #4973 )
2019-12-21 07:43:02 +02:00
James George
00acca5f14
refactor: use inline approach ( #4904 )
2019-12-12 21:12:11 +05:30
Jun-Kyu Kim
26bdb511e6
fix: typo errors ( #4938 )
2019-12-12 21:11:03 +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
Alexander Sokolov
02f2436bdb
docs: [RU] Translation update ( #4917 )
...
* docs: (ru) config/README.md update devServer example
* docs: (ru) creating-a-project.md update
* docs: css.md add less examples
* docs: browser-compatibility.md update
* docs: deployment.md update
* docs: (ru) config/readme.md update
* docs: (ru) deployment.md update
* docs: (ru) prototyping.md add yarn command
* docs: config.md fix
* docs: ui-localization.md typo
* docs: [RU] Translation update
* docs: [RU] Translation update
* docs: vuex.md added
* docs: router.md added
* docs: migration from v3 added
* docs: config.js updated
* docs: config/readme.md updated
* docs: unit-mocha.md updated
* docs: css.md updated
* docs: cli-service.md updated
* docs: generator-api.md updated
* docs: build-target.md update
* docs: deployment.md update
* docs: e2e-nightwatch.md update
* docs: unit-jest.md update
* docs: e2e-nightwatch.md update
* docs: migrating-from-v3.md update
* docs: plugin-dev.md update
* docs: plugin-dev.md update
* docs: plugin-dev.md update
* docs: plugin-dev.md update
2019-12-06 15:24:09 +08:00
Haoqun Jiang
c7961cd5af
fix: do not throw when babel config contains ignore/include/exclude ( #4924 )
...
fixes #4923
2019-12-06 15:23:44 +08:00
Kumar Gaurav
aeddc6f2c9
refactor: changed var async to isAsync ( #4909 )
...
`async` is a javascript keyword, so I suggest this variable name will be less prone to error and confusing.
2019-12-06 10:57:43 +08:00
Haoqun Jiang
6c2496418e
chore: remove unused dependency "slash"
2019-12-03 23:18:11 +08:00
Haoqun Jiang
c4dc8d61c3
refactor: remove unnecessary padEnd & padStart shims
...
Both features are already supported in Node.js v8+
2019-12-03 23:07:47 +08:00