@modern-js/base-generator 3.4.16 → 3.4.17

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/dist/index.js CHANGED
@@ -61783,98 +61783,6 @@ var I18n2 = class {
61783
61783
  }
61784
61784
  };
61785
61785
 
61786
- // ../../generator-common/dist/esm-node/locale/zh.js
61787
- var ZH_LOCALE2 = {
61788
- solution: {
61789
- self: "请选择你想创建的工程类型",
61790
- mwa: "Web 应用",
61791
- module: "Npm 模块",
61792
- custom: "自定义",
61793
- default: "默认"
61794
- },
61795
- scenes: {
61796
- self: "请选择项目场景"
61797
- },
61798
- sub_solution: {
61799
- self: "请选择你想创建的工程类型",
61800
- mwa: "Web 应用",
61801
- module: "Npm 模块"
61802
- },
61803
- action: {
61804
- self: "请选择你想要的操作",
61805
- function: {
61806
- self: "启用可选功能",
61807
- question: "请选择功能名称",
61808
- tailwindcss: "启用「Tailwind CSS」 支持",
61809
- bff: "启用「BFF」功能",
61810
- micro_frontend: "启用「微前端」模式",
61811
- i18n: "启用「国际化(i18n)」功能",
61812
- storybookV7: "启用「Storybook」V7",
61813
- runtime_api: "启用「Runtime API」",
61814
- ssg: "启用「SSG」功能",
61815
- polyfill: "启用「基于 UA 的 Polyfill」功能",
61816
- proxy: "启用「全局代理」",
61817
- swc: "启用「SWC 编译」",
61818
- module_doc: "启动「模块文档」功能"
61819
- },
61820
- element: {
61821
- self: "创建工程元素",
61822
- question: "请选择创建元素类型",
61823
- entry: "新建「应用入口」",
61824
- server: "新建「自定义 Web Server」源码目录"
61825
- },
61826
- refactor: {
61827
- self: "自动重构",
61828
- question: "请选择重构类型",
61829
- react_router_5: "使用 React Router v5"
61830
- }
61831
- },
61832
- boolean: {
61833
- yes: "是",
61834
- no: "否"
61835
- },
61836
- language: {
61837
- self: "请选择开发语言"
61838
- },
61839
- packageManager: {
61840
- self: "请选择包管理工具"
61841
- },
61842
- entry: {
61843
- name: "请填写入口名称",
61844
- no_empty: "入口名称不能为空!",
61845
- no_pages: '入口名称不支持 "pages"!'
61846
- },
61847
- packageName: {
61848
- self: "请填写项目名称",
61849
- sub_name: "请填写子项目名称",
61850
- no_empty: "项目名称不能为空!"
61851
- },
61852
- packagePath: {
61853
- self: "请填写子项目目录名称",
61854
- no_empty: "目录名称不能为空!",
61855
- format: "目录名称只能使用小写字母、数字和分隔线(-)、下划线(_)和目录分隔符(/)"
61856
- },
61857
- framework: {
61858
- self: "请选择运行时框架",
61859
- egg: "Egg",
61860
- express: "Express",
61861
- koa: "Koa",
61862
- nest: "Nest"
61863
- },
61864
- bff: {
61865
- bffType: {
61866
- self: "请选择 BFF 类型",
61867
- func: "函数模式",
61868
- framework: "框架模式"
61869
- }
61870
- },
61871
- buildTools: {
61872
- self: "请选择构建工具",
61873
- webpack: "webpack",
61874
- rspack: "Rspack (实验性)"
61875
- }
61876
- };
61877
-
61878
61786
  // ../../generator-common/dist/esm-node/locale/en.js
61879
61787
  var EN_LOCALE2 = {
61880
61788
  solution: {
@@ -61967,6 +61875,98 @@ var EN_LOCALE2 = {
61967
61875
  }
61968
61876
  };
61969
61877
 
61878
+ // ../../generator-common/dist/esm-node/locale/zh.js
61879
+ var ZH_LOCALE2 = {
61880
+ solution: {
61881
+ self: "请选择你想创建的工程类型",
61882
+ mwa: "Web 应用",
61883
+ module: "Npm 模块",
61884
+ custom: "自定义",
61885
+ default: "默认"
61886
+ },
61887
+ scenes: {
61888
+ self: "请选择项目场景"
61889
+ },
61890
+ sub_solution: {
61891
+ self: "请选择你想创建的工程类型",
61892
+ mwa: "Web 应用",
61893
+ module: "Npm 模块"
61894
+ },
61895
+ action: {
61896
+ self: "请选择你想要的操作",
61897
+ function: {
61898
+ self: "启用可选功能",
61899
+ question: "请选择功能名称",
61900
+ tailwindcss: "启用「Tailwind CSS」 支持",
61901
+ bff: "启用「BFF」功能",
61902
+ micro_frontend: "启用「微前端」模式",
61903
+ i18n: "启用「国际化(i18n)」功能",
61904
+ storybookV7: "启用「Storybook」V7",
61905
+ runtime_api: "启用「Runtime API」",
61906
+ ssg: "启用「SSG」功能",
61907
+ polyfill: "启用「基于 UA 的 Polyfill」功能",
61908
+ proxy: "启用「全局代理」",
61909
+ swc: "启用「SWC 编译」",
61910
+ module_doc: "启动「模块文档」功能"
61911
+ },
61912
+ element: {
61913
+ self: "创建工程元素",
61914
+ question: "请选择创建元素类型",
61915
+ entry: "新建「应用入口」",
61916
+ server: "新建「自定义 Web Server」源码目录"
61917
+ },
61918
+ refactor: {
61919
+ self: "自动重构",
61920
+ question: "请选择重构类型",
61921
+ react_router_5: "使用 React Router v5"
61922
+ }
61923
+ },
61924
+ boolean: {
61925
+ yes: "是",
61926
+ no: "否"
61927
+ },
61928
+ language: {
61929
+ self: "请选择开发语言"
61930
+ },
61931
+ packageManager: {
61932
+ self: "请选择包管理工具"
61933
+ },
61934
+ entry: {
61935
+ name: "请填写入口名称",
61936
+ no_empty: "入口名称不能为空!",
61937
+ no_pages: '入口名称不支持 "pages"!'
61938
+ },
61939
+ packageName: {
61940
+ self: "请填写项目名称",
61941
+ sub_name: "请填写子项目名称",
61942
+ no_empty: "项目名称不能为空!"
61943
+ },
61944
+ packagePath: {
61945
+ self: "请填写子项目目录名称",
61946
+ no_empty: "目录名称不能为空!",
61947
+ format: "目录名称只能使用小写字母、数字和分隔线(-)、下划线(_)和目录分隔符(/)"
61948
+ },
61949
+ framework: {
61950
+ self: "请选择运行时框架",
61951
+ egg: "Egg",
61952
+ express: "Express",
61953
+ koa: "Koa",
61954
+ nest: "Nest"
61955
+ },
61956
+ bff: {
61957
+ bffType: {
61958
+ self: "请选择 BFF 类型",
61959
+ func: "函数模式",
61960
+ framework: "框架模式"
61961
+ }
61962
+ },
61963
+ buildTools: {
61964
+ self: "请选择构建工具",
61965
+ webpack: "webpack",
61966
+ rspack: "Rspack (实验性)"
61967
+ }
61968
+ };
61969
+
61970
61970
  // ../../generator-common/dist/esm-node/locale/index.js
61971
61971
  var i18n2 = new I18n2();
61972
61972
  var localeKeys2 = i18n2.init("en", {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.4.16",
18
+ "version": "3.4.17",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "/dist/index.js"
25
25
  ],
26
26
  "dependencies": {
27
- "@modern-js/utils": "2.58.2"
27
+ "@modern-js/utils": "2.58.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@modern-js/codesmith": "2.4.1",
@@ -33,10 +33,10 @@
33
33
  "@types/node": "^14",
34
34
  "jest": "^29",
35
35
  "typescript": "^5",
36
- "@modern-js/generator-common": "3.4.16",
37
- "@scripts/build": "2.58.2",
38
- "@modern-js/generator-utils": "3.4.16",
39
- "@scripts/jest-config": "2.58.2"
36
+ "@scripts/build": "2.58.3",
37
+ "@modern-js/generator-utils": "3.4.17",
38
+ "@modern-js/generator-common": "3.4.17",
39
+ "@scripts/jest-config": "2.58.3"
40
40
  },
41
41
  "sideEffects": false,
42
42
  "publishConfig": {
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import path from 'path';
2
2
  import type { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
3
3
  import { AppAPI } from '@modern-js/codesmith-api-app';
4
- import { getBaseSchema, PackageManager } from '@modern-js/generator-common';
4
+ import { PackageManager, getBaseSchema } from '@modern-js/generator-common';
5
5
  import { fs } from '@modern-js/generator-utils';
6
6
 
7
7
  const handleTemplateFile = async (