]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commit
feat: add vuex option
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 10 Aug 2021 13:12:08 +0000 (21:12 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 10 Aug 2021 13:13:27 +0000 (21:13 +0800)
commit864b60c45052a7d74cfbc34f8da4b1d39b85b111
treefe38ebfcd4c06555fbc3f6e5062244aaab1e6542
parentc0df900cd93e7b3e9279e0119ccc7d26822f9273
feat: add vuex option

`main.js/ts` template is extracted to a standalone `entry` category,
as it will, and only will be affected by the `router`/`vuex` option,
which is different than the other code/config templates.

`vuex` & `vue-router` dependencies are moved into the `config` template.

`store/index.js` is also moved into `config` because it doesn't affect
other code (only the entry).
index.js
template/config/router/package.json [moved from template/code/router/package.json with 100% similarity]
template/config/vuex/package.json [moved from template/code/typescript-router/package.json with 50% similarity]
template/config/vuex/src/store/index.js [new file with mode: 0644]
template/entry/default/src/main.js [new file with mode: 0644]
template/entry/router/src/main.js [moved from template/code/typescript-router/src/main.ts with 100% similarity]
template/entry/vuex-and-router/src/main.js [new file with mode: 0644]
template/entry/vuex/src/main.js [new file with mode: 0644]