Commit Graph

52 Commits

Author SHA1 Message Date
Binwei Fang
4be4bb39ad feat: implement plugin execution order (#6411) 2021-06-07 16:49:44 +08:00
HexPandaa
c604182458 fix(create): write the lint-staged config to its own file (#6303)
Closes #6298
2021-02-22 14:19:52 +08:00
Binwei Fang
dc4c4559b6 fix(generator): avoid doing redundant write operations (#6011)
Avoid overwriting the file which is not modified when executing `vue add/invoke`
This will reduce the chance of encountering issues like #5939
2020-12-20 19:56:33 +08:00
Binwei Fang
91050b09f5 refactor(generator): minor refactor afterInvoke/afterAnyInvoke (#5993)
make afterInvoke/afterAnyInvoke code more readable and add test
2020-12-18 20:47:27 +08:00
Haoqun Jiang
920160a011 refactor: rename the version parameter to versionRange 2020-10-09 19:20:14 +08:00
Haoqun Jiang
7f56846a2e refactor: replace jscodeshift with vue-codemod (#5629) 2020-07-01 15:06:55 +08:00
Haoqun Jiang
1a0b59142a refactor: use dependencies from @vue/cli-share-utils whenver possible 2019-11-29 15:41:18 +08:00
Haoqun Jiang
0ca37b7453 fix: correctly sort test scripts in package.json
The previous `keyOrder` referred to the legacy `test` & `e2e` commands
that were removed / deprecated since 3.0 stable
2019-09-04 01:20:22 +08:00
Pavan Kumar Sunkara
95ca69c390 fix: Make sure afterInvoke hook doesn't get run from other plugins (#4377) 2019-07-30 16:38:14 +08:00
阿平
74f629ea3f feat(cli): Generator support async (#3897) 2019-07-29 16:55:42 +08:00
Pavan Kumar Sunkara
544faee81e feat: more flexible hook system for generators (#2337) 2019-07-21 19:59:18 +08:00
Pavan Kumar Sunkara
362587a966 feat!: make vuex a separate plugin (#4242)
fixes #2335, #4024
2019-07-06 15:13:09 +08:00
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
af25ef75ce feat: make injectImports & injectRootOptions work for .vue files (#4168)
closes #1702
2019-06-21 17:20:53 +08:00
Barthélémy Ledoux
6e9ba9beb1 fix: add missing package keys to the sort array (issue #3509) (#3510) 2019-02-26 23:52:18 +08:00
Pavan Kumar Sunkara
1a8394434a fix(cli): make sortObject consistent even when keyOrder is given (#2326) 2018-09-25 01:38:33 +08:00
Evan You
8dfa2907a7 refactor: generate postcss.config.js instead of .postcssrc.js 2018-08-15 18:34:55 -04:00
Evan You
8ccea270d4 chore: ensure EOL on generated files
close #2127
2018-08-10 09:56:23 -04:00
Evan You
ba43900657 refactor: add invoking flag for generators, fix eslint + ts
close #1972
2018-07-28 15:53:24 -04:00
Guillaume Chau
1c5fdd0184 feat: hasPlugin matches router or vuex 2018-07-28 01:32:49 +02:00
Evan You
ce585490c7 fix: infer rootOptions for late invoked generators
close #1820
2018-07-17 17:07:12 -04:00
Stephen Lam
e393be733d feat(generator): allow plugins to modify how configs are extracted (#1130)
* feat(generator): allow plugins to modify how configs are extracted

* refactor(cli): change addConfigTransform parameters

Allow plugin author to set config 'descriptions' instead of implementing their own transform functions.

* fix(cli): fix missed issues from changing types from array to set

* fix: use reserved config transforms to check in API

* fix: lines dedupe
2018-07-11 19:52:57 +02:00
Guillaume Chau
35cb714b30 fix(invoke): merge data in config transforms 2018-06-18 10:05:04 +02:00
Evan You
79ee90b024 refactor: generator internal tweaks
- avoid hitting the disk again when extracting / extending config files
- normalize paths when reading files before invoking
2018-06-08 18:52:38 -04:00
Guillaume Chau
ada402249a refactor: improve invocation of builtin plugins in TypeScript projects (#1342) 2018-05-22 10:11:10 -04:00
Evan You
8b32f4a60f feat: GeneratorAPI: addImports & addRootOptions 2018-05-21 14:25:49 -04:00
Evan You
1279b3e401 fix: fix transpileDependencies by always using babel.config.js 2018-05-17 16:19:23 -04:00
Barthélémy Ledoux
c648301743 fix: vue invoke should delete renamed/removed files (#1049) 2018-04-25 17:42:26 -04:00
Evan You
5ae22a1ad4 refactor: allow Generator to accept inline files 2018-03-05 12:07:08 -05:00
Evan You
49e9cf2ce6 refactor: use pluginResolution utils in more places, add tests 2018-03-04 15:13:02 -05:00
Evan You
78dcc7ac58 refactor: use consistent plugin name resolution between add and invoke 2018-03-04 14:25:56 -05:00
Evan You
edff5b49fe refactor: extract plugin resolution into shared-utils 2018-03-04 13:46:10 -05:00
Guillaume Chau
0f2ee80a10 feat: generatorAPI.exitLog (#935)
* feat(logger): add tag argument

* feat(generator): add `exitLog` api

* fix(generator): extract toShortId into a util function
2018-03-04 13:22:55 -05:00
Evan You
46166fb640 fix: handle vue invoke config merging for existing files
close #788
2018-02-06 16:02:09 -05:00
Evan You
7874b0e2eb fix: do not extract vue.config.js in tests 2018-02-02 03:07:16 -05:00
Evan You
d40d4b4b4e refactor: always extract vue.config.js 2018-02-02 01:26:13 -05:00
Evan You
01edb46b8c feat: support config in dedicated files 2018-01-27 17:03:31 -05:00
Evan You
52dad9d79b feat: improve generator hasPlugin check + invoke output 2018-01-15 13:53:41 -05:00
Evan You
5897c9ad6e normalize file paths before postProcessing 2018-01-09 19:49:00 -05:00
Evan You
902f6c0fb3 feat: pwa 2018-01-09 17:45:41 -05:00
Evan You
d9b7671f52 normalize generator.files paths 2018-01-05 18:29:49 -05:00
Evan You
89ed100748 test for Generator/GeneratorAPI 2018-01-03 18:52:51 -05:00
Evan You
2c47f915a3 simplify registry check 2018-01-03 03:47:30 -05:00
Evan You
28dc1c3739 refactor Creator/Generator for tests 2018-01-03 00:51:25 -05:00
Evan You
83975d9373 sort package.json fields 2018-01-01 17:33:07 -05:00
Evan You
557a25a3d7 wip: lint 2017-12-31 16:18:41 -05:00
Evan You
e9e237e3f4 build & serve 2017-12-29 19:26:15 -05:00
Evan You
c8a52f3838 implement .env loading 2017-12-29 16:34:04 -05:00
Evan You
4045a0f6c4 tweak cli output 2017-12-29 00:26:43 -05:00
Evan You
79cfab8edb refactor: adjust generation strategy 2017-12-28 22:10:32 -05:00