@moluoxixi/create-app 2.0.432 → 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.
- package/LICENSE.txt +21 -21
- package/README.md +200 -200
- package/package.json +7 -4
- package/templates/common/base/.env +7 -7
- package/templates/common/base/.env.development +5 -5
- package/templates/common/base/.env.production +5 -5
- package/templates/common/base/_gitignore +42 -42
- package/templates/common/base/node_modules/.bin/autoprefixer +2 -2
- package/templates/common/base/node_modules/.bin/jiti +2 -2
- package/templates/common/base/node_modules/.bin/sass +2 -2
- package/templates/common/base/node_modules/.bin/tsc +2 -2
- package/templates/common/base/node_modules/.bin/tsserver +2 -2
- package/templates/common/base/node_modules/.bin/tsx +2 -2
- package/templates/common/base/node_modules/.bin/uuid +2 -2
- package/templates/common/base/node_modules/.bin/vite +2 -2
- package/templates/common/base/package.json +56 -56
- package/templates/common/base/scripts/build.mts +36 -36
- package/templates/common/base/src/apis/index.ts +7 -7
- package/templates/common/base/src/apis/request.ts +43 -43
- package/templates/common/base/src/apis/services/example.ts +61 -61
- package/templates/common/base/src/apis/services/user.ts +33 -33
- package/templates/common/base/src/apis/types/common.ts +43 -43
- package/templates/common/base/src/apis/types/example.ts +29 -29
- package/templates/common/base/src/apis/types/index.ts +7 -7
- package/templates/common/base/src/apis/types/user.ts +39 -39
- package/templates/common/base/src/assets/fonts/index.css +6 -6
- package/templates/common/base/src/assets/styles/base.scss +33 -33
- package/templates/common/base/src/assets/styles/custom.scss +20 -20
- package/templates/common/base/src/assets/styles/main.scss +8 -8
- package/templates/common/base/src/assets/styles/tailwind.scss +3 -3
- package/templates/common/base/src/constants/index.ts +28 -28
- package/templates/common/base/src/utils/index.ts +87 -87
- package/templates/common/base/vite/index.ts +53 -53
- package/templates/common/base/vite.config.ts +54 -54
- package/templates/common/features/eslint/eslint.config.ts +20 -20
- package/templates/common/features/eslint/node_modules/.bin/eslint +2 -2
- package/templates/common/features/eslint/package.json +7 -7
- package/templates/common/features/husky/.cz-config.cjs +35 -35
- package/templates/common/features/husky/.husky/commit-msg +9 -9
- package/templates/common/features/husky/.husky/install.mjs +9 -9
- package/templates/common/features/husky/.husky/pre-commit +4 -4
- package/templates/common/features/husky/commitlint.config.ts +32 -32
- package/templates/common/features/husky/node_modules/.bin/commitizen +2 -2
- package/templates/common/features/husky/node_modules/.bin/commitlint +2 -2
- package/templates/common/features/husky/node_modules/.bin/cz +2 -2
- package/templates/common/features/husky/node_modules/.bin/cz-cust +2 -2
- package/templates/common/features/husky/node_modules/.bin/cz-customizable +2 -2
- package/templates/common/features/husky/node_modules/.bin/git-cz +2 -2
- package/templates/common/features/husky/node_modules/.bin/husky +2 -2
- package/templates/common/features/husky/node_modules/.bin/lint-staged +2 -2
- package/templates/common/features/husky/package.json +29 -31
- package/templates/react/base/env.d.ts +19 -19
- package/templates/react/base/index.html +13 -13
- package/templates/react/base/package.json +15 -15
- package/templates/react/base/src/App.tsx +18 -18
- package/templates/react/base/src/main/index.ts +34 -34
- package/templates/react/base/src/main.tsx +34 -34
- package/templates/react/base/src/pages/about/index.tsx +14 -14
- package/templates/react/base/src/pages/home/index.tsx +14 -14
- package/templates/react/base/tsconfig.app.json +17 -17
- package/templates/react/base/tsconfig.base.json +22 -22
- package/templates/react/base/tsconfig.json +11 -11
- package/templates/react/base/tsconfig.node.json +15 -15
- package/templates/react/features/ant-design/package.json +7 -7
- package/templates/react/features/ant-design/src/main/features/ant-design.ts +21 -21
- package/templates/react/features/i18n/package.json +7 -7
- package/templates/react/features/i18n/src/locales/index.ts +26 -26
- package/templates/react/features/i18n/src/locales/lang/en.ts +29 -29
- package/templates/react/features/i18n/src/locales/lang/es.ts +29 -29
- package/templates/react/features/i18n/src/locales/lang/zh.ts +29 -29
- package/templates/react/features/i18n/src/main/features/i18n.ts +19 -19
- package/templates/react/features/manualRoutes/package.json +6 -6
- package/templates/react/features/manualRoutes/src/router/index.tsx +29 -29
- package/templates/react/features/manualRoutes/src/router/routes.tsx +35 -35
- package/templates/react/features/pageRoutes/package.json +5 -5
- package/templates/react/features/pageRoutes/src/router/index.tsx +30 -30
- package/templates/react/features/sentry/package.json +7 -7
- package/templates/react/features/sentry/src/main/features/sentry.ts +20 -20
- package/templates/react/features/sentry/src/utils/sentry.ts +39 -39
- package/templates/react/features/sentry/vite/features/sentry.ts +39 -39
- package/templates/react/features/zustand/package.json +5 -5
- package/templates/react/features/zustand/src/apis/types/user.ts +39 -39
- package/templates/react/features/zustand/src/stores/index.ts +5 -5
- package/templates/react/features/zustand/src/stores/user.ts +55 -55
- package/templates/react/features/zustand/src/types/stores.ts +21 -21
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
- package/templates/react/micro-frontends/qiankun/base/package.json +8 -8
- package/templates/react/micro-frontends/qiankun/base/src/main/index.ts +34 -34
- package/templates/react/micro-frontends/qiankun/base/src/main.tsx +69 -69
- package/templates/react/micro-frontends/qiankun/base/vite/index.ts +53 -53
- package/templates/vue/base/env.d.ts +26 -26
- package/templates/vue/base/index.html +13 -13
- package/templates/vue/base/node_modules/.bin/vue-tsc +2 -2
- package/templates/vue/base/src/App.vue +13 -13
- package/templates/vue/base/src/directives/index.ts +35 -35
- package/templates/vue/base/src/layouts/index.ts +26 -26
- package/templates/vue/base/src/main/index.ts +36 -36
- package/templates/vue/base/src/main.ts +34 -34
- package/templates/vue/base/src/pages/about/index.vue +30 -30
- package/templates/vue/base/src/pages/home/index.vue +30 -30
- package/templates/vue/base/src/utils/index.ts +5 -5
- package/templates/vue/base/src/utils/modifyComponent.tsx +43 -43
- package/templates/vue/features/ant-design-vue/package.json +8 -8
- package/templates/vue/features/ant-design-vue/src/layouts/AntDesign.vue +85 -85
- package/templates/vue/features/ant-design-vue/src/main/features/ant-design-vue.ts +18 -18
- package/templates/vue/features/element-plus/package.json +10 -10
- package/templates/vue/features/element-plus/src/assets/styles/base.scss +69 -69
- package/templates/vue/features/element-plus/src/assets/styles/custom.scss +20 -20
- package/templates/vue/features/element-plus/src/assets/styles/element.scss +27 -27
- package/templates/vue/features/element-plus/src/assets/styles/main.scss +9 -9
- package/templates/vue/features/element-plus/src/assets/styles/tailwind.scss +3 -3
- package/templates/vue/features/element-plus/src/components/SubMenu/index.ts +8 -8
- package/templates/vue/features/element-plus/src/layouts/element.vue +117 -117
- package/templates/vue/features/element-plus/src/main/features/element-plus.ts +23 -23
- package/templates/vue/features/element-plus/src/stores/index.ts +6 -6
- package/templates/vue/features/element-plus/src/stores/modules/system.ts +51 -51
- package/templates/vue/features/element-plus/vite/features/element-plus.ts +35 -35
- package/templates/vue/features/i18n/package.json +7 -7
- package/templates/vue/features/i18n/src/locales/index.ts +23 -23
- package/templates/vue/features/i18n/src/locales/lang/en.ts +29 -29
- package/templates/vue/features/i18n/src/locales/lang/es.ts +29 -29
- package/templates/vue/features/i18n/src/locales/lang/zh.ts +29 -29
- package/templates/vue/features/i18n/src/main/features/i18n.ts +19 -19
- package/templates/vue/features/manualRoutes/package.json +12 -12
- package/templates/vue/features/manualRoutes/src/router/index.ts +34 -34
- package/templates/vue/features/manualRoutes/src/router/layout.vue +15 -15
- package/templates/vue/features/manualRoutes/src/router/routes.ts +26 -26
- package/templates/vue/features/manualRoutes/src/stores/index.ts +6 -6
- package/templates/vue/features/manualRoutes/src/stores/modules/system.ts +51 -51
- package/templates/vue/features/pageRoutes/package.json +12 -12
- package/templates/vue/features/pageRoutes/src/router/index.ts +35 -35
- package/templates/vue/features/pageRoutes/src/router/layout.vue +15 -15
- package/templates/vue/features/pageRoutes/src/stores/index.ts +6 -6
- package/templates/vue/features/pageRoutes/src/stores/modules/system.ts +51 -51
- package/templates/vue/features/pinia/package.json +8 -8
- package/templates/vue/features/pinia/src/main/features/pinia.ts +19 -19
- package/templates/vue/features/pinia/src/stores/index.ts +6 -6
- package/templates/vue/features/pinia/src/stores/modules/system.ts +51 -51
- package/templates/vue/features/pinia/src/stores/modules/user.ts +41 -41
- package/templates/vue/features/sentry/package.json +10 -10
- package/templates/vue/features/sentry/src/main/features/sentry.ts +22 -22
- package/templates/vue/features/sentry/src/stores/index.ts +13 -13
- package/templates/vue/features/sentry/src/utils/sentry.ts +44 -44
- package/templates/vue/features/sentry/vite/features/sentry.ts +39 -39
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite +2 -2
- package/templates/vue/micro-frontends/qiankun/base/package.json +8 -8
- package/templates/vue/micro-frontends/qiankun/base/src/main/index.ts +36 -36
- package/templates/vue/micro-frontends/qiankun/base/src/main.ts +70 -70
- package/templates/vue/micro-frontends/qiankun/base/vite/index.ts +53 -53
- package/templates/vue/micro-frontends/qiankun/features/element-plus/package.json +10 -10
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/base.scss +69 -69
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/custom.scss +20 -20
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/element/fixQiankun.scss +10 -10
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/element/index.scss +29 -29
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/main.scss +9 -9
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/assets/styles/tailwind.scss +3 -3
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/index.ts +8 -8
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/src/_types/index.ts +1 -1
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/src/_types/props.ts +16 -16
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/components/SubMenu/src/index.vue +60 -60
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/layouts/element.vue +120 -120
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/main/features/element-plus.ts +24 -24
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/stores/index.ts +6 -6
- package/templates/vue/micro-frontends/qiankun/features/element-plus/src/stores/modules/system.ts +51 -51
- package/templates/vue/micro-frontends/qiankun/features/element-plus/vite/features/element-plus.ts +35 -35
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/package.json +14 -14
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/router/index.ts +60 -60
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/router/layout.vue +15 -15
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/router/routes.ts +26 -26
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/stores/index.ts +6 -6
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/src/stores/modules/system.ts +51 -51
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/package.json +14 -14
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/router/index.ts +61 -61
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/stores/index.ts +6 -6
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/src/stores/modules/system.ts +51 -51
- package/dist/generators/react.d.ts +0 -12
- package/dist/generators/react.js +0 -14
- package/dist/generators/vue.d.ts +0 -12
- package/dist/generators/vue.js +0 -14
- package/dist/types/ejs.d.ts +0 -10
- package/dist/types/ejs.js +0 -4
- package/dist/types/viteConfig.d.ts +0 -19
- package/dist/types/viteConfig.js +0 -5
- package/dist/utils/ejs.d.ts +0 -20
- package/dist/utils/ejs.js +0 -31
- package/dist/utils/featureMapping.d.ts +0 -23
- package/dist/utils/featureMapping.js +0 -76
- package/dist/utils/generateFrameworkProject.d.ts +0 -15
- package/dist/utils/generateFrameworkProject.js +0 -67
- package/dist/utils/prompts.d.ts +0 -17
- package/dist/utils/prompts.js +0 -235
- package/dist/utils/renderFeatures.d.ts +0 -56
- package/dist/utils/renderFeatures.js +0 -160
- package/dist/utils/renderTemplate.d.ts +0 -18
- package/dist/utils/renderTemplate.js +0 -174
- package/dist/utils/routeModeMapping.d.ts +0 -14
- package/dist/utils/routeModeMapping.js +0 -15
- package/dist/utils/viteConfigRender.d.ts +0 -16
- package/dist/utils/viteConfigRender.js +0 -17
- package/templates/common/base/node_modules/.bin/autoprefixer.CMD +0 -12
- package/templates/common/base/node_modules/.bin/autoprefixer.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/browserslist +0 -17
- package/templates/common/base/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/common/base/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/jiti.CMD +0 -12
- package/templates/common/base/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/parser +0 -17
- package/templates/common/base/node_modules/.bin/parser.CMD +0 -12
- package/templates/common/base/node_modules/.bin/parser.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/rollup +0 -17
- package/templates/common/base/node_modules/.bin/rollup.CMD +0 -12
- package/templates/common/base/node_modules/.bin/rollup.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/sass.CMD +0 -12
- package/templates/common/base/node_modules/.bin/sass.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/terser +0 -17
- package/templates/common/base/node_modules/.bin/terser.CMD +0 -12
- package/templates/common/base/node_modules/.bin/terser.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/tsc.CMD +0 -12
- package/templates/common/base/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/common/base/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/tsx.CMD +0 -12
- package/templates/common/base/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/uuid.CMD +0 -12
- package/templates/common/base/node_modules/.bin/uuid.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/vite.CMD +0 -12
- package/templates/common/base/node_modules/.bin/vite.ps1 +0 -41
- package/templates/common/base/node_modules/.bin/yaml +0 -17
- package/templates/common/base/node_modules/.bin/yaml.CMD +0 -12
- package/templates/common/base/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/common/features/eslint/node_modules/.bin/browserslist +0 -17
- package/templates/common/features/eslint/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/common/features/eslint/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/common/features/eslint/node_modules/.bin/eslint.CMD +0 -12
- package/templates/common/features/eslint/node_modules/.bin/eslint.ps1 +0 -41
- package/templates/common/features/eslint/node_modules/.bin/jiti +0 -17
- package/templates/common/features/eslint/node_modules/.bin/jiti.CMD +0 -12
- package/templates/common/features/eslint/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/common/features/eslint/node_modules/.bin/tsc +0 -17
- package/templates/common/features/eslint/node_modules/.bin/tsc.CMD +0 -12
- package/templates/common/features/eslint/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/common/features/eslint/node_modules/.bin/tsserver +0 -17
- package/templates/common/features/eslint/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/common/features/eslint/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/commitizen.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/commitizen.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/commitlint.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/commitlint.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/cz-cust.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/cz-cust.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/cz-customizable.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/cz-customizable.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/cz.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/cz.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/git-cz.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/git-cz.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/husky.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/husky.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/lint-staged.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/lint-staged.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/tsc +0 -17
- package/templates/common/features/husky/node_modules/.bin/tsc.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/common/features/husky/node_modules/.bin/tsserver +0 -17
- package/templates/common/features/husky/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/common/features/husky/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/browserslist +0 -17
- package/templates/react/base/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/react/base/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/jiti +0 -17
- package/templates/react/base/node_modules/.bin/jiti.CMD +0 -12
- package/templates/react/base/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/parser +0 -17
- package/templates/react/base/node_modules/.bin/parser.CMD +0 -12
- package/templates/react/base/node_modules/.bin/parser.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/rollup +0 -17
- package/templates/react/base/node_modules/.bin/rollup.CMD +0 -12
- package/templates/react/base/node_modules/.bin/rollup.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/sass +0 -17
- package/templates/react/base/node_modules/.bin/sass.CMD +0 -12
- package/templates/react/base/node_modules/.bin/sass.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/terser +0 -17
- package/templates/react/base/node_modules/.bin/terser.CMD +0 -12
- package/templates/react/base/node_modules/.bin/terser.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/tsc +0 -17
- package/templates/react/base/node_modules/.bin/tsc.CMD +0 -12
- package/templates/react/base/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/tsserver +0 -17
- package/templates/react/base/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/react/base/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/tsx +0 -17
- package/templates/react/base/node_modules/.bin/tsx.CMD +0 -12
- package/templates/react/base/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/vite +0 -17
- package/templates/react/base/node_modules/.bin/vite.CMD +0 -12
- package/templates/react/base/node_modules/.bin/vite.ps1 +0 -41
- package/templates/react/base/node_modules/.bin/yaml +0 -17
- package/templates/react/base/node_modules/.bin/yaml.CMD +0 -12
- package/templates/react/base/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/react/features/i18n/node_modules/.bin/tsc +0 -17
- package/templates/react/features/i18n/node_modules/.bin/tsc.CMD +0 -12
- package/templates/react/features/i18n/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/react/features/i18n/node_modules/.bin/tsserver +0 -17
- package/templates/react/features/i18n/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/react/features/i18n/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti +0 -17
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti.CMD +0 -12
- package/templates/react/features/pageRoutes/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/react/features/pageRoutes/node_modules/.bin/sass +0 -17
- package/templates/react/features/pageRoutes/node_modules/.bin/sass.CMD +0 -12
- package/templates/react/features/pageRoutes/node_modules/.bin/sass.ps1 +0 -41
- package/templates/react/features/pageRoutes/node_modules/.bin/terser +0 -17
- package/templates/react/features/pageRoutes/node_modules/.bin/terser.CMD +0 -12
- package/templates/react/features/pageRoutes/node_modules/.bin/terser.ps1 +0 -41
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx +0 -17
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx.CMD +0 -12
- package/templates/react/features/pageRoutes/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/react/features/pageRoutes/node_modules/.bin/vite +0 -17
- package/templates/react/features/pageRoutes/node_modules/.bin/vite.CMD +0 -12
- package/templates/react/features/pageRoutes/node_modules/.bin/vite.ps1 +0 -41
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml +0 -17
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml.CMD +0 -12
- package/templates/react/features/pageRoutes/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/parser.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/rollup.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/sass.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/terser.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/vite.ps1 +0 -41
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml +0 -17
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml.CMD +0 -12
- package/templates/react/micro-frontends/qiankun/base/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/browserslist +0 -17
- package/templates/vue/base/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/jiti +0 -17
- package/templates/vue/base/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/parser +0 -17
- package/templates/vue/base/node_modules/.bin/parser.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/parser.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/rollup +0 -17
- package/templates/vue/base/node_modules/.bin/rollup.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/rollup.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/sass +0 -17
- package/templates/vue/base/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/terser +0 -17
- package/templates/vue/base/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/tsc +0 -17
- package/templates/vue/base/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/tsserver +0 -17
- package/templates/vue/base/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/tsx +0 -17
- package/templates/vue/base/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/vite +0 -17
- package/templates/vue/base/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/vue-tsc.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/vue-tsc.ps1 +0 -41
- package/templates/vue/base/node_modules/.bin/yaml +0 -17
- package/templates/vue/base/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/base/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/ant-design-vue/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/element-plus/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/element-plus/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/element-plus/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/element-plus/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/i18n/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/i18n/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/i18n/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/i18n/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/i18n/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/i18n/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/jiti +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/sass +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/terser +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsx +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/vite +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/features/manualRoutes/node_modules/.bin/yaml +0 -17
- package/templates/vue/features/manualRoutes/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/features/manualRoutes/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml +0 -17
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/features/pageRoutes/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/features/pinia/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/pinia/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/pinia/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/pinia/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/pinia/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/pinia/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/features/sentry/node_modules/.bin/tsc +0 -17
- package/templates/vue/features/sentry/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/features/sentry/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/features/sentry/node_modules/.bin/tsserver +0 -17
- package/templates/vue/features/sentry/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/features/sentry/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/browserslist.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/parser.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/rollup.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml +0 -17
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/base/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml +0 -17
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/element-plus/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml +0 -17
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/manualRoutes/node_modules/.bin/yaml.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/jiti.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/sass.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/terser.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsc.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsserver.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/tsx.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/vite.ps1 +0 -41
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml +0 -17
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml.CMD +0 -12
- package/templates/vue/micro-frontends/qiankun/features/pageRoutes/node_modules/.bin/yaml.ps1 +0 -41
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite 配置数据类型定义
|
|
3
|
-
* 用于 features 中的 vite.config.data.ts
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Vite 配置数据接口
|
|
7
|
-
*/
|
|
8
|
-
export interface ViteConfigData {
|
|
9
|
-
/** 导入语句字符串数组(完整的 import 语句) */
|
|
10
|
-
imports?: string[];
|
|
11
|
-
/** 插件初始化字符串数组 */
|
|
12
|
-
plugins?: string[];
|
|
13
|
-
/** 纯 JSON 数据配置(包含 server, build, resolve 等静态配置) */
|
|
14
|
-
config?: Record<string, unknown>;
|
|
15
|
-
/** ViteConfig 顶层选项(如 pageRoutes) */
|
|
16
|
-
options?: Record<string, unknown>;
|
|
17
|
-
/** 函数逻辑分片映射,Key 为配置项的深度访问路径(如 'css.preprocessorOptions.scss.additionalData') */
|
|
18
|
-
hooks?: Record<string, string>;
|
|
19
|
-
}
|
package/dist/types/viteConfig.js
DELETED
package/dist/utils/ejs.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EJS 模板渲染工具
|
|
3
|
-
*/
|
|
4
|
-
import type { EjsDataType } from '../types/index.ts';
|
|
5
|
-
/**
|
|
6
|
-
* 渲染 EJS 模板文件
|
|
7
|
-
* @param templatePath 模板文件路径
|
|
8
|
-
* @param data 模板数据
|
|
9
|
-
* @returns 渲染后的字符串内容
|
|
10
|
-
* @throws {Error} 如果模板文件不存在或渲染失败
|
|
11
|
-
*/
|
|
12
|
-
export declare function renderEjsFile(templatePath: string, data: EjsDataType): string;
|
|
13
|
-
/**
|
|
14
|
-
* 渲染 EJS 模板并写入目标文件
|
|
15
|
-
* @param templatePath 模板文件路径
|
|
16
|
-
* @param targetPath 目标文件路径
|
|
17
|
-
* @param data 模板数据
|
|
18
|
-
* @throws {Error} 如果模板文件不存在、渲染失败或写入失败
|
|
19
|
-
*/
|
|
20
|
-
export declare function renderEjsToFile(templatePath: string, targetPath: string, data: EjsDataType): void;
|
package/dist/utils/ejs.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EJS 模板渲染工具
|
|
3
|
-
*/
|
|
4
|
-
import fs from 'node:fs';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
import ejs from 'ejs';
|
|
7
|
-
/**
|
|
8
|
-
* 渲染 EJS 模板文件
|
|
9
|
-
* @param templatePath 模板文件路径
|
|
10
|
-
* @param data 模板数据
|
|
11
|
-
* @returns 渲染后的字符串内容
|
|
12
|
-
* @throws {Error} 如果模板文件不存在或渲染失败
|
|
13
|
-
*/
|
|
14
|
-
export function renderEjsFile(templatePath, data) {
|
|
15
|
-
const template = fs.readFileSync(templatePath, 'utf-8');
|
|
16
|
-
return ejs.render(template, data, {
|
|
17
|
-
filename: templatePath,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 渲染 EJS 模板并写入目标文件
|
|
22
|
-
* @param templatePath 模板文件路径
|
|
23
|
-
* @param targetPath 目标文件路径
|
|
24
|
-
* @param data 模板数据
|
|
25
|
-
* @throws {Error} 如果模板文件不存在、渲染失败或写入失败
|
|
26
|
-
*/
|
|
27
|
-
export function renderEjsToFile(templatePath, targetPath, data) {
|
|
28
|
-
const content = renderEjsFile(templatePath, data);
|
|
29
|
-
fs.mkdirSync(path.dirname(targetPath), { recursive: true });
|
|
30
|
-
fs.writeFileSync(targetPath, content);
|
|
31
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Features 映射工具
|
|
3
|
-
* 用于测试用例生成和 feature 扫描
|
|
4
|
-
* 注意:配置名称与 feature 目录名称完全一致,无需额外映射
|
|
5
|
-
*/
|
|
6
|
-
import type { FrameworkType } from '../types/index.ts';
|
|
7
|
-
/**
|
|
8
|
-
* 扫描所有 features(框架的 + 公共的)
|
|
9
|
-
* @param framework 框架类型
|
|
10
|
-
* @returns 所有 feature 名称数组(UI 库按优先级排序)
|
|
11
|
-
*/
|
|
12
|
-
export declare function scanAllFeatures(framework: FrameworkType): string[];
|
|
13
|
-
/**
|
|
14
|
-
* Feature 名称转换为配置键和值(用于测试用例生成)
|
|
15
|
-
* 注意:大部分情况下 feature 名称 === 配置名称
|
|
16
|
-
* @param feature feature 名称
|
|
17
|
-
* @param _framework 框架类型(保留参数以保持接口兼容性)
|
|
18
|
-
* @returns 配置键值对,如果无法映射则返回 null
|
|
19
|
-
*/
|
|
20
|
-
export declare function featureToConfig(feature: string, _framework: FrameworkType): {
|
|
21
|
-
key: string;
|
|
22
|
-
value: string | boolean;
|
|
23
|
-
} | null;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Features 映射工具
|
|
3
|
-
* 用于测试用例生成和 feature 扫描
|
|
4
|
-
* 注意:配置名称与 feature 目录名称完全一致,无需额外映射
|
|
5
|
-
*/
|
|
6
|
-
import fs from 'fs-extra';
|
|
7
|
-
import path from 'node:path';
|
|
8
|
-
import { getTemplatesDir } from "./file.js";
|
|
9
|
-
/**
|
|
10
|
-
* UI 库优先级顺序(用于排序,确保默认选择)
|
|
11
|
-
* TODO: ant-design-vue 和 ant-design (React) 功能暂时关闭
|
|
12
|
-
*/
|
|
13
|
-
const UI_LIBRARY_PRIORITY = {
|
|
14
|
-
'element-plus': 1,
|
|
15
|
-
// 'ant-design-vue': 2, // TODO: 暂时关闭
|
|
16
|
-
// 'ant-design': 1, // TODO: 暂时关闭 (React)
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 扫描所有 features(框架的 + 公共的)
|
|
20
|
-
* @param framework 框架类型
|
|
21
|
-
* @returns 所有 feature 名称数组(UI 库按优先级排序)
|
|
22
|
-
*/
|
|
23
|
-
export function scanAllFeatures(framework) {
|
|
24
|
-
const frameworkDir = path.join(getTemplatesDir(), framework, 'features');
|
|
25
|
-
const commonDir = path.join(getTemplatesDir(), 'common', 'features');
|
|
26
|
-
const features = [];
|
|
27
|
-
if (fs.existsSync(frameworkDir)) {
|
|
28
|
-
features.push(...fs.readdirSync(frameworkDir).filter(f => fs.statSync(path.join(frameworkDir, f)).isDirectory()));
|
|
29
|
-
}
|
|
30
|
-
if (fs.existsSync(commonDir)) {
|
|
31
|
-
features.push(...fs.readdirSync(commonDir).filter(f => fs.statSync(path.join(commonDir, f)).isDirectory()));
|
|
32
|
-
}
|
|
33
|
-
// 对 UI 库进行排序,确保 element-plus 优先(优先级数字越小越靠前)
|
|
34
|
-
return features.sort((a, b) => {
|
|
35
|
-
const priorityA = UI_LIBRARY_PRIORITY[a] ?? 999;
|
|
36
|
-
const priorityB = UI_LIBRARY_PRIORITY[b] ?? 999;
|
|
37
|
-
if (priorityA !== priorityB) {
|
|
38
|
-
return priorityA - priorityB;
|
|
39
|
-
}
|
|
40
|
-
// 相同优先级时保持字母顺序
|
|
41
|
-
return a.localeCompare(b);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Feature 名称转换为配置键和值(用于测试用例生成)
|
|
46
|
-
* 注意:大部分情况下 feature 名称 === 配置名称
|
|
47
|
-
* @param feature feature 名称
|
|
48
|
-
* @param _framework 框架类型(保留参数以保持接口兼容性)
|
|
49
|
-
* @returns 配置键值对,如果无法映射则返回 null
|
|
50
|
-
*/
|
|
51
|
-
export function featureToConfig(feature, _framework) {
|
|
52
|
-
// UI 库:配置键是 uiLibrary,值是 feature 名称
|
|
53
|
-
// TODO: ant-design-vue 和 ant-design (React) 功能暂时关闭
|
|
54
|
-
// const uiLibraries = ['element-plus', 'ant-design-vue', 'ant-design']
|
|
55
|
-
const uiLibraries = ['element-plus'];
|
|
56
|
-
if (uiLibraries.includes(feature)) {
|
|
57
|
-
return { key: 'uiLibrary', value: feature };
|
|
58
|
-
}
|
|
59
|
-
// 路由模式 features:用于测试分类
|
|
60
|
-
if (feature === 'manualRoutes' || feature === 'pageRoutes') {
|
|
61
|
-
return { key: 'routeMode', value: feature };
|
|
62
|
-
}
|
|
63
|
-
// 布尔类型的 features:配置名 === feature 名
|
|
64
|
-
const booleanFeatures = [
|
|
65
|
-
'eslint',
|
|
66
|
-
'i18n',
|
|
67
|
-
'sentry',
|
|
68
|
-
'pinia',
|
|
69
|
-
'zustand',
|
|
70
|
-
'husky',
|
|
71
|
-
];
|
|
72
|
-
if (booleanFeatures.includes(feature)) {
|
|
73
|
-
return { key: feature, value: true };
|
|
74
|
-
}
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Framework project generation utility
|
|
3
|
-
* Extract common logic from react.ts and vue.ts
|
|
4
|
-
* Support three-layer nested priority (L1: common, L2: framework, L3: micro-frontend)
|
|
5
|
-
* No longer uses EJS templates - all templates are fixed TypeScript files
|
|
6
|
-
*/
|
|
7
|
-
import type { ProjectConfigType } from '../types/index.ts';
|
|
8
|
-
/**
|
|
9
|
-
* Generate framework project
|
|
10
|
-
* Render templates in three-layer nested priority: L1 (common) -> L2 (framework) -> L3 (micro-frontend)
|
|
11
|
-
* Uses fixed TypeScript templates with glob import for feature discovery
|
|
12
|
-
* @param config - Project configuration
|
|
13
|
-
* @throws {Error} If template rendering fails, file writing fails, or configuration generation fails
|
|
14
|
-
*/
|
|
15
|
-
export declare function generateFrameworkProject(config: ProjectConfigType): void;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Framework project generation utility
|
|
3
|
-
* Extract common logic from react.ts and vue.ts
|
|
4
|
-
* Support three-layer nested priority (L1: common, L2: framework, L3: micro-frontend)
|
|
5
|
-
* No longer uses EJS templates - all templates are fixed TypeScript files
|
|
6
|
-
*/
|
|
7
|
-
import path from 'node:path';
|
|
8
|
-
import { FILE_CONSTANTS } from "../constants/index.js";
|
|
9
|
-
import { getTemplatesDir } from "./file.js";
|
|
10
|
-
import { renderCommonFeatures, renderFrameworkFeatures, renderMicroFrontendFeatures } from "./renderFeatures.js";
|
|
11
|
-
import { renderTemplate, updatePackageJsonMetadata } from "./index.js";
|
|
12
|
-
/**
|
|
13
|
-
* Render all base templates
|
|
14
|
-
* Render in three-layer nested priority: L1 (common) -> L2 (framework) -> L3 (micro-frontend)
|
|
15
|
-
* @param templatesDir - Templates root directory
|
|
16
|
-
* @param framework - Framework type
|
|
17
|
-
* @param microFrontend - Whether micro-frontend is enabled
|
|
18
|
-
* @param microFrontendEngine - Micro-frontend engine type
|
|
19
|
-
* @param targetDir - Target directory
|
|
20
|
-
* @throws {Error} If template rendering fails
|
|
21
|
-
*/
|
|
22
|
-
function renderBaseTemplates(templatesDir, framework, microFrontend, microFrontendEngine, targetDir) {
|
|
23
|
-
// 1. Render L1: Common base template (universal layer)
|
|
24
|
-
renderTemplate(path.join(templatesDir, 'common', 'base'), targetDir);
|
|
25
|
-
// 2. Render L2: Framework base template (framework standard layer)
|
|
26
|
-
renderTemplate(path.join(templatesDir, framework, 'base'), targetDir);
|
|
27
|
-
// 3. Render L3: Micro-frontend base template (architecture enhancement layer) - on-demand override
|
|
28
|
-
if (microFrontend && microFrontendEngine) {
|
|
29
|
-
const microFrontendPath = path.join(templatesDir, framework, 'micro-frontends', microFrontendEngine, 'base');
|
|
30
|
-
renderTemplate(microFrontendPath, targetDir);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Render all feature templates
|
|
35
|
-
* Render in three-layer nested priority: common features -> framework features -> micro-frontend features
|
|
36
|
-
* @param config - Project configuration
|
|
37
|
-
* @param targetDir - Target directory
|
|
38
|
-
* @throws {Error} If feature rendering fails
|
|
39
|
-
*/
|
|
40
|
-
function renderAllFeatures(config, targetDir) {
|
|
41
|
-
// 1. Render common feature templates
|
|
42
|
-
renderCommonFeatures(config, targetDir);
|
|
43
|
-
// 2. Render framework feature templates
|
|
44
|
-
renderFrameworkFeatures(config, targetDir);
|
|
45
|
-
// 3. Render micro-frontend specific features (override standard features)
|
|
46
|
-
if (config.microFrontend && config.microFrontendEngine) {
|
|
47
|
-
renderMicroFrontendFeatures(config, targetDir, config.microFrontendEngine);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Generate framework project
|
|
52
|
-
* Render templates in three-layer nested priority: L1 (common) -> L2 (framework) -> L3 (micro-frontend)
|
|
53
|
-
* Uses fixed TypeScript templates with glob import for feature discovery
|
|
54
|
-
* @param config - Project configuration
|
|
55
|
-
* @throws {Error} If template rendering fails, file writing fails, or configuration generation fails
|
|
56
|
-
*/
|
|
57
|
-
export function generateFrameworkProject(config) {
|
|
58
|
-
const { targetDir, framework, microFrontend, microFrontendEngine } = config;
|
|
59
|
-
const templatesDir = getTemplatesDir();
|
|
60
|
-
// 1. Render all base templates
|
|
61
|
-
renderBaseTemplates(templatesDir, framework, microFrontend, microFrontendEngine, targetDir);
|
|
62
|
-
// 2. Render all feature templates
|
|
63
|
-
renderAllFeatures(config, targetDir);
|
|
64
|
-
// 3. Update package.json metadata fields
|
|
65
|
-
const packageJsonPath = path.join(targetDir, FILE_CONSTANTS.PACKAGE_JSON);
|
|
66
|
-
updatePackageJsonMetadata(packageJsonPath, config.projectName, config.description, config.author, config.packageManager);
|
|
67
|
-
}
|
package/dist/utils/prompts.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 交互式问答工具
|
|
3
|
-
* 收集用户的项目配置信息(对标 create-vue)
|
|
4
|
-
*/
|
|
5
|
-
import type { ProjectConfigType } from '../types/index.ts';
|
|
6
|
-
/**
|
|
7
|
-
* 收集项目配置信息
|
|
8
|
-
* @param projectName 项目名称(可选)
|
|
9
|
-
* @returns 项目配置对象
|
|
10
|
-
*/
|
|
11
|
-
export declare function collectProjectConfig(projectName?: string): Promise<ProjectConfigType>;
|
|
12
|
-
/**
|
|
13
|
-
* 确认覆盖目录
|
|
14
|
-
* @param dirPath 目录路径
|
|
15
|
-
* @returns 是否确认覆盖
|
|
16
|
-
*/
|
|
17
|
-
export declare function confirmOverwrite(dirPath: string): Promise<boolean>;
|
package/dist/utils/prompts.js
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 交互式问答工具
|
|
3
|
-
* 收集用户的项目配置信息(对标 create-vue)
|
|
4
|
-
*/
|
|
5
|
-
import fs from 'node:fs';
|
|
6
|
-
import process from 'node:process';
|
|
7
|
-
import inquirer from 'inquirer';
|
|
8
|
-
import { getDefaultAuthor } from "./npmConfig.js";
|
|
9
|
-
import { getRouteModeFeatures } from "./routeModeMapping.js";
|
|
10
|
-
/**
|
|
11
|
-
* 收集项目配置信息
|
|
12
|
-
* @param projectName 项目名称(可选)
|
|
13
|
-
* @returns 项目配置对象
|
|
14
|
-
*/
|
|
15
|
-
export async function collectProjectConfig(projectName) {
|
|
16
|
-
// 获取默认作者信息
|
|
17
|
-
const defaultAuthor = getDefaultAuthor();
|
|
18
|
-
const answers = await inquirer.prompt([
|
|
19
|
-
// 项目名称
|
|
20
|
-
{
|
|
21
|
-
type: 'input',
|
|
22
|
-
name: 'projectName',
|
|
23
|
-
message: '项目名称:',
|
|
24
|
-
default: projectName || 'my-project',
|
|
25
|
-
validate: (input) => {
|
|
26
|
-
const trimmed = input.trim();
|
|
27
|
-
if (!trimmed) {
|
|
28
|
-
return '项目名称不能为空';
|
|
29
|
-
}
|
|
30
|
-
const minLength = 1;
|
|
31
|
-
const maxLength = 214;
|
|
32
|
-
if (trimmed.length < minLength || trimmed.length > maxLength) {
|
|
33
|
-
return `项目名称长度必须在 ${minLength}-${maxLength} 个字符之间`;
|
|
34
|
-
}
|
|
35
|
-
if (!/^[\w-]+$/.test(trimmed)) {
|
|
36
|
-
return '项目名称只能包含字母、数字、连字符和下划线';
|
|
37
|
-
}
|
|
38
|
-
const reservedNames = [
|
|
39
|
-
'node',
|
|
40
|
-
'npm',
|
|
41
|
-
'test',
|
|
42
|
-
'lib',
|
|
43
|
-
'api',
|
|
44
|
-
'www',
|
|
45
|
-
'admin',
|
|
46
|
-
'root',
|
|
47
|
-
'config',
|
|
48
|
-
'build',
|
|
49
|
-
'dist',
|
|
50
|
-
'src',
|
|
51
|
-
'public',
|
|
52
|
-
'private',
|
|
53
|
-
];
|
|
54
|
-
if (reservedNames.includes(trimmed.toLowerCase())) {
|
|
55
|
-
return `项目名称不能使用保留名称: ${trimmed}`;
|
|
56
|
-
}
|
|
57
|
-
// 检查目标目录是否已存在且不为空
|
|
58
|
-
const targetDir = `${process.cwd()}/${trimmed}`;
|
|
59
|
-
if (fs.existsSync(targetDir)) {
|
|
60
|
-
try {
|
|
61
|
-
const stats = fs.statSync(targetDir);
|
|
62
|
-
if (stats.isDirectory()) {
|
|
63
|
-
const files = fs.readdirSync(targetDir);
|
|
64
|
-
if (files.length > 0) {
|
|
65
|
-
return `目录 ${targetDir} 已存在且不为空,请选择其他名称或先清空该目录`;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
// 忽略检查错误,让后续流程处理
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return true;
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
// 项目描述
|
|
77
|
-
{
|
|
78
|
-
type: 'input',
|
|
79
|
-
name: 'description',
|
|
80
|
-
message: '项目描述:',
|
|
81
|
-
default: 'A Vite project',
|
|
82
|
-
},
|
|
83
|
-
// 作者
|
|
84
|
-
{
|
|
85
|
-
type: 'input',
|
|
86
|
-
name: 'author',
|
|
87
|
-
message: '作者:',
|
|
88
|
-
default: defaultAuthor,
|
|
89
|
-
},
|
|
90
|
-
// 框架选择
|
|
91
|
-
{
|
|
92
|
-
type: 'list',
|
|
93
|
-
name: 'framework',
|
|
94
|
-
message: '选择框架:',
|
|
95
|
-
choices: [
|
|
96
|
-
{ name: 'Vue 3', value: 'vue' },
|
|
97
|
-
// TODO: React 功能暂时关闭
|
|
98
|
-
// { name: 'React', value: 'react' },
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
// UI 库选择
|
|
102
|
-
{
|
|
103
|
-
type: 'list',
|
|
104
|
-
name: 'uiLibrary',
|
|
105
|
-
message: '选择 UI 组件库:',
|
|
106
|
-
choices: (answers) => {
|
|
107
|
-
if (answers.framework === 'vue') {
|
|
108
|
-
return [
|
|
109
|
-
{ name: 'Element Plus', value: 'element-plus' },
|
|
110
|
-
// TODO: Ant Design Vue 功能暂时关闭
|
|
111
|
-
// { name: 'Ant Design Vue', value: 'ant-design-vue' },
|
|
112
|
-
];
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
// TODO: React 功能暂时关闭
|
|
116
|
-
// return [{ name: 'Ant Design', value: 'ant-design' }]
|
|
117
|
-
return [];
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
// 路由模式(路由已内置,只需选择模式)
|
|
122
|
-
{
|
|
123
|
-
type: 'list',
|
|
124
|
-
name: 'routeMode',
|
|
125
|
-
message: '选择路由模式:',
|
|
126
|
-
choices: [
|
|
127
|
-
{ name: '文件系统路由 (vite-plugin-pages)', value: 'pageRoutes' },
|
|
128
|
-
{ name: '手动配置路由', value: 'manualRoutes' },
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
// 是否启用国际化
|
|
132
|
-
{
|
|
133
|
-
type: 'confirm',
|
|
134
|
-
name: 'i18n',
|
|
135
|
-
message: '是否启用国际化 (i18n)?',
|
|
136
|
-
default: true,
|
|
137
|
-
},
|
|
138
|
-
// 是否启用微前端
|
|
139
|
-
{
|
|
140
|
-
type: 'confirm',
|
|
141
|
-
name: 'microFrontend',
|
|
142
|
-
message: '是否启用微前端支持?',
|
|
143
|
-
default: false,
|
|
144
|
-
},
|
|
145
|
-
// 微前端引擎选择
|
|
146
|
-
{
|
|
147
|
-
type: 'list',
|
|
148
|
-
name: 'microFrontendEngine',
|
|
149
|
-
message: '选择微前端引擎:',
|
|
150
|
-
choices: [
|
|
151
|
-
{ name: 'qiankun (阿里开源)', value: 'qiankun' },
|
|
152
|
-
// TODO: 还没有,后续可考虑接入
|
|
153
|
-
// { name: 'micro-app (京东开源)', value: 'micro-app' },
|
|
154
|
-
],
|
|
155
|
-
when: (answers) => answers.microFrontend === true,
|
|
156
|
-
},
|
|
157
|
-
// 是否启用错误监控
|
|
158
|
-
{
|
|
159
|
-
type: 'confirm',
|
|
160
|
-
name: 'sentry',
|
|
161
|
-
message: '是否启用错误监控 (Sentry)?',
|
|
162
|
-
default: false,
|
|
163
|
-
},
|
|
164
|
-
// 是否启用 ESLint
|
|
165
|
-
{
|
|
166
|
-
type: 'confirm',
|
|
167
|
-
name: 'eslint',
|
|
168
|
-
message: '是否启用 ESLint 代码规范检查?',
|
|
169
|
-
default: true,
|
|
170
|
-
},
|
|
171
|
-
// 是否启用 Git Hooks
|
|
172
|
-
{
|
|
173
|
-
type: 'confirm',
|
|
174
|
-
name: 'gitHooks',
|
|
175
|
-
message: '是否启用 Git Hooks (husky + commitlint)?',
|
|
176
|
-
default: true,
|
|
177
|
-
},
|
|
178
|
-
// 包管理器选择
|
|
179
|
-
{
|
|
180
|
-
type: 'list',
|
|
181
|
-
name: 'packageManager',
|
|
182
|
-
message: '选择包管理器:',
|
|
183
|
-
choices: [
|
|
184
|
-
{ name: 'pnpm (推荐)', value: 'pnpm' },
|
|
185
|
-
{ name: 'npm', value: 'npm' },
|
|
186
|
-
{ name: 'yarn', value: 'yarn' },
|
|
187
|
-
],
|
|
188
|
-
default: 'pnpm',
|
|
189
|
-
},
|
|
190
|
-
]);
|
|
191
|
-
const targetDir = `${process.cwd()}/${answers.projectName}`;
|
|
192
|
-
// 根据框架确定状态管理 feature
|
|
193
|
-
const isPinia = answers.framework === 'vue';
|
|
194
|
-
const isZustand = answers.framework === 'react';
|
|
195
|
-
// 根据路由模式获取对应的布尔特征配置
|
|
196
|
-
const routeMode = answers.routeMode;
|
|
197
|
-
const routeModeFeatures = getRouteModeFeatures(routeMode);
|
|
198
|
-
return {
|
|
199
|
-
projectName: answers.projectName,
|
|
200
|
-
description: answers.description,
|
|
201
|
-
author: answers.author,
|
|
202
|
-
framework: answers.framework,
|
|
203
|
-
uiLibrary: answers.uiLibrary,
|
|
204
|
-
routeMode,
|
|
205
|
-
// feature 名称与目录名称一致
|
|
206
|
-
pinia: isPinia,
|
|
207
|
-
zustand: isZustand,
|
|
208
|
-
manualRoutes: routeModeFeatures.manualRoutes,
|
|
209
|
-
pageRoutes: routeModeFeatures.pageRoutes,
|
|
210
|
-
i18n: answers.i18n,
|
|
211
|
-
microFrontend: answers.microFrontend || false,
|
|
212
|
-
microFrontendEngine: answers.microFrontendEngine,
|
|
213
|
-
sentry: answers.sentry,
|
|
214
|
-
eslint: answers.eslint,
|
|
215
|
-
husky: answers.gitHooks,
|
|
216
|
-
packageManager: answers.packageManager,
|
|
217
|
-
targetDir,
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* 确认覆盖目录
|
|
222
|
-
* @param dirPath 目录路径
|
|
223
|
-
* @returns 是否确认覆盖
|
|
224
|
-
*/
|
|
225
|
-
export async function confirmOverwrite(dirPath) {
|
|
226
|
-
const { confirm } = await inquirer.prompt([
|
|
227
|
-
{
|
|
228
|
-
type: 'confirm',
|
|
229
|
-
name: 'confirm',
|
|
230
|
-
message: `目录 ${dirPath} 已存在,是否覆盖?`,
|
|
231
|
-
default: false,
|
|
232
|
-
},
|
|
233
|
-
]);
|
|
234
|
-
return confirm;
|
|
235
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Features 渲染工具
|
|
3
|
-
* 统一处理 features 的渲染逻辑
|
|
4
|
-
* 配置名称与 feature 目录名称完全一致,无需映射
|
|
5
|
-
* 通过文件系统扫描自动发现 features,无需维护常量
|
|
6
|
-
*/
|
|
7
|
-
import type { FrameworkType, ProjectConfigType } from '../types/index.ts';
|
|
8
|
-
/**
|
|
9
|
-
* 渲染框架特定的 features
|
|
10
|
-
* 通过文件系统扫描自动发现并渲染 features
|
|
11
|
-
* @param config 项目配置
|
|
12
|
-
* @param targetDir 目标目录
|
|
13
|
-
* @throws {Error} 如果路径不安全或模板渲染失败
|
|
14
|
-
*/
|
|
15
|
-
export declare function renderFrameworkFeatures(config: ProjectConfigType, targetDir: string): void;
|
|
16
|
-
/**
|
|
17
|
-
* 渲染公共 features
|
|
18
|
-
* 通过文件系统扫描自动发现并渲染公共 features
|
|
19
|
-
* @param config 项目配置
|
|
20
|
-
* @param targetDir 目标目录
|
|
21
|
-
* @throws {Error} 如果路径不安全或模板渲染失败
|
|
22
|
-
*/
|
|
23
|
-
export declare function renderCommonFeatures(config: ProjectConfigType, targetDir: string): void;
|
|
24
|
-
/**
|
|
25
|
-
* 验证微前端引擎是否存在
|
|
26
|
-
* @param framework 框架类型
|
|
27
|
-
* @param engine 微前端引擎名称
|
|
28
|
-
* @returns 引擎是否存在
|
|
29
|
-
*/
|
|
30
|
-
export declare function validateMicroFrontendEngine(framework: FrameworkType, engine: string): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* 获取可用的公共 features(用于测试和文档生成)
|
|
33
|
-
* @returns 公共 feature 名称数组
|
|
34
|
-
*/
|
|
35
|
-
export declare function getAvailableCommonFeatures(): string[];
|
|
36
|
-
/**
|
|
37
|
-
* 获取可用的框架 features(用于测试和文档生成)
|
|
38
|
-
* @param framework 框架类型
|
|
39
|
-
* @returns 框架 feature 名称数组
|
|
40
|
-
*/
|
|
41
|
-
export declare function getAvailableFrameworkFeatures(framework: FrameworkType): string[];
|
|
42
|
-
/**
|
|
43
|
-
* 获取可用的微前端引擎(用于测试和文档生成)
|
|
44
|
-
* @param framework 框架类型
|
|
45
|
-
* @returns 微前端引擎名称数组
|
|
46
|
-
*/
|
|
47
|
-
export declare function getAvailableMicroFrontendEngines(framework: FrameworkType): string[];
|
|
48
|
-
/**
|
|
49
|
-
* 渲染微前端专属的 features(覆盖标准 features)
|
|
50
|
-
* 只渲染文件系统中存在的微前端 features,实现按需覆盖
|
|
51
|
-
* @param config 项目配置
|
|
52
|
-
* @param targetDir 目标目录
|
|
53
|
-
* @param microFrontendEngine 微前端引擎类型
|
|
54
|
-
* @throws {Error} 如果路径不安全或模板渲染失败
|
|
55
|
-
*/
|
|
56
|
-
export declare function renderMicroFrontendFeatures(config: ProjectConfigType, targetDir: string, microFrontendEngine: string): void;
|