Commit Graph

32 Commits

Author SHA1 Message Date
Pavan Kumar Sunkara
246ae678cb feat!: make router a separate plugin (#4196)
* refactor: move router to its own plugin

* refactor: rename routerHistoryMode option to historyMode

* test: add @vue/cli-plugin-router tests

* feat: change src/router.js for most common use cases

* fix: fix cli-ui tests

* docs: Remove router root option from docs

* fix: add support for legacy router option
2019-07-05 23:21:29 +08:00
Haoqun Jiang
f4e6c33044 chore!: default to dart sass for sass option of cssPreprocessor (#3921)
BREAKING CHANGE:
Preset generated before v3.4.0 may contain a `"cssPreprocessor": "sass"`
field. It now means dart-sass rather than node-sass.

`rootOptions.cssPreprocessor === 'sass'` now also means dart sass.
May affect those generator plugins who depends on this field
2019-04-30 23:33:37 +08:00
robertkruis
a02ef3988f feat: support PNPM as a package manager (#1531)
Enables vue-cli to use PNPM (https://pnpm.js.org/) as package manager
2019-04-09 00:43:47 +08:00
Haoqun Jiang
9c1e797ac6 feat: support dart-sass as default sass implementation (#3321) 2019-01-28 18:51:55 +08:00
Haoqun Jiang
1f5f7c35e5 fix: fix cli version check cache 2018-11-30 01:55:06 +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
Evan You
c6ca93e0dd feat: support --bare flag when creating new projects
close #2030
2018-08-03 11:45:10 -07:00
Evan You
6392a609c1 feat: add create option for router history mode 2018-07-30 18:04:37 -04:00
Evan You
b60dd4b6d3 fix: revert windows config path change, close #1961 2018-07-27 09:08:19 -04:00
Evan You
baa1e0455f refactor: extract rc file loading logic 2018-07-26 22:21:16 -04:00
Evan You
e970b1afc3 feat: store rc file in AppData on windows
close #1957
2018-07-26 21:37:30 -04:00
Guillaume Chau
6e1f7357a3 fix(ui): save db in user home 2018-06-10 17:59:45 +02:00
Tristan Partin
ec87266fe0 feat(xdg-compliance): rc file location hierarchy (#1326)
`vue-cli` now uses the following hierarchy for hosting its rc file:

* `VUE_CLI_CONFIG_PATH
* `XDG_CONFIG_HOME/vue/.vuerc`
* `HOME/.config/vue/.vuerc`
* `HOME/.vuerc`

closes #1325
2018-06-05 10:33:20 -04:00
Guillaume Chau
61655b14df feat(ui): Project creation working! 2018-03-07 19:17:27 +01:00
Evan You
2b9a7507b9 feat: allow specifying additional configs in preset 2018-03-05 11:20:20 -05:00
Evan You
85aacc3464 refactor: improve options validation 2018-02-03 22:19:21 -05:00
Evan You
3df1289cd9 feat: check and show newer version on create 2018-02-02 15:25:10 -05:00
Evan You
f372f55e93 feat: allow saving multiple presets 2018-01-28 00:24:33 -05:00
Evan You
01edb46b8c feat: support config in dedicated files 2018-01-27 17:03:31 -05:00
Evan You
06af371c04 feat: improve prompt flow 2018-01-14 22:58:17 -05:00
Evan You
e773479272 WIP: TS compat with other plugins 2018-01-11 00:37:21 -05:00
Evan You
cc35923452 Revert "move all deps to dependencies instead of devDependencies"
This reverts commit be4bf6fd7d.
2018-01-10 14:50:39 -05:00
Evan You
be4bf6fd7d move all deps to dependencies instead of devDependencies 2018-01-10 11:18:30 -05:00
Evan You
d3bb381e7b feat: css preprocessors 2018-01-08 17:47:48 -05:00
Evan You
88e9d46334 feat: router & vuex 2018-01-08 16:45:03 -05:00
Evan You
7fa24a541d implement global serve 2018-01-07 18:39:14 -05:00
Evan You
318d42092c validate options 2018-01-07 12:49:43 -05:00
Evan You
b1e858eb8d tweak registry check 2018-01-03 13:21:48 -05:00
Evan You
2c47f915a3 simplify registry check 2018-01-03 03:47:30 -05:00
Evan You
1548c613f7 test: options 2018-01-03 00:18:18 -05:00
Evan You
267ce7442a refactor for testing 2018-01-02 20:16:01 -05:00
Evan You
de821382b6 tweak registry check + options refactor 2018-01-01 20:14:03 -05:00