@moluoxixi/create-app 2.0.431 → 2.0.433

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/LICENSE.txt +21 -21
  2. package/README.md +200 -200
  3. package/package.json +9 -6
  4. package/templates/common/base/.env +7 -7
  5. package/templates/common/base/.env.development +5 -5
  6. package/templates/common/base/.env.production +5 -5
  7. package/templates/common/base/_gitignore +42 -42
  8. package/templates/common/base/node_modules/.bin/autoprefixer +2 -2
  9. package/templates/common/base/node_modules/.bin/jiti +2 -2
  10. package/templates/common/base/node_modules/.bin/sass +2 -2
  11. package/templates/common/base/node_modules/.bin/tsc +2 -2
  12. package/templates/common/base/node_modules/.bin/tsserver +2 -2
  13. package/templates/common/base/node_modules/.bin/tsx +2 -2
  14. package/templates/common/base/node_modules/.bin/uuid +2 -2
  15. package/templates/common/base/node_modules/.bin/vite +2 -2
  16. package/templates/common/base/package.json +56 -56
  17. package/templates/common/base/scripts/build.mts +36 -36
  18. package/templates/common/base/src/apis/index.ts +7 -7
  19. package/templates/common/base/src/apis/request.ts +43 -43
  20. package/templates/common/base/src/apis/services/example.ts +61 -61
  21. package/templates/common/base/src/apis/services/user.ts +33 -33
  22. package/templates/common/base/src/apis/types/common.ts +43 -43
  23. package/templates/common/base/src/apis/types/example.ts +29 -29
  24. package/templates/common/base/src/apis/types/index.ts +7 -7
  25. package/templates/common/base/src/apis/types/user.ts +39 -39
  26. package/templates/common/base/src/assets/fonts/index.css +6 -6
  27. package/templates/common/base/src/assets/styles/base.scss +33 -33
  28. package/templates/common/base/src/assets/styles/custom.scss +20 -20
  29. package/templates/common/base/src/assets/styles/main.scss +8 -8
  30. package/templates/common/base/src/assets/styles/tailwind.scss +3 -3
  31. package/templates/common/base/src/constants/index.ts +28 -28
  32. package/templates/common/base/src/utils/index.ts +87 -87
  33. package/templates/common/base/vite/index.ts +53 -53
  34. package/templates/common/base/vite.config.ts +54 -54
  35. package/templates/common/features/eslint/eslint.config.ts +20 -20
  36. package/templates/common/features/eslint/node_modules/.bin/eslint +2 -2
  37. package/templates/common/features/eslint/package.json +7 -7
  38. package/templates/common/features/husky/.cz-config.cjs +35 -35
  39. package/templates/common/features/husky/.husky/commit-msg +9 -9
  40. package/templates/common/features/husky/.husky/install.mjs +9 -9
  41. package/templates/common/features/husky/.husky/pre-commit +4 -4
  42. package/templates/common/features/husky/commitlint.config.ts +32 -32
  43. package/templates/common/features/husky/node_modules/.bin/commitizen +2 -2
  44. package/templates/common/features/husky/node_modules/.bin/commitlint +2 -2
  45. package/templates/common/features/husky/node_modules/.bin/cz +2 -2
  46. package/templates/common/features/husky/node_modules/.bin/cz-cust +2 -2
  47. package/templates/common/features/husky/node_modules/.bin/cz-customizable +2 -2
  48. package/templates/common/features/husky/node_modules/.bin/git-cz +2 -2
  49. package/templates/common/features/husky/node_modules/.bin/husky +2 -2
  50. package/templates/common/features/husky/node_modules/.bin/lint-staged +2 -2
  51. package/templates/common/features/husky/package.json +29 -31
  52. package/templates/react/base/env.d.ts +19 -19
  53. package/templates/react/base/index.html +13 -13
  54. package/templates/react/base/package.json +15 -15
  55. package/templates/react/base/src/App.tsx +18 -18
  56. package/templates/react/base/src/main/index.ts +34 -34
  57. package/templates/react/base/src/main.tsx +34 -34
  58. package/templates/react/base/src/pages/about/index.tsx +14 -14
  59. package/templates/react/base/src/pages/home/index.tsx +14 -14
  60. package/templates/react/base/tsconfig.app.json +17 -17
  61. package/templates/react/base/tsconfig.base.json +22 -22
  62. package/templates/react/base/tsconfig.json +11 -11
  63. package/templates/react/base/tsconfig.node.json +15 -15
  64. package/templates/react/features/ant-design/package.json +7 -7
  65. package/templates/react/features/ant-design/src/main/features/ant-design.ts +21 -21
  66. package/templates/react/features/i18n/package.json +7 -7
  67. package/templates/react/features/i18n/src/locales/index.ts +26 -26
  68. package/templates/react/features/i18n/src/locales/lang/en.ts +29 -29
  69. package/templates/react/features/i18n/src/locales/lang/es.ts +29 -29
  70. package/templates/react/features/i18n/src/locales/lang/zh.ts +29 -29
  71. package/templates/react/features/i18n/src/main/features/i18n.ts +19 -19
  72. package/templates/react/features/manualRoutes/package.json +6 -6
  73. package/templates/react/features/manualRoutes/src/router/index.tsx +29 -29
  74. package/templates/react/features/manualRoutes/src/router/routes.tsx +35 -35
  75. package/templates/react/features/pageRoutes/package.json +5 -5
  76. package/templates/react/features/pageRoutes/src/router/index.tsx +30 -30
  77. package/templates/react/features/sentry/package.json +7 -7
  78. package/templates/react/features/sentry/src/main/features/sentry.ts +20 -20
  79. package/templates/react/features/sentry/src/utils/sentry.ts +39 -39
  80. package/templates/react/features/sentry/vite/features/sentry.ts +39 -39
  81. package/templates/react/features/zustand/package.json +5 -5
  82. package/templates/react/features/zustand/src/apis/types/user.ts +39 -39
  83. package/templates/react/features/zustand/src/stores/index.ts +5 -5
  84. package/templates/react/features/zustand/src/stores/user.ts +55 -55
  85. package/templates/react/features/zustand/src/types/stores.ts +21 -21
  86. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
  87. package/templates/react/micro-frontends/qiankun/base/package.json +8 -8
  88. package/templates/react/micro-frontends/qiankun/base/src/main/index.ts +34 -34
  89. package/templates/react/micro-frontends/qiankun/base/src/main.tsx +69 -69
  90. package/templates/react/micro-frontends/qiankun/base/vite/index.ts +53 -53
  91. package/templates/vue/base/env.d.ts +26 -26
  92. package/templates/vue/base/index.html +13 -13
  93. package/templates/vue/base/node_modules/.bin/vue-tsc +2 -2
  94. package/templates/vue/base/src/App.vue +13 -13
  95. package/templates/vue/base/src/directives/index.ts +35 -35
  96. package/templates/vue/base/src/layouts/index.ts +26 -26
  97. package/templates/vue/base/src/main/index.ts +36 -36
  98. package/templates/vue/base/src/main.ts +34 -34
  99. package/templates/vue/base/src/pages/about/index.vue +30 -30
  100. package/templates/vue/base/src/pages/home/index.vue +30 -30
  101. package/templates/vue/base/src/utils/index.ts +5 -5
  102. package/templates/vue/base/src/utils/modifyComponent.tsx +43 -43
  103. package/templates/vue/features/ant-design-vue/package.json +8 -8
  104. package/templates/vue/features/ant-design-vue/src/layouts/AntDesign.vue +85 -85
  105. package/templates/vue/features/ant-design-vue/src/main/features/ant-design-vue.ts +18 -18
  106. package/templates/vue/features/element-plus/package.json +10 -10
  107. package/templates/vue/features/element-plus/src/assets/styles/base.scss +69 -69
  108. package/templates/vue/features/element-plus/src/assets/styles/custom.scss +20 -20
  109. package/templates/vue/features/element-plus/src/assets/styles/element.scss +27 -27
  110. package/templates/vue/features/element-plus/src/assets/styles/main.scss +9 -9
  111. package/templates/vue/features/element-plus/src/assets/styles/tailwind.scss +3 -3
  112. package/templates/vue/features/element-plus/src/components/SubMenu/index.ts +8 -8
  113. package/templates/vue/features/element-plus/src/layouts/element.vue +117 -117
  114. package/templates/vue/features/element-plus/src/main/features/element-plus.ts +23 -23
  115. package/templates/vue/features/element-plus/src/stores/index.ts +6 -6
  116. package/templates/vue/features/element-plus/src/stores/modules/system.ts +51 -51
  117. package/templates/vue/features/element-plus/vite/features/element-plus.ts +35 -35
  118. package/templates/vue/features/i18n/package.json +7 -7
  119. package/templates/vue/features/i18n/src/locales/index.ts +23 -23
  120. package/templates/vue/features/i18n/src/locales/lang/en.ts +29 -29
  121. package/templates/vue/features/i18n/src/locales/lang/es.ts +29 -29
  122. package/templates/vue/features/i18n/src/locales/lang/zh.ts +29 -29
  123. package/templates/vue/features/i18n/src/main/features/i18n.ts +19 -19
  124. package/templates/vue/features/manualRoutes/package.json +12 -12
  125. package/templates/vue/features/manualRoutes/src/router/index.ts +34 -34
  126. package/templates/vue/features/manualRoutes/src/router/layout.vue +15 -15
  127. package/templates/vue/features/manualRoutes/src/router/routes.ts +26 -26
  128. package/templates/vue/features/manualRoutes/src/stores/index.ts +6 -6
  129. package/templates/vue/features/manualRoutes/src/stores/modules/system.ts +51 -51
  130. package/templates/vue/features/pageRoutes/package.json +12 -12
  131. package/templates/vue/features/pageRoutes/src/router/index.ts +35 -35
  132. package/templates/vue/features/pageRoutes/src/router/layout.vue +15 -15
  133. package/templates/vue/features/pageRoutes/src/stores/index.ts +6 -6
  134. package/templates/vue/features/pageRoutes/src/stores/modules/system.ts +51 -51
  135. package/templates/vue/features/pinia/package.json +8 -8
  136. package/templates/vue/features/pinia/src/main/features/pinia.ts +19 -19
  137. package/templates/vue/features/pinia/src/stores/index.ts +6 -6
  138. package/templates/vue/features/pinia/src/stores/modules/system.ts +51 -51
  139. package/templates/vue/features/pinia/src/stores/modules/user.ts +41 -41
  140. package/templates/vue/features/sentry/package.json +10 -10
  141. package/templates/vue/features/sentry/src/main/features/sentry.ts +22 -22
  142. package/templates/vue/features/sentry/src/stores/index.ts +13 -13
  143. package/templates/vue/features/sentry/src/utils/sentry.ts +44 -44
  144. package/templates/vue/features/sentry/vite/features/sentry.ts +39 -39
  145. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
  146. package/templates/vue/micro-frontends/qiankun/base/package.json +8 -8
  147. package/templates/vue/micro-frontends/qiankun/base/src/main/index.ts +36 -36
  148. package/templates/vue/micro-frontends/qiankun/base/src/main.ts +70 -70
  149. package/templates/vue/micro-frontends/qiankun/base/vite/index.ts +53 -53
  150. package/templates/vue/micro-frontends/qiankun/features/element-plus/package.json +10 -10
  151. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/base.scss +69 -69
  152. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/custom.scss +20 -20
  153. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/element/fixQiankun.scss +10 -10
  154. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/element/index.scss +29 -29
  155. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/main.scss +9 -9
  156. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/tailwind.scss +3 -3
  157. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/index.ts +8 -8
  158. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/src/_types/index.ts +1 -1
  159. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/src/_types/props.ts +16 -16
  160. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/src/index.vue +60 -60
  161. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/layouts/element.vue +120 -120
  162. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/main/features/element-plus.ts +24 -24
  163. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/stores/index.ts +6 -6
  164. package/templates/vue/micro-frontends/qiankun/features/element-plus/src/stores/modules/system.ts +51 -51
  165. package/templates/vue/micro-frontends/qiankun/features/element-plus/vite/features/element-plus.ts +35 -35
  166. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/package.json +14 -14
  167. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/router/index.ts +60 -60
  168. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/router/layout.vue +15 -15
  169. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/router/routes.ts +26 -26
  170. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/stores/index.ts +6 -6
  171. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/stores/modules/system.ts +51 -51
  172. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/package.json +14 -14
  173. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/router/index.ts +61 -61
  174. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/stores/index.ts +6 -6
  175. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/stores/modules/system.ts +51 -51
  176. package/dist/generators/react.d.ts +0 -12
  177. package/dist/generators/react.js +0 -14
  178. package/dist/generators/vue.d.ts +0 -12
  179. package/dist/generators/vue.js +0 -14
  180. package/dist/types/ejs.d.ts +0 -10
  181. package/dist/types/ejs.js +0 -4
  182. package/dist/types/viteConfig.d.ts +0 -19
  183. package/dist/types/viteConfig.js +0 -5
  184. package/dist/utils/ejs.d.ts +0 -20
  185. package/dist/utils/ejs.js +0 -31
  186. package/dist/utils/featureMapping.d.ts +0 -23
  187. package/dist/utils/featureMapping.js +0 -76
  188. package/dist/utils/generateFrameworkProject.d.ts +0 -15
  189. package/dist/utils/generateFrameworkProject.js +0 -67
  190. package/dist/utils/prompts.d.ts +0 -17
  191. package/dist/utils/prompts.js +0 -235
  192. package/dist/utils/renderFeatures.d.ts +0 -56
  193. package/dist/utils/renderFeatures.js +0 -160
  194. package/dist/utils/renderTemplate.d.ts +0 -18
  195. package/dist/utils/renderTemplate.js +0 -174
  196. package/dist/utils/routeModeMapping.d.ts +0 -14
  197. package/dist/utils/routeModeMapping.js +0 -15
  198. package/dist/utils/viteConfigRender.d.ts +0 -16
  199. package/dist/utils/viteConfigRender.js +0 -17
  200. package/templates/common/base/node_modules/.bin/autoprefixer.CMD +0 -12
  201. package/templates/common/base/node_modules/.bin/autoprefixer.ps1 +0 -41
  202. package/templates/common/base/node_modules/.bin/browserslist +0 -17
  203. package/templates/common/base/node_modules/.bin/browserslist.CMD +0 -12
  204. package/templates/common/base/node_modules/.bin/browserslist.ps1 +0 -41
  205. package/templates/common/base/node_modules/.bin/jiti.CMD +0 -12
  206. package/templates/common/base/node_modules/.bin/jiti.ps1 +0 -41
  207. package/templates/common/base/node_modules/.bin/parser +0 -17
  208. package/templates/common/base/node_modules/.bin/parser.CMD +0 -12
  209. package/templates/common/base/node_modules/.bin/parser.ps1 +0 -41
  210. package/templates/common/base/node_modules/.bin/rollup +0 -17
  211. package/templates/common/base/node_modules/.bin/rollup.CMD +0 -12
  212. package/templates/common/base/node_modules/.bin/rollup.ps1 +0 -41
  213. package/templates/common/base/node_modules/.bin/sass.CMD +0 -12
  214. package/templates/common/base/node_modules/.bin/sass.ps1 +0 -41
  215. package/templates/common/base/node_modules/.bin/terser +0 -17
  216. package/templates/common/base/node_modules/.bin/terser.CMD +0 -12
  217. package/templates/common/base/node_modules/.bin/terser.ps1 +0 -41
  218. package/templates/common/base/node_modules/.bin/tsc.CMD +0 -12
  219. package/templates/common/base/node_modules/.bin/tsc.ps1 +0 -41
  220. package/templates/common/base/node_modules/.bin/tsserver.CMD +0 -12
  221. package/templates/common/base/node_modules/.bin/tsserver.ps1 +0 -41
  222. package/templates/common/base/node_modules/.bin/tsx.CMD +0 -12
  223. package/templates/common/base/node_modules/.bin/tsx.ps1 +0 -41
  224. package/templates/common/base/node_modules/.bin/uuid.CMD +0 -12
  225. package/templates/common/base/node_modules/.bin/uuid.ps1 +0 -41
  226. package/templates/common/base/node_modules/.bin/vite.CMD +0 -12
  227. package/templates/common/base/node_modules/.bin/vite.ps1 +0 -41
  228. package/templates/common/base/node_modules/.bin/yaml +0 -17
  229. package/templates/common/base/node_modules/.bin/yaml.CMD +0 -12
  230. package/templates/common/base/node_modules/.bin/yaml.ps1 +0 -41
  231. package/templates/common/features/eslint/node_modules/.bin/browserslist +0 -17
  232. package/templates/common/features/eslint/node_modules/.bin/browserslist.CMD +0 -12
  233. package/templates/common/features/eslint/node_modules/.bin/browserslist.ps1 +0 -41
  234. package/templates/common/features/eslint/node_modules/.bin/eslint.CMD +0 -12
  235. package/templates/common/features/eslint/node_modules/.bin/eslint.ps1 +0 -41
  236. package/templates/common/features/eslint/node_modules/.bin/jiti +0 -17
  237. package/templates/common/features/eslint/node_modules/.bin/jiti.CMD +0 -12
  238. package/templates/common/features/eslint/node_modules/.bin/jiti.ps1 +0 -41
  239. package/templates/common/features/eslint/node_modules/.bin/tsc +0 -17
  240. package/templates/common/features/eslint/node_modules/.bin/tsc.CMD +0 -12
  241. package/templates/common/features/eslint/node_modules/.bin/tsc.ps1 +0 -41
  242. package/templates/common/features/eslint/node_modules/.bin/tsserver +0 -17
  243. package/templates/common/features/eslint/node_modules/.bin/tsserver.CMD +0 -12
  244. package/templates/common/features/eslint/node_modules/.bin/tsserver.ps1 +0 -41
  245. package/templates/common/features/husky/node_modules/.bin/commitizen.CMD +0 -12
  246. package/templates/common/features/husky/node_modules/.bin/commitizen.ps1 +0 -41
  247. package/templates/common/features/husky/node_modules/.bin/commitlint.CMD +0 -12
  248. package/templates/common/features/husky/node_modules/.bin/commitlint.ps1 +0 -41
  249. package/templates/common/features/husky/node_modules/.bin/cz-cust.CMD +0 -12
  250. package/templates/common/features/husky/node_modules/.bin/cz-cust.ps1 +0 -41
  251. package/templates/common/features/husky/node_modules/.bin/cz-customizable.CMD +0 -12
  252. package/templates/common/features/husky/node_modules/.bin/cz-customizable.ps1 +0 -41
  253. package/templates/common/features/husky/node_modules/.bin/cz.CMD +0 -12
  254. package/templates/common/features/husky/node_modules/.bin/cz.ps1 +0 -41
  255. package/templates/common/features/husky/node_modules/.bin/git-cz.CMD +0 -12
  256. package/templates/common/features/husky/node_modules/.bin/git-cz.ps1 +0 -41
  257. package/templates/common/features/husky/node_modules/.bin/husky.CMD +0 -12
  258. package/templates/common/features/husky/node_modules/.bin/husky.ps1 +0 -41
  259. package/templates/common/features/husky/node_modules/.bin/lint-staged.CMD +0 -12
  260. package/templates/common/features/husky/node_modules/.bin/lint-staged.ps1 +0 -41
  261. package/templates/common/features/husky/node_modules/.bin/tsc +0 -17
  262. package/templates/common/features/husky/node_modules/.bin/tsc.CMD +0 -12
  263. package/templates/common/features/husky/node_modules/.bin/tsc.ps1 +0 -41
  264. package/templates/common/features/husky/node_modules/.bin/tsserver +0 -17
  265. package/templates/common/features/husky/node_modules/.bin/tsserver.CMD +0 -12
  266. package/templates/common/features/husky/node_modules/.bin/tsserver.ps1 +0 -41
  267. package/templates/react/base/node_modules/.bin/browserslist +0 -17
  268. package/templates/react/base/node_modules/.bin/browserslist.CMD +0 -12
  269. package/templates/react/base/node_modules/.bin/browserslist.ps1 +0 -41
  270. package/templates/react/base/node_modules/.bin/jiti +0 -17
  271. package/templates/react/base/node_modules/.bin/jiti.CMD +0 -12
  272. package/templates/react/base/node_modules/.bin/jiti.ps1 +0 -41
  273. package/templates/react/base/node_modules/.bin/parser +0 -17
  274. package/templates/react/base/node_modules/.bin/parser.CMD +0 -12
  275. package/templates/react/base/node_modules/.bin/parser.ps1 +0 -41
  276. package/templates/react/base/node_modules/.bin/rollup +0 -17
  277. package/templates/react/base/node_modules/.bin/rollup.CMD +0 -12
  278. package/templates/react/base/node_modules/.bin/rollup.ps1 +0 -41
  279. package/templates/react/base/node_modules/.bin/sass +0 -17
  280. package/templates/react/base/node_modules/.bin/sass.CMD +0 -12
  281. package/templates/react/base/node_modules/.bin/sass.ps1 +0 -41
  282. package/templates/react/base/node_modules/.bin/terser +0 -17
  283. package/templates/react/base/node_modules/.bin/terser.CMD +0 -12
  284. package/templates/react/base/node_modules/.bin/terser.ps1 +0 -41
  285. package/templates/react/base/node_modules/.bin/tsc +0 -17
  286. package/templates/react/base/node_modules/.bin/tsc.CMD +0 -12
  287. package/templates/react/base/node_modules/.bin/tsc.ps1 +0 -41
  288. package/templates/react/base/node_modules/.bin/tsserver +0 -17
  289. package/templates/react/base/node_modules/.bin/tsserver.CMD +0 -12
  290. package/templates/react/base/node_modules/.bin/tsserver.ps1 +0 -41
  291. package/templates/react/base/node_modules/.bin/tsx +0 -17
  292. package/templates/react/base/node_modules/.bin/tsx.CMD +0 -12
  293. package/templates/react/base/node_modules/.bin/tsx.ps1 +0 -41
  294. package/templates/react/base/node_modules/.bin/vite +0 -17
  295. package/templates/react/base/node_modules/.bin/vite.CMD +0 -12
  296. package/templates/react/base/node_modules/.bin/vite.ps1 +0 -41
  297. package/templates/react/base/node_modules/.bin/yaml +0 -17
  298. package/templates/react/base/node_modules/.bin/yaml.CMD +0 -12
  299. package/templates/react/base/node_modules/.bin/yaml.ps1 +0 -41
  300. package/templates/react/features/i18n/node_modules/.bin/tsc +0 -17
  301. package/templates/react/features/i18n/node_modules/.bin/tsc.CMD +0 -12
  302. package/templates/react/features/i18n/node_modules/.bin/tsc.ps1 +0 -41
  303. package/templates/react/features/i18n/node_modules/.bin/tsserver +0 -17
  304. package/templates/react/features/i18n/node_modules/.bin/tsserver.CMD +0 -12
  305. package/templates/react/features/i18n/node_modules/.bin/tsserver.ps1 +0 -41
  306. package/templates/react/features/pageRoutes/node_modules/.bin/jiti +0 -17
  307. package/templates/react/features/pageRoutes/node_modules/.bin/jiti.CMD +0 -12
  308. package/templates/react/features/pageRoutes/node_modules/.bin/jiti.ps1 +0 -41
  309. package/templates/react/features/pageRoutes/node_modules/.bin/sass +0 -17
  310. package/templates/react/features/pageRoutes/node_modules/.bin/sass.CMD +0 -12
  311. package/templates/react/features/pageRoutes/node_modules/.bin/sass.ps1 +0 -41
  312. package/templates/react/features/pageRoutes/node_modules/.bin/terser +0 -17
  313. package/templates/react/features/pageRoutes/node_modules/.bin/terser.CMD +0 -12
  314. package/templates/react/features/pageRoutes/node_modules/.bin/terser.ps1 +0 -41
  315. package/templates/react/features/pageRoutes/node_modules/.bin/tsx +0 -17
  316. package/templates/react/features/pageRoutes/node_modules/.bin/tsx.CMD +0 -12
  317. package/templates/react/features/pageRoutes/node_modules/.bin/tsx.ps1 +0 -41
  318. package/templates/react/features/pageRoutes/node_modules/.bin/vite +0 -17
  319. package/templates/react/features/pageRoutes/node_modules/.bin/vite.CMD +0 -12
  320. package/templates/react/features/pageRoutes/node_modules/.bin/vite.ps1 +0 -41
  321. package/templates/react/features/pageRoutes/node_modules/.bin/yaml +0 -17
  322. package/templates/react/features/pageRoutes/node_modules/.bin/yaml.CMD +0 -12
  323. package/templates/react/features/pageRoutes/node_modules/.bin/yaml.ps1 +0 -41
  324. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist +0 -17
  325. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist.CMD +0 -12
  326. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist.ps1 +0 -41
  327. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti +0 -17
  328. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti.CMD +0 -12
  329. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti.ps1 +0 -41
  330. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser +0 -17
  331. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser.CMD +0 -12
  332. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser.ps1 +0 -41
  333. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup +0 -17
  334. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup.CMD +0 -12
  335. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup.ps1 +0 -41
  336. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass +0 -17
  337. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass.CMD +0 -12
  338. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass.ps1 +0 -41
  339. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser +0 -17
  340. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser.CMD +0 -12
  341. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser.ps1 +0 -41
  342. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc +0 -17
  343. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc.CMD +0 -12
  344. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc.ps1 +0 -41
  345. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver +0 -17
  346. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver.CMD +0 -12
  347. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver.ps1 +0 -41
  348. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx +0 -17
  349. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx.CMD +0 -12
  350. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx.ps1 +0 -41
  351. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite.CMD +0 -12
  352. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite.ps1 +0 -41
  353. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml +0 -17
  354. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml.CMD +0 -12
  355. package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml.ps1 +0 -41
  356. package/templates/vue/base/node_modules/.bin/browserslist +0 -17
  357. package/templates/vue/base/node_modules/.bin/browserslist.CMD +0 -12
  358. package/templates/vue/base/node_modules/.bin/browserslist.ps1 +0 -41
  359. package/templates/vue/base/node_modules/.bin/jiti +0 -17
  360. package/templates/vue/base/node_modules/.bin/jiti.CMD +0 -12
  361. package/templates/vue/base/node_modules/.bin/jiti.ps1 +0 -41
  362. package/templates/vue/base/node_modules/.bin/parser +0 -17
  363. package/templates/vue/base/node_modules/.bin/parser.CMD +0 -12
  364. package/templates/vue/base/node_modules/.bin/parser.ps1 +0 -41
  365. package/templates/vue/base/node_modules/.bin/rollup +0 -17
  366. package/templates/vue/base/node_modules/.bin/rollup.CMD +0 -12
  367. package/templates/vue/base/node_modules/.bin/rollup.ps1 +0 -41
  368. package/templates/vue/base/node_modules/.bin/sass +0 -17
  369. package/templates/vue/base/node_modules/.bin/sass.CMD +0 -12
  370. package/templates/vue/base/node_modules/.bin/sass.ps1 +0 -41
  371. package/templates/vue/base/node_modules/.bin/terser +0 -17
  372. package/templates/vue/base/node_modules/.bin/terser.CMD +0 -12
  373. package/templates/vue/base/node_modules/.bin/terser.ps1 +0 -41
  374. package/templates/vue/base/node_modules/.bin/tsc +0 -17
  375. package/templates/vue/base/node_modules/.bin/tsc.CMD +0 -12
  376. package/templates/vue/base/node_modules/.bin/tsc.ps1 +0 -41
  377. package/templates/vue/base/node_modules/.bin/tsserver +0 -17
  378. package/templates/vue/base/node_modules/.bin/tsserver.CMD +0 -12
  379. package/templates/vue/base/node_modules/.bin/tsserver.ps1 +0 -41
  380. package/templates/vue/base/node_modules/.bin/tsx +0 -17
  381. package/templates/vue/base/node_modules/.bin/tsx.CMD +0 -12
  382. package/templates/vue/base/node_modules/.bin/tsx.ps1 +0 -41
  383. package/templates/vue/base/node_modules/.bin/vite +0 -17
  384. package/templates/vue/base/node_modules/.bin/vite.CMD +0 -12
  385. package/templates/vue/base/node_modules/.bin/vite.ps1 +0 -41
  386. package/templates/vue/base/node_modules/.bin/vue-tsc.CMD +0 -12
  387. package/templates/vue/base/node_modules/.bin/vue-tsc.ps1 +0 -41
  388. package/templates/vue/base/node_modules/.bin/yaml +0 -17
  389. package/templates/vue/base/node_modules/.bin/yaml.CMD +0 -12
  390. package/templates/vue/base/node_modules/.bin/yaml.ps1 +0 -41
  391. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc +0 -17
  392. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc.CMD +0 -12
  393. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc.ps1 +0 -41
  394. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver +0 -17
  395. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver.CMD +0 -12
  396. package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver.ps1 +0 -41
  397. package/templates/vue/features/element-plus/node_modules/.bin/tsc +0 -17
  398. package/templates/vue/features/element-plus/node_modules/.bin/tsc.CMD +0 -12
  399. package/templates/vue/features/element-plus/node_modules/.bin/tsc.ps1 +0 -41
  400. package/templates/vue/features/element-plus/node_modules/.bin/tsserver +0 -17
  401. package/templates/vue/features/element-plus/node_modules/.bin/tsserver.CMD +0 -12
  402. package/templates/vue/features/element-plus/node_modules/.bin/tsserver.ps1 +0 -41
  403. package/templates/vue/features/i18n/node_modules/.bin/tsc +0 -17
  404. package/templates/vue/features/i18n/node_modules/.bin/tsc.CMD +0 -12
  405. package/templates/vue/features/i18n/node_modules/.bin/tsc.ps1 +0 -41
  406. package/templates/vue/features/i18n/node_modules/.bin/tsserver +0 -17
  407. package/templates/vue/features/i18n/node_modules/.bin/tsserver.CMD +0 -12
  408. package/templates/vue/features/i18n/node_modules/.bin/tsserver.ps1 +0 -41
  409. package/templates/vue/features/manualRoutes/node_modules/.bin/jiti +0 -17
  410. package/templates/vue/features/manualRoutes/node_modules/.bin/jiti.CMD +0 -12
  411. package/templates/vue/features/manualRoutes/node_modules/.bin/jiti.ps1 +0 -41
  412. package/templates/vue/features/manualRoutes/node_modules/.bin/sass +0 -17
  413. package/templates/vue/features/manualRoutes/node_modules/.bin/sass.CMD +0 -12
  414. package/templates/vue/features/manualRoutes/node_modules/.bin/sass.ps1 +0 -41
  415. package/templates/vue/features/manualRoutes/node_modules/.bin/terser +0 -17
  416. package/templates/vue/features/manualRoutes/node_modules/.bin/terser.CMD +0 -12
  417. package/templates/vue/features/manualRoutes/node_modules/.bin/terser.ps1 +0 -41
  418. package/templates/vue/features/manualRoutes/node_modules/.bin/tsc +0 -17
  419. package/templates/vue/features/manualRoutes/node_modules/.bin/tsc.CMD +0 -12
  420. package/templates/vue/features/manualRoutes/node_modules/.bin/tsc.ps1 +0 -41
  421. package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver +0 -17
  422. package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver.CMD +0 -12
  423. package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver.ps1 +0 -41
  424. package/templates/vue/features/manualRoutes/node_modules/.bin/tsx +0 -17
  425. package/templates/vue/features/manualRoutes/node_modules/.bin/tsx.CMD +0 -12
  426. package/templates/vue/features/manualRoutes/node_modules/.bin/tsx.ps1 +0 -41
  427. package/templates/vue/features/manualRoutes/node_modules/.bin/vite +0 -17
  428. package/templates/vue/features/manualRoutes/node_modules/.bin/vite.CMD +0 -12
  429. package/templates/vue/features/manualRoutes/node_modules/.bin/vite.ps1 +0 -41
  430. package/templates/vue/features/manualRoutes/node_modules/.bin/yaml +0 -17
  431. package/templates/vue/features/manualRoutes/node_modules/.bin/yaml.CMD +0 -12
  432. package/templates/vue/features/manualRoutes/node_modules/.bin/yaml.ps1 +0 -41
  433. package/templates/vue/features/pageRoutes/node_modules/.bin/jiti +0 -17
  434. package/templates/vue/features/pageRoutes/node_modules/.bin/jiti.CMD +0 -12
  435. package/templates/vue/features/pageRoutes/node_modules/.bin/jiti.ps1 +0 -41
  436. package/templates/vue/features/pageRoutes/node_modules/.bin/sass +0 -17
  437. package/templates/vue/features/pageRoutes/node_modules/.bin/sass.CMD +0 -12
  438. package/templates/vue/features/pageRoutes/node_modules/.bin/sass.ps1 +0 -41
  439. package/templates/vue/features/pageRoutes/node_modules/.bin/terser +0 -17
  440. package/templates/vue/features/pageRoutes/node_modules/.bin/terser.CMD +0 -12
  441. package/templates/vue/features/pageRoutes/node_modules/.bin/terser.ps1 +0 -41
  442. package/templates/vue/features/pageRoutes/node_modules/.bin/tsc +0 -17
  443. package/templates/vue/features/pageRoutes/node_modules/.bin/tsc.CMD +0 -12
  444. package/templates/vue/features/pageRoutes/node_modules/.bin/tsc.ps1 +0 -41
  445. package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver +0 -17
  446. package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver.CMD +0 -12
  447. package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver.ps1 +0 -41
  448. package/templates/vue/features/pageRoutes/node_modules/.bin/tsx +0 -17
  449. package/templates/vue/features/pageRoutes/node_modules/.bin/tsx.CMD +0 -12
  450. package/templates/vue/features/pageRoutes/node_modules/.bin/tsx.ps1 +0 -41
  451. package/templates/vue/features/pageRoutes/node_modules/.bin/vite +0 -17
  452. package/templates/vue/features/pageRoutes/node_modules/.bin/vite.CMD +0 -12
  453. package/templates/vue/features/pageRoutes/node_modules/.bin/vite.ps1 +0 -41
  454. package/templates/vue/features/pageRoutes/node_modules/.bin/yaml +0 -17
  455. package/templates/vue/features/pageRoutes/node_modules/.bin/yaml.CMD +0 -12
  456. package/templates/vue/features/pageRoutes/node_modules/.bin/yaml.ps1 +0 -41
  457. package/templates/vue/features/pinia/node_modules/.bin/tsc +0 -17
  458. package/templates/vue/features/pinia/node_modules/.bin/tsc.CMD +0 -12
  459. package/templates/vue/features/pinia/node_modules/.bin/tsc.ps1 +0 -41
  460. package/templates/vue/features/pinia/node_modules/.bin/tsserver +0 -17
  461. package/templates/vue/features/pinia/node_modules/.bin/tsserver.CMD +0 -12
  462. package/templates/vue/features/pinia/node_modules/.bin/tsserver.ps1 +0 -41
  463. package/templates/vue/features/sentry/node_modules/.bin/tsc +0 -17
  464. package/templates/vue/features/sentry/node_modules/.bin/tsc.CMD +0 -12
  465. package/templates/vue/features/sentry/node_modules/.bin/tsc.ps1 +0 -41
  466. package/templates/vue/features/sentry/node_modules/.bin/tsserver +0 -17
  467. package/templates/vue/features/sentry/node_modules/.bin/tsserver.CMD +0 -12
  468. package/templates/vue/features/sentry/node_modules/.bin/tsserver.ps1 +0 -41
  469. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist +0 -17
  470. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist.CMD +0 -12
  471. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist.ps1 +0 -41
  472. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti +0 -17
  473. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti.CMD +0 -12
  474. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti.ps1 +0 -41
  475. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser +0 -17
  476. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser.CMD +0 -12
  477. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser.ps1 +0 -41
  478. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup +0 -17
  479. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup.CMD +0 -12
  480. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup.ps1 +0 -41
  481. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass +0 -17
  482. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass.CMD +0 -12
  483. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass.ps1 +0 -41
  484. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser +0 -17
  485. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser.CMD +0 -12
  486. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser.ps1 +0 -41
  487. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc +0 -17
  488. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc.CMD +0 -12
  489. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc.ps1 +0 -41
  490. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver +0 -17
  491. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver.CMD +0 -12
  492. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver.ps1 +0 -41
  493. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx +0 -17
  494. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx.CMD +0 -12
  495. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx.ps1 +0 -41
  496. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite.CMD +0 -12
  497. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite.ps1 +0 -41
  498. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml +0 -17
  499. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml.CMD +0 -12
  500. package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml.ps1 +0 -41
  501. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti +0 -17
  502. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti.CMD +0 -12
  503. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti.ps1 +0 -41
  504. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass +0 -17
  505. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass.CMD +0 -12
  506. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass.ps1 +0 -41
  507. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser +0 -17
  508. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser.CMD +0 -12
  509. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser.ps1 +0 -41
  510. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc +0 -17
  511. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc.CMD +0 -12
  512. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc.ps1 +0 -41
  513. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver +0 -17
  514. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver.CMD +0 -12
  515. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver.ps1 +0 -41
  516. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx +0 -17
  517. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx.CMD +0 -12
  518. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx.ps1 +0 -41
  519. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite +0 -17
  520. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite.CMD +0 -12
  521. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite.ps1 +0 -41
  522. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml +0 -17
  523. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml.CMD +0 -12
  524. package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml.ps1 +0 -41
  525. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti +0 -17
  526. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti.CMD +0 -12
  527. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti.ps1 +0 -41
  528. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass +0 -17
  529. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass.CMD +0 -12
  530. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass.ps1 +0 -41
  531. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser +0 -17
  532. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser.CMD +0 -12
  533. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser.ps1 +0 -41
  534. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc +0 -17
  535. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc.CMD +0 -12
  536. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc.ps1 +0 -41
  537. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver +0 -17
  538. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver.CMD +0 -12
  539. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver.ps1 +0 -41
  540. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx +0 -17
  541. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx.CMD +0 -12
  542. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx.ps1 +0 -41
  543. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite +0 -17
  544. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite.CMD +0 -12
  545. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite.ps1 +0 -41
  546. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml +0 -17
  547. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml.CMD +0 -12
  548. package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml.ps1 +0 -41
  549. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti +0 -17
  550. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti.CMD +0 -12
  551. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti.ps1 +0 -41
  552. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass +0 -17
  553. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass.CMD +0 -12
  554. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass.ps1 +0 -41
  555. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser +0 -17
  556. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser.CMD +0 -12
  557. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser.ps1 +0 -41
  558. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc +0 -17
  559. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc.CMD +0 -12
  560. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc.ps1 +0 -41
  561. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver +0 -17
  562. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver.CMD +0 -12
  563. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver.ps1 +0 -41
  564. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx +0 -17
  565. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx.CMD +0 -12
  566. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx.ps1 +0 -41
  567. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite +0 -17
  568. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite.CMD +0 -12
  569. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite.ps1 +0 -41
  570. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml +0 -17
  571. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml.CMD +0 -12
  572. package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml.ps1 +0 -41
@@ -1,39 +1,39 @@
1
- /**
2
- * 用户类型定义
3
- */
4
-
5
- /**
6
- * 用户信息类型
7
- */
8
- export interface UserInfoType {
9
- /** 用户 ID */
10
- id: string
11
- /** 用户名 */
12
- username: string
13
- /** 邮箱 */
14
- email: string
15
- /** 头像 URL(可选) */
16
- avatar?: string
17
- /** 角色列表 */
18
- roles: string[]
19
- }
20
-
21
- /**
22
- * 登录参数类型
23
- */
24
- export interface LoginParamsType {
25
- /** 用户名 */
26
- username: string
27
- /** 密码 */
28
- password: string
29
- }
30
-
31
- /**
32
- * 登录响应类型
33
- */
34
- export interface LoginResponseType {
35
- /** 认证 token */
36
- token: string
37
- /** 用户信息 */
38
- userInfo: UserInfoType
39
- }
1
+ /**
2
+ * 用户类型定义
3
+ */
4
+
5
+ /**
6
+ * 用户信息类型
7
+ */
8
+ export interface UserInfoType {
9
+ /** 用户 ID */
10
+ id: string
11
+ /** 用户名 */
12
+ username: string
13
+ /** 邮箱 */
14
+ email: string
15
+ /** 头像 URL(可选) */
16
+ avatar?: string
17
+ /** 角色列表 */
18
+ roles: string[]
19
+ }
20
+
21
+ /**
22
+ * 登录参数类型
23
+ */
24
+ export interface LoginParamsType {
25
+ /** 用户名 */
26
+ username: string
27
+ /** 密码 */
28
+ password: string
29
+ }
30
+
31
+ /**
32
+ * 登录响应类型
33
+ */
34
+ export interface LoginResponseType {
35
+ /** 认证 token */
36
+ token: string
37
+ /** 用户信息 */
38
+ userInfo: UserInfoType
39
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * Zustand 状态管理配置
3
- */
4
-
5
- export * from './user'
1
+ /**
2
+ * Zustand 状态管理配置
3
+ */
4
+
5
+ export * from './user'
@@ -1,55 +1,55 @@
1
- /**
2
- * 用户状态管理
3
- * 基于 Zustand
4
- */
5
-
6
- import { create } from 'zustand'
7
- import { persist } from 'zustand/middleware'
8
-
9
- /**
10
- * 用户信息接口
11
- */
12
- interface UserInfo {
13
- /** 用户 ID */
14
- id: string
15
- /** 用户名 */
16
- username: string
17
- /** 邮箱 */
18
- email: string
19
- /** 头像 URL(可选) */
20
- avatar?: string
21
- /** 角色列表 */
22
- roles: string[]
23
- }
24
-
25
- /**
26
- * 用户状态接口
27
- */
28
- interface UserState {
29
- /** 用户信息 */
30
- userInfo: UserInfo | null
31
- /** 认证 token */
32
- token: string
33
- /** 设置用户信息 */
34
- setUserInfo: (info: UserInfo | null) => void
35
- /** 设置 token */
36
- setToken: (token: string) => void
37
- /** 清除用户信息 */
38
- clearUser: () => void
39
- }
40
-
41
- export const useUserStore = create<UserState>()(
42
- persist(
43
- set => ({
44
- userInfo: null,
45
- token: '',
46
- setUserInfo: info => set({ userInfo: info }),
47
- setToken: token => set({ token }),
48
- clearUser: () => set({ userInfo: null, token: '' }),
49
- }),
50
- {
51
- name: 'user-storage',
52
- partialize: state => ({ token: state.token }),
53
- },
54
- ),
55
- )
1
+ /**
2
+ * 用户状态管理
3
+ * 基于 Zustand
4
+ */
5
+
6
+ import { create } from 'zustand'
7
+ import { persist } from 'zustand/middleware'
8
+
9
+ /**
10
+ * 用户信息接口
11
+ */
12
+ interface UserInfo {
13
+ /** 用户 ID */
14
+ id: string
15
+ /** 用户名 */
16
+ username: string
17
+ /** 邮箱 */
18
+ email: string
19
+ /** 头像 URL(可选) */
20
+ avatar?: string
21
+ /** 角色列表 */
22
+ roles: string[]
23
+ }
24
+
25
+ /**
26
+ * 用户状态接口
27
+ */
28
+ interface UserState {
29
+ /** 用户信息 */
30
+ userInfo: UserInfo | null
31
+ /** 认证 token */
32
+ token: string
33
+ /** 设置用户信息 */
34
+ setUserInfo: (info: UserInfo | null) => void
35
+ /** 设置 token */
36
+ setToken: (token: string) => void
37
+ /** 清除用户信息 */
38
+ clearUser: () => void
39
+ }
40
+
41
+ export const useUserStore = create<UserState>()(
42
+ persist(
43
+ set => ({
44
+ userInfo: null,
45
+ token: '',
46
+ setUserInfo: info => set({ userInfo: info }),
47
+ setToken: token => set({ token }),
48
+ clearUser: () => set({ userInfo: null, token: '' }),
49
+ }),
50
+ {
51
+ name: 'user-storage',
52
+ partialize: state => ({ token: state.token }),
53
+ },
54
+ ),
55
+ )
@@ -1,21 +1,21 @@
1
- /**
2
- * Store 类型定义
3
- */
4
-
5
- import type { UserInfoType } from '@/apis/types/user'
6
-
7
- /**
8
- * 用户 Store 状态类型
9
- */
10
- export interface UserStateType {
11
- /** 认证 token */
12
- token: string
13
- /** 用户信息 */
14
- userInfo: UserInfoType | null
15
- /** 设置 token */
16
- setToken: (token: string) => void
17
- /** 设置用户信息 */
18
- setUserInfo: (info: UserInfoType) => void
19
- /** 登出 */
20
- logout: () => void
21
- }
1
+ /**
2
+ * Store 类型定义
3
+ */
4
+
5
+ import type { UserInfoType } from '@/apis/types/user'
6
+
7
+ /**
8
+ * 用户 Store 状态类型
9
+ */
10
+ export interface UserStateType {
11
+ /** 认证 token */
12
+ token: string
13
+ /** 用户信息 */
14
+ userInfo: UserInfoType | null
15
+ /** 设置 token */
16
+ setToken: (token: string) => void
17
+ /** 设置用户信息 */
18
+ setUserInfo: (info: UserInfoType) => void
19
+ /** 登出 */
20
+ logout: () => void
21
+ }
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22._a442b9e867f9e314d66f8a1e734ad862/node_modules:/mnt/e/project/template/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
11
+ export NODE_PATH="/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/bin/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules/vite/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/vite@7.1.11_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.1_sass-embedded@1.97.1_sas_a442b9e867f9e314d66f8a1e734ad862/node_modules:/home/runner/work/vite-cli/vite-cli/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
@@ -1,8 +1,8 @@
1
- {
2
- "dependencies": {
3
- "vite-plugin-qiankun": "^1.0.15"
4
- },
5
- "devDependencies": {
6
- "vite": "7.1.11"
7
- }
8
- }
1
+ {
2
+ "dependencies": {
3
+ "vite-plugin-qiankun": "^1.0.15"
4
+ },
5
+ "devDependencies": {
6
+ "vite": "7.1.11"
7
+ }
8
+ }
@@ -1,34 +1,34 @@
1
- /**
2
- * Feature 设置模块 - Qiankun 微前端模式
3
- * 使用 Vite 的 glob 导入自动发现并加载所有 feature 模块
4
- */
5
-
6
- import type { Router } from 'react-router-dom'
7
-
8
- /**
9
- * Feature 模块接口
10
- */
11
- interface FeatureModule {
12
- /** 初始化 feature 的设置函数 */
13
- setup?: (router?: Router) => void | Promise<void>
14
- /** 执行顺序(数字越小越先执行) */
15
- order?: number
16
- }
17
-
18
- // 自动发现所有 feature 模块
19
- const featureModules = import.meta.glob('./features/*.ts', { eager: true })
20
-
21
- /**
22
- * 设置所有 features
23
- * @param router - React Router 实例(可选)
24
- */
25
- export async function setupFeatures(router?: Router): Promise<void> {
26
- const modules = Object.values(featureModules) as FeatureModule[]
27
-
28
- // 按顺序排序(默认 100)
29
- modules.sort((a, b) => (a.order ?? 100) - (b.order ?? 100))
30
-
31
- for (const mod of modules) {
32
- await mod.setup?.(router)
33
- }
34
- }
1
+ /**
2
+ * Feature 设置模块 - Qiankun 微前端模式
3
+ * 使用 Vite 的 glob 导入自动发现并加载所有 feature 模块
4
+ */
5
+
6
+ import type { Router } from 'react-router-dom'
7
+
8
+ /**
9
+ * Feature 模块接口
10
+ */
11
+ interface FeatureModule {
12
+ /** 初始化 feature 的设置函数 */
13
+ setup?: (router?: Router) => void | Promise<void>
14
+ /** 执行顺序(数字越小越先执行) */
15
+ order?: number
16
+ }
17
+
18
+ // 自动发现所有 feature 模块
19
+ const featureModules = import.meta.glob('./features/*.ts', { eager: true })
20
+
21
+ /**
22
+ * 设置所有 features
23
+ * @param router - React Router 实例(可选)
24
+ */
25
+ export async function setupFeatures(router?: Router): Promise<void> {
26
+ const modules = Object.values(featureModules) as FeatureModule[]
27
+
28
+ // 按顺序排序(默认 100)
29
+ modules.sort((a, b) => (a.order ?? 100) - (b.order ?? 100))
30
+
31
+ for (const mod of modules) {
32
+ await mod.setup?.(router)
33
+ }
34
+ }
@@ -1,69 +1,69 @@
1
- /**
2
- * Application entry file - Qiankun micro-frontend mode
3
- * Initialize React application and mount to DOM (supports qiankun lifecycle)
4
- */
5
-
6
- import { qiankunWindow, renderWithQiankun } from 'vite-plugin-qiankun/dist/helper'
7
- import React from 'react'
8
- import ReactDOM from 'react-dom/client'
9
- import { RouterProvider } from 'react-router-dom'
10
- import { createRouter } from '@/router'
11
- import { setupFeatures } from './main/index'
12
-
13
- // Import styles
14
- import '@/assets/styles/main.scss'
15
- import '@/assets/fonts/index.css'
16
-
17
- let root: ReturnType<typeof ReactDOM.createRoot> | null = null
18
-
19
- /**
20
- * Render application
21
- * @param props - Render props from qiankun
22
- */
23
- async function render(props: Record<string, unknown> = {}): Promise<void> {
24
- const { container } = props as { container?: Element }
25
-
26
- const basename = qiankunWindow.__POWERED_BY_QIANKUN__
27
- ? (qiankunWindow as { __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: string }).__INJECTED_PUBLIC_PATH_BY_QIANKUN__?.split('/')[1]
28
- : undefined
29
- const router = createRouter({ basename })
30
-
31
- // Setup all features (i18n, sentry, etc.)
32
- await setupFeatures(router)
33
-
34
- const containerElement = container
35
- ? container.querySelector('#root') || container
36
- : document.getElementById('root')!
37
-
38
- root = ReactDOM.createRoot(containerElement)
39
- root.render(
40
- <React.StrictMode>
41
- <RouterProvider router={router} />
42
- </React.StrictMode>,
43
- )
44
- }
45
-
46
- // Qiankun lifecycle
47
- if (!qiankunWindow.__POWERED_BY_QIANKUN__) {
48
- // Standalone mode
49
- render({})
50
- }
51
- else {
52
- // Micro-frontend mode
53
- renderWithQiankun({
54
- async mount(props: Record<string, unknown>) {
55
- await render(props)
56
- },
57
- bootstrap() {
58
- console.log('[Qiankun] React app bootstrapped')
59
- },
60
- unmount() {
61
- root?.unmount()
62
- root = null
63
- console.log('[Qiankun] React app unmounted')
64
- },
65
- update() {
66
- console.log('[Qiankun] React app updated')
67
- },
68
- })
69
- }
1
+ /**
2
+ * Application entry file - Qiankun micro-frontend mode
3
+ * Initialize React application and mount to DOM (supports qiankun lifecycle)
4
+ */
5
+
6
+ import { qiankunWindow, renderWithQiankun } from 'vite-plugin-qiankun/dist/helper'
7
+ import React from 'react'
8
+ import ReactDOM from 'react-dom/client'
9
+ import { RouterProvider } from 'react-router-dom'
10
+ import { createRouter } from '@/router'
11
+ import { setupFeatures } from './main/index'
12
+
13
+ // Import styles
14
+ import '@/assets/styles/main.scss'
15
+ import '@/assets/fonts/index.css'
16
+
17
+ let root: ReturnType<typeof ReactDOM.createRoot> | null = null
18
+
19
+ /**
20
+ * Render application
21
+ * @param props - Render props from qiankun
22
+ */
23
+ async function render(props: Record<string, unknown> = {}): Promise<void> {
24
+ const { container } = props as { container?: Element }
25
+
26
+ const basename = qiankunWindow.__POWERED_BY_QIANKUN__
27
+ ? (qiankunWindow as { __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: string }).__INJECTED_PUBLIC_PATH_BY_QIANKUN__?.split('/')[1]
28
+ : undefined
29
+ const router = createRouter({ basename })
30
+
31
+ // Setup all features (i18n, sentry, etc.)
32
+ await setupFeatures(router)
33
+
34
+ const containerElement = container
35
+ ? container.querySelector('#root') || container
36
+ : document.getElementById('root')!
37
+
38
+ root = ReactDOM.createRoot(containerElement)
39
+ root.render(
40
+ <React.StrictMode>
41
+ <RouterProvider router={router} />
42
+ </React.StrictMode>,
43
+ )
44
+ }
45
+
46
+ // Qiankun lifecycle
47
+ if (!qiankunWindow.__POWERED_BY_QIANKUN__) {
48
+ // Standalone mode
49
+ render({})
50
+ }
51
+ else {
52
+ // Micro-frontend mode
53
+ renderWithQiankun({
54
+ async mount(props: Record<string, unknown>) {
55
+ await render(props)
56
+ },
57
+ bootstrap() {
58
+ console.log('[Qiankun] React app bootstrapped')
59
+ },
60
+ unmount() {
61
+ root?.unmount()
62
+ root = null
63
+ console.log('[Qiankun] React app unmounted')
64
+ },
65
+ update() {
66
+ console.log('[Qiankun] React app updated')
67
+ },
68
+ })
69
+ }
@@ -1,53 +1,53 @@
1
- import fs from 'node:fs'
2
- import path from 'node:path'
3
- import { fileURLToPath } from 'node:url'
4
- import { mergeConfig } from 'vite'
5
- import type { UserConfig } from 'vite'
6
- import { createJiti } from 'jiti'
7
-
8
- const __dirname = path.dirname(fileURLToPath(import.meta.url))
9
- const _require = createJiti(import.meta.url, { interopDefault: true })
10
-
11
- /**
12
- * Vite feature 配置上下文
13
- */
14
- export interface ViteFeatureContext {
15
- /** Vite 环境变量 */
16
- viteEnv: Record<string, any>
17
- /** 构建模式 */
18
- mode: string
19
- /** 应用代码 */
20
- appCode: string
21
- }
22
-
23
- /**
24
- * 加载所有 feature 的 Vite 配置
25
- * @param ctx - feature 配置上下文
26
- * @returns 合并后的 UserConfig
27
- */
28
- export function loadFeatureConfigs(ctx: ViteFeatureContext): UserConfig {
29
- const featuresDir = path.resolve(__dirname, 'features')
30
-
31
- if (!fs.existsSync(featuresDir)) {
32
- return {}
33
- }
34
-
35
- const featureFiles = fs.readdirSync(featuresDir).filter(f => f.endsWith('.ts'))
36
- const configs: UserConfig[] = []
37
-
38
- for (const file of featureFiles) {
39
- try {
40
- const filePath = path.resolve(featuresDir, file)
41
- const mod = _require(filePath)
42
- const config = mod.default(ctx)
43
- if (config) {
44
- configs.push(config)
45
- }
46
- }
47
- catch (e) {
48
- console.warn(`[Vite] Failed to load feature config: ${file}`, e)
49
- }
50
- }
51
-
52
- return configs.reduce((acc, cfg) => mergeConfig(acc, cfg), {} as UserConfig)
53
- }
1
+ import fs from 'node:fs'
2
+ import path from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+ import { mergeConfig } from 'vite'
5
+ import type { UserConfig } from 'vite'
6
+ import { createJiti } from 'jiti'
7
+
8
+ const __dirname = path.dirname(fileURLToPath(import.meta.url))
9
+ const _require = createJiti(import.meta.url, { interopDefault: true })
10
+
11
+ /**
12
+ * Vite feature 配置上下文
13
+ */
14
+ export interface ViteFeatureContext {
15
+ /** Vite 环境变量 */
16
+ viteEnv: Record<string, any>
17
+ /** 构建模式 */
18
+ mode: string
19
+ /** 应用代码 */
20
+ appCode: string
21
+ }
22
+
23
+ /**
24
+ * 加载所有 feature 的 Vite 配置
25
+ * @param ctx - feature 配置上下文
26
+ * @returns 合并后的 UserConfig
27
+ */
28
+ export function loadFeatureConfigs(ctx: ViteFeatureContext): UserConfig {
29
+ const featuresDir = path.resolve(__dirname, 'features')
30
+
31
+ if (!fs.existsSync(featuresDir)) {
32
+ return {}
33
+ }
34
+
35
+ const featureFiles = fs.readdirSync(featuresDir).filter(f => f.endsWith('.ts'))
36
+ const configs: UserConfig[] = []
37
+
38
+ for (const file of featureFiles) {
39
+ try {
40
+ const filePath = path.resolve(featuresDir, file)
41
+ const mod = _require(filePath)
42
+ const config = mod.default(ctx)
43
+ if (config) {
44
+ configs.push(config)
45
+ }
46
+ }
47
+ catch (e) {
48
+ console.warn(`[Vite] Failed to load feature config: ${file}`, e)
49
+ }
50
+ }
51
+
52
+ return configs.reduce((acc, cfg) => mergeConfig(acc, cfg), {} as UserConfig)
53
+ }
@@ -1,26 +1,26 @@
1
- /**
2
- * 环境变量类型声明
3
- */
4
-
5
- /// <reference types="vite/client" />
6
-
7
- interface ImportMetaEnv {
8
- readonly VITE_APP_CODE: string
9
- readonly VITE_APP_TITLE: string
10
- readonly VITE_APP_PORT: number
11
- readonly VITE_APP_VERSION: string
12
- readonly VITE_APP_ENV: string
13
- readonly VITE_API_BASE_URL: string
14
- readonly VITE_SENTRY: boolean
15
- }
16
-
17
- interface ImportMeta {
18
- readonly env: ImportMetaEnv
19
- }
20
-
21
- declare module '*.vue' {
22
- import type { DefineComponent } from 'vue'
23
-
24
- const component: DefineComponent<object, object, unknown>
25
- export default component
26
- }
1
+ /**
2
+ * 环境变量类型声明
3
+ */
4
+
5
+ /// <reference types="vite/client" />
6
+
7
+ interface ImportMetaEnv {
8
+ readonly VITE_APP_CODE: string
9
+ readonly VITE_APP_TITLE: string
10
+ readonly VITE_APP_PORT: number
11
+ readonly VITE_APP_VERSION: string
12
+ readonly VITE_APP_ENV: string
13
+ readonly VITE_API_BASE_URL: string
14
+ readonly VITE_SENTRY: boolean
15
+ }
16
+
17
+ interface ImportMeta {
18
+ readonly env: ImportMetaEnv
19
+ }
20
+
21
+ declare module '*.vue' {
22
+ import type { DefineComponent } from 'vue'
23
+
24
+ const component: DefineComponent<object, object, unknown>
25
+ export default component
26
+ }