Commit Graph

1652 Commits

Author SHA1 Message Date
Haoqun Jiang
da6bd75e2c fix: when eslint is used, pin ts version to ~3.1.1 (#3214)
Otherwise there will be a warning from typescript-estree@5,
which is depended by typescript-eslint-parser@21
2018-12-30 17:45:20 +08:00
Haoqun Jiang
90d387f650 fix: fix eslint cwd confusion during onCreateComplete hook execution (#3212)
* fix: fix eslint cwd confusion during onCreateComplete hook execution

fixes #2554
fixes #3142

* fix: do not mock process.cwd during invoking
2018-12-30 17:45:07 +08:00
JK
300efa94bc fix(cli-service): drop webpack NoEmitOnErrorsPlugin usage (#3210) 2018-12-30 17:44:48 +08:00
Thorsten Lünborg
c9aaa2ff5a fix(cli-plugin-unit-jest): When using TS & Babel, make ts-jest use babelConfig (#3107)
* fix(cli-plugin-unit-jest): use ts-jest babelConfig

When using Typescript and Babel, ts-jest should use babel to transform result for correct JSX transforms

close #3100

* refactor:  write generator a bit differently.

previous way could end up with ugly `global: undefined`
when not using babel
2018-12-29 19:09:56 +08:00
Haoqun Jiang
d86b9d4c1f chore: add deprecation warning for Node.js 9.x (#3202)
* chore: add deprecation warning for Node.js 9.x

* chore: upgrade -> use an active LTS version
2018-12-29 14:54:39 +08:00
Divya
0ecbb704e7 fix: add missing package (#2466) 2018-12-28 16:26:44 +08:00
Michael Khabarov
8d81e51aa8 fix: set url option for jsdom-global (#3131)
This fixes `SecurityError: localStorage is not available for opaque origins` in mocha tests caused by jsdom (jsdom/jsdom#2304).
2018-12-28 16:11:20 +08:00
Haoqun Jiang
056ba0772c ci: also skip ts + nightwatch test in circleci 2018-12-27 14:10:56 +08:00
Haoqun Jiang
d6f6098ef7 fix: when lint default paths, don't try to lint non-existent or ignored paths
fixes #3167
2018-12-27 01:21:33 +08:00
Haoqun Jiang
710807bd43 tests: fix path match on Windows 2018-12-26 15:33:14 +08:00
Haoqun Jiang
e3a58cb29e fix: skip polyfills for modern mode and fix tests 2018-12-26 14:56:07 +08:00
Haoqun Jiang
9c0adab85b fix: use @babel/runtime-corejs2 by default
fixes #3186
2018-12-26 14:37:02 +08:00
Haoqun Jiang
e3ca74e1d2 chore: update dependencies 2018-12-14 19:28:41 +08:00
Philip Chung
796c376f17 fix(typescript): fix typo in lint command registration (#3132) 2018-12-14 15:58:41 +08:00
Haoqun Jiang
7bb36ed972 chore: use stable release of eslint-plugin-vue v5 2018-12-13 18:11:03 +08:00
Haoqun Jiang
2ac64d6de1 fix: .wasm extension should have lower priority when resolving modules
in line with https://github.com/webpack/webpack/pull/8448
fixes #3023
2018-12-12 21:32:41 +08:00
Haoqun Jiang
ae2a9bc145 fix: fix typo 2018-12-04 20:51:57 +08:00
Patrick
41443944c7 style: small style fixes (#3063)
* style(babel-prompt): Using else if instead of double blocks

* style(Creator): shouldInitGit doesn't need to be async
2018-12-03 20:04:17 +08:00
Haoqun Jiang
554670be64 fix: better error message for missing key entry in pages config
fixes #2816
2018-12-02 17:24:07 +08:00
Natalia Tepluhina
a37c97f838 docs: added an explanation about why service worker is included only in production mode (#3050) [ci skip]
closes #2278
2018-12-01 21:11:36 +08:00
Haoqun Jiang
1f5f7c35e5 fix: fix cli version check cache 2018-11-30 01:55:06 +08:00
Haoqun Jiang
79eb41fa9f v3.2.1 2018-11-28 03:02:25 +08:00
Haoqun Jiang
f2bddd6556 fix: fix config versions 2018-11-28 02:59:39 +08:00
Haoqun Jiang
d60657af6d v3.2.0 2018-11-28 02:50:01 +08:00
Haoqun Jiang
6ef72cd852 chore: pre release sync 2018-11-28 02:49:46 +08:00
Haoqun Jiang
3d186d119e chore: eslint-config-typescript@3.2.0 2018-11-28 02:38:51 +08:00
Haoqun Jiang
bfb78a9615 feat: add decoratorsBeforeExport option
fixes #2974
2018-11-28 02:22:11 +08:00
Haoqun Jiang
f6ea6f928c chore: update deps 2018-11-28 02:18:37 +08:00
Haoqun Jiang
31ffcfe0ca feat: new release strategy (#3020)
## Summary
- Keep package minors in sync (`lerna publish --force-publish` when releasing a new minor)
- Patch on demand (`lerna publish` fixed mode)
- `eslint-config-*` packages are published manually

## Longer Description
1. We used to force publish every package till v3.1, this is due to the unbalanced update frequency among different plugins. In practice, some of them, like the pwa plugin, are quite stable and rarely need updating. So force publishing is overkill now.
2. We have switched to independent mode then, for two major benefits: 1) patching on demand and only on demand 2) eslint config packages needs a more aggressive update strategy in practice, due to the frequent breaking changes in the upstream packages. However, this also causes maintenance burden and confusion to end users. So it's far from ideal.
3. So now we choose to go back fixed versioning. By default lerna would skip untouched packages when publishing a new version. This might be confusing as we think. So to reduce the cognitive load, we still keep each package's minor field in sync.

## Implementation Detail

1. To selectively publish packages, we have to disable `useWorkspaces` in lerna so that these packages can be linked by yarn while being unrecognizable to lerna.
2. Due to an oversight in the old version checking code, version fields in `vue-cli-version-marker` needs to be exact versions, otherwise cli will throw on startup. So we have to publish `vue-cli-version-marker` manually after other package updates. This logic can be removed once all users have been upgrade to 3.2.0+ and we can then add it back to `packages` in `lerna.json`
3. We now use `~/.vuerc` to cache version check results. This also fixes #2956
2018-11-28 02:12:05 +08:00
Guillaume Chau
d7ff752312 chore: merge 2018-11-27 10:54:58 +01:00
Guillaume Chau
4ce96718eb chore: upgrade vue-cli-plugin-apollo 2018-11-27 10:54:05 +01:00
Alex Rohleder
6b27ca7870 fix: typo in plugin invoke notification (#2937)
fixes #2917
2018-11-27 16:56:51 +08:00
Guillaume Chau
2baddaa35e fix(tasks): new terminate process implementation 2018-11-26 20:08:20 +01:00
Guillaume Chau
f45af9528f chore: lint files 2018-11-26 20:07:50 +01:00
Guillaume Chau
8fd8082f4b chore: fix lint args 2018-11-26 20:07:29 +01:00
Patrick
b7bed8a289 docs: fixing the comment about forcing git (#3005) [ci skip] 2018-11-26 21:57:16 +08:00
Andréas Hanss
2db8d1877b feat: add support for loading WebAssembly and ES Modules (#2819) 2018-11-26 12:45:12 +08:00
Brandon Yeager
42c51c0f62 fix: display project name validation warnings (#2769) 2018-11-26 12:44:06 +08:00
Trevor Brindle
4324afb6ef feat: add envinfo package via vue info in cli (#2863)
* feat: add envinfo package via `vue info` in cli

* fix: update `vue info` npm global packages
2018-11-26 12:43:35 +08:00
Haoqun Jiang
076c365748 chore: no longer needs to disable space-infix-ops
Now that the bug in typescript-eslint-parser has been fixed.
2018-11-21 23:58:23 +08:00
Haoqun Jiang
cdec606587 chore: upgrade register-service-worker version
closes #2964
2018-11-19 18:10:47 +08:00
John Franey
af4e498b6e feat(typescript): respect excluded globs in tslint (#2961)
Updates `tslint.js` to respect `linterOptions.exclude`() from `tslint.json`.

Previously, this configuration option was ignored in favour of the
following list of globs:

```
['src/**/*.ts', 'src/**/*.vue', 'src/**/*.tsx', 'tests/**/*.ts', 'tests/**/*.tsx']
```

See:
https://palantir.github.io/tslint/usage/configuration/
2018-11-19 16:02:04 +08:00
Haoqun Jiang
9ab0fbde1c Publish
- @vue/cli@3.1.3
 - vue-cli-version-marker@3.1.2
2018-11-12 16:36:35 +08:00
Haoqun Jiang
cd7a5d0b52 Publish
- @vue/cli-plugin-e2e-cypress@3.1.2
 - @vue/cli-plugin-eslint@3.1.5
 - @vue/cli-plugin-pwa@3.1.2
 - @vue/cli-service-global@3.1.3
 - @vue/cli-service@3.1.4
 - @vue/cli-ui-addon-webpack@3.1.2
 - @vue/cli-ui-addon-widgets@3.1.2
 - @vue/cli-ui@3.1.2
 - @vue/cli@3.1.2
 - @vue/eslint-config-prettier@4.0.1
 - vue-cli-version-marker@3.1.1
2018-11-12 16:20:18 +08:00
Haoqun Jiang
d1cd4aa6a2 fix: plugin.options can be missing when runGenerator is directly called
fixes #2906
2018-11-12 15:29:40 +08:00
Haoqun Jiang
077343ba6a fix: specify eslintPath for eslint-loader
fixes #2924
2018-11-12 15:21:42 +08:00
tdorsey
5eac2e136e docs: fix typo (#2899) [ci skip]
* Fix typo

* Adjust plurality since there is only one guide
2018-11-12 14:47:01 +08:00
JK
6d35461707 fix(cli-service): do not display absolute baseUrl (#2900) 2018-11-12 14:45:10 +08:00
Cédric Exbrayat
e4e151b238 fix: remove webpack-preprocessor from cypress config (#2904)
* test: add cypress test for TS

* fix: remove webpack-preprocessor from cypress config

Removes the `@cypress/webpack-preprocessor` from the generated cypress configuration, as it leads to several issues regarding file watching, headless mode and TS support.

Fixes #2903
2018-11-12 14:44:46 +08:00
Michał Sajnóg
837295bcec chore(eslint-config-prettier): upgrade prettier and extend configuration (#2932) 2018-11-12 14:44:22 +08:00