Commit Graph

13 Commits

Author SHA1 Message Date
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
Haoqun Jiang
044f5b3b7e refactor: use a version map to determine the newest dependency versions
Now that lerna independent mode is used to release new versions, we can
no longer ensure the core service/plugin versions are in sync with
@vue/cli itself. So `vue-cli-version-marker` is now used to store the
latest version map of core packages.

In order to automate this process, all the core cli packages are listed
as `devDependencies` of `vue-cli-version-marker`. This will cause a
cyclic dependency warning in lerna bootstrap, and that warning can be
safely ignored because these are just `devDependencies` which won't
affect end users.

Another gotcha is that the version of `vue-cli-version-marker` will be
bumped each time we do a release. This may break the remote version
check logic before rc.12 (due to
1ae223dfc0 (diff-ac5fc3f8b11df9fc948b8e5aa52a074e)
the background version check might never get executed since rc.12)
2018-11-12 14:24:41 +08:00
Guillaume Chau
1b77f51baf fix(ui): New update available message adapted 2018-04-28 15:25:59 +02:00
Guillaume Chau
1f87ffdf62 chore(ui): merge dev 2018-04-26 20:22:02 +02:00
Evan You
fb7ccb6678 fix: avoid emoji length problem in update log (close #835) 2018-04-25 14:44:35 -04:00
Guillaume Chau
9f0eece1d1 feat(ui): Progress and Logs systems 2018-03-09 20:35:37 +01:00
Evan You
9f25eedf80 refactor: make hasYarn & hasGit lazy to improve boot time 2018-02-02 15:38:41 -05:00
Evan You
3df1289cd9 feat: check and show newer version on create 2018-02-02 15:25:10 -05:00
Evan You
0151a8182d initial plugin tests 2018-01-05 13:13:39 -05:00
Evan You
2c47f915a3 simplify registry check 2018-01-03 03:47:30 -05:00
Evan You
267a12d926 adjust logging 2017-12-29 11:14:04 -05:00
Evan You
9fc43f8fa5 improve log utils organization 2017-12-28 13:06:17 -05:00
Evan You
6816554d2c further tweak vue-cli-serivce serve 2017-12-27 12:51:20 -05:00