@modern-js/generator-common 3.3.25 → 3.4.1

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 (36) hide show
  1. package/dist/cjs/common/solution.js +5 -28
  2. package/dist/cjs/index.js +1 -6
  3. package/dist/cjs/locale/en.js +1 -5
  4. package/dist/cjs/locale/zh.js +0 -3
  5. package/dist/cjs/newAction/common/index.js +0 -4
  6. package/dist/cjs/newAction/index.js +1 -3
  7. package/dist/cjs/newAction/module/index.js +1 -6
  8. package/dist/cjs/newAction/mwa/index.js +2 -8
  9. package/dist/esm/common/solution.js +6 -27
  10. package/dist/esm/index.js +2 -4
  11. package/dist/esm/locale/en.js +1 -5
  12. package/dist/esm/locale/zh.js +0 -3
  13. package/dist/esm/newAction/common/index.js +0 -6
  14. package/dist/esm/newAction/index.js +0 -1
  15. package/dist/esm/newAction/module/index.js +4 -5
  16. package/dist/esm/newAction/mwa/index.js +17 -19
  17. package/dist/esm-node/common/solution.js +5 -25
  18. package/dist/esm-node/index.js +1 -5
  19. package/dist/esm-node/locale/en.js +1 -5
  20. package/dist/esm-node/locale/zh.js +0 -3
  21. package/dist/esm-node/newAction/common/index.js +0 -4
  22. package/dist/esm-node/newAction/index.js +0 -1
  23. package/dist/esm-node/newAction/module/index.js +1 -6
  24. package/dist/esm-node/newAction/mwa/index.js +2 -8
  25. package/dist/types/common/solution.d.ts +0 -7
  26. package/dist/types/index.d.ts +0 -1
  27. package/dist/types/locale/en.d.ts +0 -4
  28. package/dist/types/locale/index.d.ts +0 -7
  29. package/dist/types/locale/zh.d.ts +0 -3
  30. package/dist/types/newAction/common/index.d.ts +0 -2
  31. package/dist/types/newAction/index.d.ts +0 -1
  32. package/package.json +5 -5
  33. package/dist/cjs/newAction/monorepo/index.js +0 -46
  34. package/dist/esm/newAction/monorepo/index.js +0 -21
  35. package/dist/esm-node/newAction/monorepo/index.js +0 -21
  36. package/dist/types/newAction/monorepo/index.d.ts +0 -4
@@ -27,9 +27,6 @@ __export(solution_exports, {
27
27
  SolutionGenerator: () => SolutionGenerator,
28
28
  SolutionText: () => SolutionText,
29
29
  SolutionToolsMap: () => SolutionToolsMap,
30
- SubSolution: () => SubSolution,
31
- SubSolutionGenerator: () => SubSolutionGenerator,
32
- SubSolutionText: () => SubSolutionText,
33
30
  getScenesSchema: () => getScenesSchema,
34
31
  getSolutionSchema: () => getSolutionSchema
35
32
  });
@@ -39,26 +36,14 @@ var Solution;
39
36
  (function(Solution2) {
40
37
  Solution2["MWA"] = "mwa";
41
38
  Solution2["Module"] = "module";
42
- Solution2["Monorepo"] = "monorepo";
43
39
  })(Solution || (Solution = {}));
44
- var SubSolution;
45
- (function(SubSolution2) {
46
- SubSolution2["MWA"] = "mwa";
47
- SubSolution2["Module"] = "module";
48
- })(SubSolution || (SubSolution = {}));
49
40
  const SolutionText = {
50
41
  ["mwa"]: () => import_locale.i18n.t(import_locale.localeKeys.solution.mwa),
51
- ["module"]: () => import_locale.i18n.t(import_locale.localeKeys.solution.module),
52
- ["monorepo"]: () => import_locale.i18n.t(import_locale.localeKeys.solution.monorepo)
53
- };
54
- const SubSolutionText = {
55
- ["mwa"]: () => import_locale.i18n.t(import_locale.localeKeys.sub_solution.mwa),
56
- ["module"]: () => import_locale.i18n.t(import_locale.localeKeys.sub_solution.module)
42
+ ["module"]: () => import_locale.i18n.t(import_locale.localeKeys.solution.module)
57
43
  };
58
44
  const SolutionToolsMap = {
59
45
  ["mwa"]: "@modern-js/app-tools",
60
- ["module"]: "@modern-js/module-tools",
61
- ["monorepo"]: "@modern-js/monorepo-tools"
46
+ ["module"]: "@modern-js/module-tools"
62
47
  };
63
48
  const getSolutionSchema = (extra = {}) => {
64
49
  return {
@@ -69,9 +54,9 @@ const getSolutionSchema = (extra = {}) => {
69
54
  title: extra.isMonorepo ? import_locale.i18n.t(import_locale.localeKeys.sub_solution.self) : import_locale.i18n.t(import_locale.localeKeys.solution.self),
70
55
  enum: (() => {
71
56
  var _extra_customPlugin_custom, _extra_customPlugin;
72
- const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter((solution) => !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution === "monorepo")).map((solution) => ({
57
+ const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).map((solution) => ({
73
58
  value: solution,
74
- label: (extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
59
+ label: SolutionText[solution]()
75
60
  }));
76
61
  if (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : (_extra_customPlugin_custom = _extra_customPlugin.custom) === null || _extra_customPlugin_custom === void 0 ? void 0 : _extra_customPlugin_custom.length) {
77
62
  return [
@@ -105,7 +90,7 @@ const getScenesSchema = (extra = {}) => {
105
90
  if (solution && solution !== "custom") {
106
91
  items.unshift({
107
92
  value: solution,
108
- label: `${(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? SubSolutionText[solution]() : SolutionText[solution]()}(${import_locale.i18n.t(import_locale.localeKeys.solution.default)})`
93
+ label: `${SolutionText[solution]()}(${import_locale.i18n.t(import_locale.localeKeys.solution.default)})`
109
94
  });
110
95
  }
111
96
  return items;
@@ -117,11 +102,6 @@ const getScenesSchema = (extra = {}) => {
117
102
  const BaseGenerator = "@modern-js/base-generator";
118
103
  const PackagesGenerator = "@modern-js/packages-generator";
119
104
  const SolutionGenerator = {
120
- ["mwa"]: "@modern-js/mwa-generator",
121
- ["module"]: "@modern-js/module-generator",
122
- ["monorepo"]: "@modern-js/monorepo-generator"
123
- };
124
- const SubSolutionGenerator = {
125
105
  ["mwa"]: "@modern-js/mwa-generator",
126
106
  ["module"]: "@modern-js/module-generator"
127
107
  };
@@ -139,9 +119,6 @@ const EntryGenerator = "@modern-js/entry-generator";
139
119
  SolutionGenerator,
140
120
  SolutionText,
141
121
  SolutionToolsMap,
142
- SubSolution,
143
- SubSolutionGenerator,
144
- SubSolutionText,
145
122
  getScenesSchema,
146
123
  getSolutionSchema
147
124
  });
package/dist/cjs/index.js CHANGED
@@ -26,25 +26,21 @@ module.exports = __toCommonJS(src_exports);
26
26
  var import_base = require("./base");
27
27
  var import_common = require("./common");
28
28
  var import_module = require("./module");
29
- var import_monorepo = require("./monorepo");
30
29
  var import_mwa = require("./mwa");
31
30
  __reExport(src_exports, require("./locale"), module.exports);
32
31
  __reExport(src_exports, require("./common"), module.exports);
33
32
  __reExport(src_exports, require("./newAction"), module.exports);
34
33
  __reExport(src_exports, require("./mwa"), module.exports);
35
34
  __reExport(src_exports, require("./module"), module.exports);
36
- __reExport(src_exports, require("./monorepo"), module.exports);
37
35
  __reExport(src_exports, require("./expand"), module.exports);
38
36
  __reExport(src_exports, require("./base"), module.exports);
39
37
  const SolutionDefaultConfig = {
40
38
  [import_common.Solution.MWA]: import_mwa.MWADefaultConfig,
41
- [import_common.Solution.Module]: import_module.ModuleDefaultConfig,
42
- [import_common.Solution.Monorepo]: import_monorepo.MonorepoDefaultConfig
39
+ [import_common.Solution.Module]: import_module.ModuleDefaultConfig
43
40
  };
44
41
  const SolutionSchemas = {
45
42
  [import_common.Solution.MWA]: import_mwa.getMWASchema,
46
43
  [import_common.Solution.Module]: import_module.getModuleSchema,
47
- [import_common.Solution.Monorepo]: import_monorepo.getMonorepoSchema,
48
44
  custom: import_base.getBaseSchema
49
45
  };
50
46
  // Annotate the CommonJS export names for ESM import in node:
@@ -56,7 +52,6 @@ const SolutionSchemas = {
56
52
  ...require("./newAction"),
57
53
  ...require("./mwa"),
58
54
  ...require("./module"),
59
- ...require("./monorepo"),
60
55
  ...require("./expand"),
61
56
  ...require("./base")
62
57
  });
@@ -26,7 +26,6 @@ const EN_LOCALE = {
26
26
  self: "Please select the type of project you want to create:",
27
27
  mwa: "Web App",
28
28
  module: "Npm Module",
29
- monorepo: "Monorepo",
30
29
  custom: "Custom Solution",
31
30
  default: "Default"
32
31
  },
@@ -36,8 +35,7 @@ const EN_LOCALE = {
36
35
  sub_solution: {
37
36
  self: "Please select the type of project you want to create:",
38
37
  mwa: "Web App",
39
- module: "Npm Module",
40
- monorepo: "Monorepo"
38
+ module: "Npm Module"
41
39
  },
42
40
  action: {
43
41
  self: "Please select the operation you want:",
@@ -48,8 +46,6 @@ const EN_LOCALE = {
48
46
  bff: "Enable BFF",
49
47
  micro_frontend: "Enable Micro Frontend",
50
48
  i18n: "Enable Internationalization (i18n)",
51
- test: "Enable Unit Test / Integration Test",
52
- e2e_test: "Enable E2E Test",
53
49
  storybookV7: "Enable Storybook V7",
54
50
  runtime_api: "Enable Runtime API",
55
51
  ssg: "Enable SSG",
@@ -26,7 +26,6 @@ const ZH_LOCALE = {
26
26
  self: "请选择你想创建的工程类型",
27
27
  mwa: "Web 应用",
28
28
  module: "Npm 模块",
29
- monorepo: "Monorepo",
30
29
  custom: "自定义",
31
30
  default: "默认"
32
31
  },
@@ -47,8 +46,6 @@ const ZH_LOCALE = {
47
46
  bff: "启用「BFF」功能",
48
47
  micro_frontend: "启用「微前端」模式",
49
48
  i18n: "启用「国际化(i18n)」功能",
50
- test: "启用「单元测试 / 集成测试」功能",
51
- e2e_test: "启用「E2E 测试」功能",
52
49
  storybookV7: "启用「Storybook」V7",
53
50
  runtime_api: "启用「Runtime API」",
54
51
  ssg: "启用「SSG」功能",
@@ -48,8 +48,6 @@ var ActionFunction;
48
48
  ActionFunction2["BFF"] = "bff";
49
49
  ActionFunction2["MicroFrontend"] = "micro_frontend";
50
50
  ActionFunction2["I18n"] = "i18n";
51
- ActionFunction2["Test"] = "test";
52
- ActionFunction2["E2ETest"] = "e2e_test";
53
51
  ActionFunction2["StorybookV7"] = "storybookV7";
54
52
  ActionFunction2["RuntimeApi"] = "runtimeApi";
55
53
  ActionFunction2["SSG"] = "ssg";
@@ -81,8 +79,6 @@ const ActionFunctionText = {
81
79
  ["bff"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.bff),
82
80
  ["micro_frontend"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.micro_frontend),
83
81
  ["i18n"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.i18n),
84
- ["test"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.test),
85
- ["e2e_test"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.e2e_test),
86
82
  ["storybookV7"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.storybookV7),
87
83
  ["runtimeApi"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.runtime_api),
88
84
  ["ssg"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.ssg),
@@ -18,11 +18,9 @@ module.exports = __toCommonJS(newAction_exports);
18
18
  __reExport(newAction_exports, require("./common"), module.exports);
19
19
  __reExport(newAction_exports, require("./mwa"), module.exports);
20
20
  __reExport(newAction_exports, require("./module"), module.exports);
21
- __reExport(newAction_exports, require("./monorepo"), module.exports);
22
21
  // Annotate the CommonJS export names for ESM import in node:
23
22
  0 && (module.exports = {
24
23
  ...require("./common"),
25
24
  ...require("./mwa"),
26
- ...require("./module"),
27
- ...require("./monorepo")
25
+ ...require("./module")
28
26
  });
@@ -37,7 +37,6 @@ const ModuleActionTypes = [
37
37
  import_common.ActionType.Function
38
38
  ];
39
39
  const ModuleActionFunctions = [
40
- import_common.ActionFunction.Test,
41
40
  import_common.ActionFunction.TailwindCSS,
42
41
  import_common.ActionFunction.StorybookV7,
43
42
  import_common.ActionFunction.RuntimeApi,
@@ -87,7 +86,6 @@ const getModuleNewActionSchema = () => {
87
86
  };
88
87
  const ModuleActionFunctionsDevDependencies = {
89
88
  [import_common.ActionFunction.StorybookV7]: "@modern-js/storybook",
90
- [import_common.ActionFunction.Test]: "@modern-js/plugin-testing",
91
89
  [import_common.ActionFunction.RuntimeApi]: "@modern-js/runtime",
92
90
  [import_common.ActionFunction.TailwindCSS]: "tailwindcss",
93
91
  [import_common.ActionFunction.ModuleDoc]: "@modern-js/plugin-rspress"
@@ -101,7 +99,6 @@ const ModuleActionFunctionsDependencies = {
101
99
  };
102
100
  const ModuleNewActionGenerators = {
103
101
  [import_common.ActionType.Function]: {
104
- [import_common.ActionFunction.Test]: "@modern-js/module-test-generator",
105
102
  [import_common.ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
106
103
  [import_common.ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
107
104
  [import_common.ActionFunction.RuntimeApi]: "@modern-js/dependence-generator",
@@ -111,13 +108,11 @@ const ModuleNewActionGenerators = {
111
108
  const ModuleNewActionPluginName = {
112
109
  [import_common.ActionType.Function]: {
113
110
  [import_common.ActionFunction.TailwindCSS]: "tailwindcssPlugin",
114
- [import_common.ActionFunction.ModuleDoc]: "modulePluginDoc",
115
- [import_common.ActionFunction.Test]: "testingPlugin"
111
+ [import_common.ActionFunction.ModuleDoc]: "modulePluginDoc"
116
112
  }
117
113
  };
118
114
  const ModuleNewActionPluginDependence = {
119
115
  [import_common.ActionType.Function]: {
120
- [import_common.ActionFunction.Test]: "@modern-js/plugin-testing",
121
116
  [import_common.ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
122
117
  [import_common.ActionFunction.ModuleDoc]: "@modern-js/plugin-rspress"
123
118
  }
@@ -50,7 +50,6 @@ const MWAActionFunctions = [
50
50
  import_common2.ActionFunction.SSG,
51
51
  import_common2.ActionFunction.SWC,
52
52
  import_common2.ActionFunction.MicroFrontend,
53
- import_common2.ActionFunction.Test,
54
53
  import_common2.ActionFunction.Polyfill,
55
54
  import_common2.ActionFunction.Proxy,
56
55
  import_common2.ActionFunction.StorybookV7
@@ -147,7 +146,6 @@ const getMWANewActionSchema = () => {
147
146
  };
148
147
  const MWAActionFunctionsDevDependencies = {
149
148
  [import_common2.ActionFunction.SSG]: "@modern-js/plugin-ssg",
150
- [import_common2.ActionFunction.Test]: "@modern-js/plugin-testing",
151
149
  [import_common2.ActionFunction.StorybookV7]: "@modern-js/storybook",
152
150
  [import_common2.ActionFunction.Proxy]: "@modern-js/plugin-proxy",
153
151
  [import_common2.ActionFunction.TailwindCSS]: "tailwindcss",
@@ -160,8 +158,7 @@ const MWAActionFunctionsDependencies = {
160
158
  [import_common2.ActionFunction.Polyfill]: "@modern-js/plugin-polyfill"
161
159
  };
162
160
  const MWAActionFunctionsAppendTypeContent = {
163
- [import_common2.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/types' />`,
164
- [import_common2.ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/types' />`
161
+ [import_common2.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/types' />`
165
162
  };
166
163
  const MWAActionRefactorDependencies = {
167
164
  [import_common2.ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
@@ -178,7 +175,6 @@ const MWANewActionGenerators = {
178
175
  [import_common2.ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
179
176
  [import_common2.ActionFunction.BFF]: "@modern-js/bff-generator",
180
177
  [import_common2.ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
181
- [import_common2.ActionFunction.Test]: "@modern-js/test-generator",
182
178
  [import_common2.ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
183
179
  [import_common2.ActionFunction.SSG]: "@modern-js/ssg-generator",
184
180
  [import_common2.ActionFunction.Polyfill]: "@modern-js/dependence-generator",
@@ -197,14 +193,13 @@ const MWANewActionPluginName = {
197
193
  [import_common2.ActionFunction.TailwindCSS]: "tailwindcssPlugin",
198
194
  [import_common2.ActionFunction.BFF]: "bffPlugin",
199
195
  [import_common2.ActionFunction.MicroFrontend]: "garfishPlugin",
200
- [import_common2.ActionFunction.Test]: "testingPlugin",
201
196
  [import_common2.ActionFunction.SSG]: "ssgPlugin",
202
197
  [import_common2.ActionFunction.Polyfill]: "polyfillPlugin",
203
198
  [import_common2.ActionFunction.Proxy]: "proxyPlugin",
204
199
  [import_common2.ActionFunction.SWC]: "swcPlugin"
205
200
  },
206
201
  [import_common2.ActionType.Refactor]: {
207
- [import_common2.ActionRefactor.ReactRouter5]: "reactRouter5Plugin"
202
+ [import_common2.ActionRefactor.ReactRouter5]: "routerPlugin"
208
203
  }
209
204
  };
210
205
  const MWANewActionPluginDependence = {
@@ -215,7 +210,6 @@ const MWANewActionPluginDependence = {
215
210
  [import_common2.ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
216
211
  [import_common2.ActionFunction.BFF]: "@modern-js/plugin-bff",
217
212
  [import_common2.ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
218
- [import_common2.ActionFunction.Test]: "@modern-js/plugin-testing",
219
213
  [import_common2.ActionFunction.SSG]: "@modern-js/plugin-ssg",
220
214
  [import_common2.ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
221
215
  [import_common2.ActionFunction.Proxy]: "@modern-js/plugin-proxy",
@@ -5,29 +5,15 @@ var Solution;
5
5
  (function(Solution2) {
6
6
  Solution2["MWA"] = "mwa";
7
7
  Solution2["Module"] = "module";
8
- Solution2["Monorepo"] = "monorepo";
9
8
  })(Solution || (Solution = {}));
10
- var SubSolution;
11
- (function(SubSolution2) {
12
- SubSolution2["MWA"] = "mwa";
13
- SubSolution2["Module"] = "module";
14
- })(SubSolution || (SubSolution = {}));
15
9
  var _obj;
16
10
  var SolutionText = (_obj = {}, _define_property(_obj, "mwa", function() {
17
11
  return i18n.t(localeKeys.solution.mwa);
18
12
  }), _define_property(_obj, "module", function() {
19
13
  return i18n.t(localeKeys.solution.module);
20
- }), _define_property(_obj, "monorepo", function() {
21
- return i18n.t(localeKeys.solution.monorepo);
22
14
  }), _obj);
23
15
  var _obj1;
24
- var SubSolutionText = (_obj1 = {}, _define_property(_obj1, "mwa", function() {
25
- return i18n.t(localeKeys.sub_solution.mwa);
26
- }), _define_property(_obj1, "module", function() {
27
- return i18n.t(localeKeys.sub_solution.module);
28
- }), _obj1);
29
- var _obj2;
30
- var SolutionToolsMap = (_obj2 = {}, _define_property(_obj2, "mwa", "@modern-js/app-tools"), _define_property(_obj2, "module", "@modern-js/module-tools"), _define_property(_obj2, "monorepo", "@modern-js/monorepo-tools"), _obj2);
16
+ var SolutionToolsMap = (_obj1 = {}, _define_property(_obj1, "mwa", "@modern-js/app-tools"), _define_property(_obj1, "module", "@modern-js/module-tools"), _obj1);
31
17
  var getSolutionSchema = function() {
32
18
  var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
33
19
  return {
@@ -38,12 +24,10 @@ var getSolutionSchema = function() {
38
24
  title: extra.isMonorepo ? i18n.t(localeKeys.sub_solution.self) : i18n.t(localeKeys.solution.self),
39
25
  enum: function() {
40
26
  var _extra_customPlugin_custom, _extra_customPlugin;
41
- var items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter(function(solution) {
42
- return !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution === "monorepo");
43
- }).map(function(solution) {
27
+ var items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).map(function(solution) {
44
28
  return {
45
29
  value: solution,
46
- label: (extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
30
+ label: SolutionText[solution]()
47
31
  };
48
32
  });
49
33
  if (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : (_extra_customPlugin_custom = _extra_customPlugin.custom) === null || _extra_customPlugin_custom === void 0 ? void 0 : _extra_customPlugin_custom.length) {
@@ -80,7 +64,7 @@ var getScenesSchema = function() {
80
64
  if (solution && solution !== "custom") {
81
65
  items.unshift({
82
66
  value: solution,
83
- label: "".concat((extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? SubSolutionText[solution]() : SolutionText[solution](), "(").concat(i18n.t(localeKeys.solution.default), ")")
67
+ label: "".concat(SolutionText[solution](), "(").concat(i18n.t(localeKeys.solution.default), ")")
84
68
  });
85
69
  }
86
70
  return items;
@@ -91,10 +75,8 @@ var getScenesSchema = function() {
91
75
  };
92
76
  var BaseGenerator = "@modern-js/base-generator";
93
77
  var PackagesGenerator = "@modern-js/packages-generator";
94
- var _obj3;
95
- var SolutionGenerator = (_obj3 = {}, _define_property(_obj3, "mwa", "@modern-js/mwa-generator"), _define_property(_obj3, "module", "@modern-js/module-generator"), _define_property(_obj3, "monorepo", "@modern-js/monorepo-generator"), _obj3);
96
- var _obj4;
97
- var SubSolutionGenerator = (_obj4 = {}, _define_property(_obj4, "mwa", "@modern-js/mwa-generator"), _define_property(_obj4, "module", "@modern-js/module-generator"), _obj4);
78
+ var _obj2;
79
+ var SolutionGenerator = (_obj2 = {}, _define_property(_obj2, "mwa", "@modern-js/mwa-generator"), _define_property(_obj2, "module", "@modern-js/module-generator"), _obj2);
98
80
  var ChangesetGenerator = "@modern-js/changeset-generator";
99
81
  var DependenceGenerator = "@modern-js/dependence-generator";
100
82
  var EntryGenerator = "@modern-js/entry-generator";
@@ -108,9 +90,6 @@ export {
108
90
  SolutionGenerator,
109
91
  SolutionText,
110
92
  SolutionToolsMap,
111
- SubSolution,
112
- SubSolutionGenerator,
113
- SubSolutionText,
114
93
  getScenesSchema,
115
94
  getSolutionSchema
116
95
  };
package/dist/esm/index.js CHANGED
@@ -2,20 +2,18 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
2
  import { getBaseSchema } from "./base";
3
3
  import { Solution } from "./common";
4
4
  import { ModuleDefaultConfig, getModuleSchema } from "./module";
5
- import { MonorepoDefaultConfig, getMonorepoSchema } from "./monorepo";
6
5
  import { MWADefaultConfig, getMWASchema } from "./mwa";
7
6
  export * from "./locale";
8
7
  export * from "./common";
9
8
  export * from "./newAction";
10
9
  export * from "./mwa";
11
10
  export * from "./module";
12
- export * from "./monorepo";
13
11
  export * from "./expand";
14
12
  export * from "./base";
15
13
  var _obj;
16
- var SolutionDefaultConfig = (_obj = {}, _define_property(_obj, Solution.MWA, MWADefaultConfig), _define_property(_obj, Solution.Module, ModuleDefaultConfig), _define_property(_obj, Solution.Monorepo, MonorepoDefaultConfig), _obj);
14
+ var SolutionDefaultConfig = (_obj = {}, _define_property(_obj, Solution.MWA, MWADefaultConfig), _define_property(_obj, Solution.Module, ModuleDefaultConfig), _obj);
17
15
  var _obj1;
18
- var SolutionSchemas = (_obj1 = {}, _define_property(_obj1, Solution.MWA, getMWASchema), _define_property(_obj1, Solution.Module, getModuleSchema), _define_property(_obj1, Solution.Monorepo, getMonorepoSchema), _define_property(_obj1, "custom", getBaseSchema), _obj1);
16
+ var SolutionSchemas = (_obj1 = {}, _define_property(_obj1, Solution.MWA, getMWASchema), _define_property(_obj1, Solution.Module, getModuleSchema), _define_property(_obj1, "custom", getBaseSchema), _obj1);
19
17
  export {
20
18
  SolutionDefaultConfig,
21
19
  SolutionSchemas
@@ -3,7 +3,6 @@ var EN_LOCALE = {
3
3
  self: "Please select the type of project you want to create:",
4
4
  mwa: "Web App",
5
5
  module: "Npm Module",
6
- monorepo: "Monorepo",
7
6
  custom: "Custom Solution",
8
7
  default: "Default"
9
8
  },
@@ -13,8 +12,7 @@ var EN_LOCALE = {
13
12
  sub_solution: {
14
13
  self: "Please select the type of project you want to create:",
15
14
  mwa: "Web App",
16
- module: "Npm Module",
17
- monorepo: "Monorepo"
15
+ module: "Npm Module"
18
16
  },
19
17
  action: {
20
18
  self: "Please select the operation you want:",
@@ -25,8 +23,6 @@ var EN_LOCALE = {
25
23
  bff: "Enable BFF",
26
24
  micro_frontend: "Enable Micro Frontend",
27
25
  i18n: "Enable Internationalization (i18n)",
28
- test: "Enable Unit Test / Integration Test",
29
- e2e_test: "Enable E2E Test",
30
26
  storybookV7: "Enable Storybook V7",
31
27
  runtime_api: "Enable Runtime API",
32
28
  ssg: "Enable SSG",
@@ -3,7 +3,6 @@ var ZH_LOCALE = {
3
3
  self: "请选择你想创建的工程类型",
4
4
  mwa: "Web 应用",
5
5
  module: "Npm 模块",
6
- monorepo: "Monorepo",
7
6
  custom: "自定义",
8
7
  default: "默认"
9
8
  },
@@ -24,8 +23,6 @@ var ZH_LOCALE = {
24
23
  bff: "启用「BFF」功能",
25
24
  micro_frontend: "启用「微前端」模式",
26
25
  i18n: "启用「国际化(i18n)」功能",
27
- test: "启用「单元测试 / 集成测试」功能",
28
- e2e_test: "启用「E2E 测试」功能",
29
26
  storybookV7: "启用「Storybook」V7",
30
27
  runtime_api: "启用「Runtime API」",
31
28
  ssg: "启用「SSG」功能",
@@ -17,8 +17,6 @@ var ActionFunction;
17
17
  ActionFunction2["BFF"] = "bff";
18
18
  ActionFunction2["MicroFrontend"] = "micro_frontend";
19
19
  ActionFunction2["I18n"] = "i18n";
20
- ActionFunction2["Test"] = "test";
21
- ActionFunction2["E2ETest"] = "e2e_test";
22
20
  ActionFunction2["StorybookV7"] = "storybookV7";
23
21
  ActionFunction2["RuntimeApi"] = "runtimeApi";
24
22
  ActionFunction2["SSG"] = "ssg";
@@ -62,10 +60,6 @@ var ActionFunctionText = (_obj3 = {}, _define_property(_obj3, "tailwindcss", fun
62
60
  return i18n.t(localeKeys.action.function.micro_frontend);
63
61
  }), _define_property(_obj3, "i18n", function() {
64
62
  return i18n.t(localeKeys.action.function.i18n);
65
- }), _define_property(_obj3, "test", function() {
66
- return i18n.t(localeKeys.action.function.test);
67
- }), _define_property(_obj3, "e2e_test", function() {
68
- return i18n.t(localeKeys.action.function.e2e_test);
69
63
  }), _define_property(_obj3, "storybookV7", function() {
70
64
  return i18n.t(localeKeys.action.function.storybookV7);
71
65
  }), _define_property(_obj3, "runtimeApi", function() {
@@ -1,4 +1,3 @@
1
1
  export * from "./common";
2
2
  export * from "./mwa";
3
3
  export * from "./module";
4
- export * from "./monorepo";
@@ -5,7 +5,6 @@ var ModuleActionTypes = [
5
5
  ActionType.Function
6
6
  ];
7
7
  var ModuleActionFunctions = [
8
- ActionFunction.Test,
9
8
  ActionFunction.TailwindCSS,
10
9
  ActionFunction.StorybookV7,
11
10
  ActionFunction.RuntimeApi,
@@ -55,16 +54,16 @@ var getModuleNewActionSchema = function() {
55
54
  };
56
55
  };
57
56
  var _obj;
58
- var ModuleActionFunctionsDevDependencies = (_obj = {}, _define_property(_obj, ActionFunction.StorybookV7, "@modern-js/storybook"), _define_property(_obj, ActionFunction.Test, "@modern-js/plugin-testing"), _define_property(_obj, ActionFunction.RuntimeApi, "@modern-js/runtime"), _define_property(_obj, ActionFunction.TailwindCSS, "tailwindcss"), _define_property(_obj, ActionFunction.ModuleDoc, "@modern-js/plugin-rspress"), _obj);
57
+ var ModuleActionFunctionsDevDependencies = (_obj = {}, _define_property(_obj, ActionFunction.StorybookV7, "@modern-js/storybook"), _define_property(_obj, ActionFunction.RuntimeApi, "@modern-js/runtime"), _define_property(_obj, ActionFunction.TailwindCSS, "tailwindcss"), _define_property(_obj, ActionFunction.ModuleDoc, "@modern-js/plugin-rspress"), _obj);
59
58
  var _obj1;
60
59
  var ModuleActionFunctionsPeerDependencies = (_obj1 = {}, _define_property(_obj1, ActionFunction.RuntimeApi, "@modern-js/runtime"), _define_property(_obj1, ActionFunction.TailwindCSS, "tailwindcss"), _obj1);
61
60
  var ModuleActionFunctionsDependencies = _define_property({}, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss");
62
61
  var _obj2;
63
- var ModuleNewActionGenerators = _define_property({}, ActionType.Function, (_obj2 = {}, _define_property(_obj2, ActionFunction.Test, "@modern-js/module-test-generator"), _define_property(_obj2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _define_property(_obj2, ActionFunction.StorybookV7, "@modern-js/storybook-next-generator"), _define_property(_obj2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _define_property(_obj2, ActionFunction.ModuleDoc, "@modern-js/module-doc-generator"), _obj2));
62
+ var ModuleNewActionGenerators = _define_property({}, ActionType.Function, (_obj2 = {}, _define_property(_obj2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _define_property(_obj2, ActionFunction.StorybookV7, "@modern-js/storybook-next-generator"), _define_property(_obj2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _define_property(_obj2, ActionFunction.ModuleDoc, "@modern-js/module-doc-generator"), _obj2));
64
63
  var _obj3;
65
- var ModuleNewActionPluginName = _define_property({}, ActionType.Function, (_obj3 = {}, _define_property(_obj3, ActionFunction.TailwindCSS, "tailwindcssPlugin"), _define_property(_obj3, ActionFunction.ModuleDoc, "modulePluginDoc"), _define_property(_obj3, ActionFunction.Test, "testingPlugin"), _obj3));
64
+ var ModuleNewActionPluginName = _define_property({}, ActionType.Function, (_obj3 = {}, _define_property(_obj3, ActionFunction.TailwindCSS, "tailwindcssPlugin"), _define_property(_obj3, ActionFunction.ModuleDoc, "modulePluginDoc"), _obj3));
66
65
  var _obj4;
67
- var ModuleNewActionPluginDependence = _define_property({}, ActionType.Function, (_obj4 = {}, _define_property(_obj4, ActionFunction.Test, "@modern-js/plugin-testing"), _define_property(_obj4, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _define_property(_obj4, ActionFunction.ModuleDoc, "@modern-js/plugin-rspress"), _obj4));
66
+ var ModuleNewActionPluginDependence = _define_property({}, ActionType.Function, (_obj4 = {}, _define_property(_obj4, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _define_property(_obj4, ActionFunction.ModuleDoc, "@modern-js/plugin-rspress"), _obj4));
68
67
  export {
69
68
  ModuleActionFunctions,
70
69
  ModuleActionFunctionsDependencies,
@@ -13,7 +13,6 @@ var MWAActionFunctions = [
13
13
  ActionFunction.SSG,
14
14
  ActionFunction.SWC,
15
15
  ActionFunction.MicroFrontend,
16
- ActionFunction.Test,
17
16
  ActionFunction.Polyfill,
18
17
  ActionFunction.Proxy,
19
18
  ActionFunction.StorybookV7
@@ -28,10 +27,10 @@ var MWAActionReactors = [
28
27
  var _obj;
29
28
  var MWAActionTypesMap = (_obj = {}, _define_property(_obj, ActionType.Element, MWAActionElements), _define_property(_obj, ActionType.Function, MWAActionFunctions), _define_property(_obj, ActionType.Refactor, MWAActionReactors), _obj);
30
29
  var getMWANewActionSchema = function() {
31
- var _obj13;
30
+ var _obj12;
32
31
  return {
33
32
  type: "object",
34
- properties: (_obj13 = {
33
+ properties: (_obj12 = {
35
34
  actionType: {
36
35
  type: "string",
37
36
  title: i18n.t(localeKeys.action.self),
@@ -45,7 +44,7 @@ var getMWANewActionSchema = function() {
45
44
  };
46
45
  })
47
46
  }
48
- }, _define_property(_obj13, ActionType.Element, {
47
+ }, _define_property(_obj12, ActionType.Element, {
49
48
  type: "string",
50
49
  title: ActionTypeQuestionText[ActionType.Element](),
51
50
  enum: MWAActionElements.map(function(element) {
@@ -66,7 +65,7 @@ var getMWANewActionSchema = function() {
66
65
  }
67
66
  }
68
67
  ]
69
- }), _define_property(_obj13, ActionType.Function, {
68
+ }), _define_property(_obj12, ActionType.Function, {
70
69
  type: "string",
71
70
  title: ActionTypeQuestionText[ActionType.Function](),
72
71
  enum: MWAActionFunctions.map(function(func) {
@@ -87,7 +86,7 @@ var getMWANewActionSchema = function() {
87
86
  }
88
87
  }
89
88
  ]
90
- }), _define_property(_obj13, ActionType.Refactor, {
89
+ }), _define_property(_obj12, ActionType.Refactor, {
91
90
  type: "string",
92
91
  title: ActionTypeQuestionText[ActionType.Refactor](),
93
92
  enum: MWAActionReactors.map(function(refactor) {
@@ -108,27 +107,26 @@ var getMWANewActionSchema = function() {
108
107
  }
109
108
  }
110
109
  ]
111
- }), _obj13)
110
+ }), _obj12)
112
111
  };
113
112
  };
114
113
  var _obj1;
115
- var MWAActionFunctionsDevDependencies = (_obj1 = {}, _define_property(_obj1, ActionFunction.SSG, "@modern-js/plugin-ssg"), _define_property(_obj1, ActionFunction.Test, "@modern-js/plugin-testing"), _define_property(_obj1, ActionFunction.StorybookV7, "@modern-js/storybook"), _define_property(_obj1, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _define_property(_obj1, ActionFunction.TailwindCSS, "tailwindcss"), _define_property(_obj1, ActionFunction.SWC, "@modern-js/plugin-swc"), _obj1);
114
+ var MWAActionFunctionsDevDependencies = (_obj1 = {}, _define_property(_obj1, ActionFunction.SSG, "@modern-js/plugin-ssg"), _define_property(_obj1, ActionFunction.StorybookV7, "@modern-js/storybook"), _define_property(_obj1, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _define_property(_obj1, ActionFunction.TailwindCSS, "tailwindcss"), _define_property(_obj1, ActionFunction.SWC, "@modern-js/plugin-swc"), _obj1);
116
115
  var _obj2;
117
116
  var MWAActionFunctionsDependencies = (_obj2 = {}, _define_property(_obj2, ActionFunction.BFF, "@modern-js/plugin-bff"), _define_property(_obj2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _define_property(_obj2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _define_property(_obj2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _obj2);
118
- var _obj3;
119
- var MWAActionFunctionsAppendTypeContent = (_obj3 = {}, _define_property(_obj3, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />"), _define_property(_obj3, ActionFunction.Test, "/// <reference types='@modern-js/plugin-testing/types' />"), _obj3);
117
+ var MWAActionFunctionsAppendTypeContent = _define_property({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
120
118
  var MWAActionRefactorDependencies = _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/plugin-router-v5");
121
119
  var MWAActionReactorAppendTypeContent = _define_property({}, ActionRefactor.ReactRouter5, "/// <reference types='@modern-js/plugin-router-v5/types' />");
122
- var _obj4, _obj5, _obj6;
123
- var MWANewActionGenerators = (_obj6 = {}, _define_property(_obj6, ActionType.Element, (_obj4 = {}, _define_property(_obj4, ActionElement.Entry, "@modern-js/entry-generator"), _define_property(_obj4, ActionElement.Server, "@modern-js/server-generator"), _obj4)), _define_property(_obj6, ActionType.Function, (_obj5 = {}, _define_property(_obj5, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _define_property(_obj5, ActionFunction.BFF, "@modern-js/bff-generator"), _define_property(_obj5, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _define_property(_obj5, ActionFunction.Test, "@modern-js/test-generator"), _define_property(_obj5, ActionFunction.StorybookV7, "@modern-js/storybook-next-generator"), _define_property(_obj5, ActionFunction.SSG, "@modern-js/ssg-generator"), _define_property(_obj5, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _define_property(_obj5, ActionFunction.Proxy, "@modern-js/dependence-generator"), _define_property(_obj5, ActionFunction.SWC, "@modern-js/dependence-generator"), _obj5)), _define_property(_obj6, ActionType.Refactor, _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/router-v5-generator")), _obj6);
124
- var _obj7, _obj8;
125
- var MWANewActionPluginName = (_obj8 = {}, _define_property(_obj8, ActionType.Element, _define_property({}, ActionElement.Server, "serverPlugin")), _define_property(_obj8, ActionType.Function, (_obj7 = {}, _define_property(_obj7, ActionFunction.TailwindCSS, "tailwindcssPlugin"), _define_property(_obj7, ActionFunction.BFF, "bffPlugin"), _define_property(_obj7, ActionFunction.MicroFrontend, "garfishPlugin"), _define_property(_obj7, ActionFunction.Test, "testingPlugin"), _define_property(_obj7, ActionFunction.SSG, "ssgPlugin"), _define_property(_obj7, ActionFunction.Polyfill, "polyfillPlugin"), _define_property(_obj7, ActionFunction.Proxy, "proxyPlugin"), _define_property(_obj7, ActionFunction.SWC, "swcPlugin"), _obj7)), _define_property(_obj8, ActionType.Refactor, _define_property({}, ActionRefactor.ReactRouter5, "reactRouter5Plugin")), _obj8);
126
- var _obj9, _obj10;
127
- var MWANewActionPluginDependence = (_obj10 = {}, _define_property(_obj10, ActionType.Element, _define_property({}, ActionElement.Server, "@modern-js/plugin-server")), _define_property(_obj10, ActionType.Function, (_obj9 = {}, _define_property(_obj9, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _define_property(_obj9, ActionFunction.BFF, "@modern-js/plugin-bff"), _define_property(_obj9, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _define_property(_obj9, ActionFunction.Test, "@modern-js/plugin-testing"), _define_property(_obj9, ActionFunction.SSG, "@modern-js/plugin-ssg"), _define_property(_obj9, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _define_property(_obj9, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _define_property(_obj9, ActionFunction.SWC, "@modern-js/plugin-swc"), _obj9)), _define_property(_obj10, ActionType.Refactor, _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/plugin-router-v5")), _obj10);
120
+ var _obj3, _obj4, _obj5;
121
+ var MWANewActionGenerators = (_obj5 = {}, _define_property(_obj5, ActionType.Element, (_obj3 = {}, _define_property(_obj3, ActionElement.Entry, "@modern-js/entry-generator"), _define_property(_obj3, ActionElement.Server, "@modern-js/server-generator"), _obj3)), _define_property(_obj5, ActionType.Function, (_obj4 = {}, _define_property(_obj4, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _define_property(_obj4, ActionFunction.BFF, "@modern-js/bff-generator"), _define_property(_obj4, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _define_property(_obj4, ActionFunction.StorybookV7, "@modern-js/storybook-next-generator"), _define_property(_obj4, ActionFunction.SSG, "@modern-js/ssg-generator"), _define_property(_obj4, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _define_property(_obj4, ActionFunction.Proxy, "@modern-js/dependence-generator"), _define_property(_obj4, ActionFunction.SWC, "@modern-js/dependence-generator"), _obj4)), _define_property(_obj5, ActionType.Refactor, _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/router-v5-generator")), _obj5);
122
+ var _obj6, _obj7;
123
+ var MWANewActionPluginName = (_obj7 = {}, _define_property(_obj7, ActionType.Element, _define_property({}, ActionElement.Server, "serverPlugin")), _define_property(_obj7, ActionType.Function, (_obj6 = {}, _define_property(_obj6, ActionFunction.TailwindCSS, "tailwindcssPlugin"), _define_property(_obj6, ActionFunction.BFF, "bffPlugin"), _define_property(_obj6, ActionFunction.MicroFrontend, "garfishPlugin"), _define_property(_obj6, ActionFunction.SSG, "ssgPlugin"), _define_property(_obj6, ActionFunction.Polyfill, "polyfillPlugin"), _define_property(_obj6, ActionFunction.Proxy, "proxyPlugin"), _define_property(_obj6, ActionFunction.SWC, "swcPlugin"), _obj6)), _define_property(_obj7, ActionType.Refactor, _define_property({}, ActionRefactor.ReactRouter5, "routerPlugin")), _obj7);
124
+ var _obj8, _obj9;
125
+ var MWANewActionPluginDependence = (_obj9 = {}, _define_property(_obj9, ActionType.Element, _define_property({}, ActionElement.Server, "@modern-js/plugin-server")), _define_property(_obj9, ActionType.Function, (_obj8 = {}, _define_property(_obj8, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _define_property(_obj8, ActionFunction.BFF, "@modern-js/plugin-bff"), _define_property(_obj8, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _define_property(_obj8, ActionFunction.SSG, "@modern-js/plugin-ssg"), _define_property(_obj8, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _define_property(_obj8, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _define_property(_obj8, ActionFunction.SWC, "@modern-js/plugin-swc"), _obj8)), _define_property(_obj9, ActionType.Refactor, _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/plugin-router-v5")), _obj9);
126
+ var _obj10;
127
+ var BFFPluginName = (_obj10 = {}, _define_property(_obj10, Framework.Express, "expressPlugin"), _define_property(_obj10, Framework.Koa, "koaPlugin"), _obj10);
128
128
  var _obj11;
129
- var BFFPluginName = (_obj11 = {}, _define_property(_obj11, Framework.Express, "expressPlugin"), _define_property(_obj11, Framework.Koa, "koaPlugin"), _obj11);
130
- var _obj12;
131
- var BFFPluginDependence = (_obj12 = {}, _define_property(_obj12, Framework.Express, "@modern-js/plugin-express"), _define_property(_obj12, Framework.Koa, "@modern-js/plugin-koa"), _obj12);
129
+ var BFFPluginDependence = (_obj11 = {}, _define_property(_obj11, Framework.Express, "@modern-js/plugin-express"), _define_property(_obj11, Framework.Koa, "@modern-js/plugin-koa"), _obj11);
132
130
  export {
133
131
  BFFPluginDependence,
134
132
  BFFPluginName,
@@ -3,26 +3,14 @@ var Solution;
3
3
  (function(Solution2) {
4
4
  Solution2["MWA"] = "mwa";
5
5
  Solution2["Module"] = "module";
6
- Solution2["Monorepo"] = "monorepo";
7
6
  })(Solution || (Solution = {}));
8
- var SubSolution;
9
- (function(SubSolution2) {
10
- SubSolution2["MWA"] = "mwa";
11
- SubSolution2["Module"] = "module";
12
- })(SubSolution || (SubSolution = {}));
13
7
  const SolutionText = {
14
8
  ["mwa"]: () => i18n.t(localeKeys.solution.mwa),
15
- ["module"]: () => i18n.t(localeKeys.solution.module),
16
- ["monorepo"]: () => i18n.t(localeKeys.solution.monorepo)
17
- };
18
- const SubSolutionText = {
19
- ["mwa"]: () => i18n.t(localeKeys.sub_solution.mwa),
20
- ["module"]: () => i18n.t(localeKeys.sub_solution.module)
9
+ ["module"]: () => i18n.t(localeKeys.solution.module)
21
10
  };
22
11
  const SolutionToolsMap = {
23
12
  ["mwa"]: "@modern-js/app-tools",
24
- ["module"]: "@modern-js/module-tools",
25
- ["monorepo"]: "@modern-js/monorepo-tools"
13
+ ["module"]: "@modern-js/module-tools"
26
14
  };
27
15
  const getSolutionSchema = (extra = {}) => {
28
16
  return {
@@ -33,9 +21,9 @@ const getSolutionSchema = (extra = {}) => {
33
21
  title: extra.isMonorepo ? i18n.t(localeKeys.sub_solution.self) : i18n.t(localeKeys.solution.self),
34
22
  enum: (() => {
35
23
  var _extra_customPlugin_custom, _extra_customPlugin;
36
- const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter((solution) => !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution === "monorepo")).map((solution) => ({
24
+ const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).map((solution) => ({
37
25
  value: solution,
38
- label: (extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
26
+ label: SolutionText[solution]()
39
27
  }));
40
28
  if (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : (_extra_customPlugin_custom = _extra_customPlugin.custom) === null || _extra_customPlugin_custom === void 0 ? void 0 : _extra_customPlugin_custom.length) {
41
29
  return [
@@ -69,7 +57,7 @@ const getScenesSchema = (extra = {}) => {
69
57
  if (solution && solution !== "custom") {
70
58
  items.unshift({
71
59
  value: solution,
72
- label: `${(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) ? SubSolutionText[solution]() : SolutionText[solution]()}(${i18n.t(localeKeys.solution.default)})`
60
+ label: `${SolutionText[solution]()}(${i18n.t(localeKeys.solution.default)})`
73
61
  });
74
62
  }
75
63
  return items;
@@ -81,11 +69,6 @@ const getScenesSchema = (extra = {}) => {
81
69
  const BaseGenerator = "@modern-js/base-generator";
82
70
  const PackagesGenerator = "@modern-js/packages-generator";
83
71
  const SolutionGenerator = {
84
- ["mwa"]: "@modern-js/mwa-generator",
85
- ["module"]: "@modern-js/module-generator",
86
- ["monorepo"]: "@modern-js/monorepo-generator"
87
- };
88
- const SubSolutionGenerator = {
89
72
  ["mwa"]: "@modern-js/mwa-generator",
90
73
  ["module"]: "@modern-js/module-generator"
91
74
  };
@@ -102,9 +85,6 @@ export {
102
85
  SolutionGenerator,
103
86
  SolutionText,
104
87
  SolutionToolsMap,
105
- SubSolution,
106
- SubSolutionGenerator,
107
- SubSolutionText,
108
88
  getScenesSchema,
109
89
  getSolutionSchema
110
90
  };
@@ -1,25 +1,21 @@
1
1
  import { getBaseSchema } from "./base";
2
2
  import { Solution } from "./common";
3
3
  import { ModuleDefaultConfig, getModuleSchema } from "./module";
4
- import { MonorepoDefaultConfig, getMonorepoSchema } from "./monorepo";
5
4
  import { MWADefaultConfig, getMWASchema } from "./mwa";
6
5
  export * from "./locale";
7
6
  export * from "./common";
8
7
  export * from "./newAction";
9
8
  export * from "./mwa";
10
9
  export * from "./module";
11
- export * from "./monorepo";
12
10
  export * from "./expand";
13
11
  export * from "./base";
14
12
  const SolutionDefaultConfig = {
15
13
  [Solution.MWA]: MWADefaultConfig,
16
- [Solution.Module]: ModuleDefaultConfig,
17
- [Solution.Monorepo]: MonorepoDefaultConfig
14
+ [Solution.Module]: ModuleDefaultConfig
18
15
  };
19
16
  const SolutionSchemas = {
20
17
  [Solution.MWA]: getMWASchema,
21
18
  [Solution.Module]: getModuleSchema,
22
- [Solution.Monorepo]: getMonorepoSchema,
23
19
  custom: getBaseSchema
24
20
  };
25
21
  export {
@@ -3,7 +3,6 @@ const EN_LOCALE = {
3
3
  self: "Please select the type of project you want to create:",
4
4
  mwa: "Web App",
5
5
  module: "Npm Module",
6
- monorepo: "Monorepo",
7
6
  custom: "Custom Solution",
8
7
  default: "Default"
9
8
  },
@@ -13,8 +12,7 @@ const EN_LOCALE = {
13
12
  sub_solution: {
14
13
  self: "Please select the type of project you want to create:",
15
14
  mwa: "Web App",
16
- module: "Npm Module",
17
- monorepo: "Monorepo"
15
+ module: "Npm Module"
18
16
  },
19
17
  action: {
20
18
  self: "Please select the operation you want:",
@@ -25,8 +23,6 @@ const EN_LOCALE = {
25
23
  bff: "Enable BFF",
26
24
  micro_frontend: "Enable Micro Frontend",
27
25
  i18n: "Enable Internationalization (i18n)",
28
- test: "Enable Unit Test / Integration Test",
29
- e2e_test: "Enable E2E Test",
30
26
  storybookV7: "Enable Storybook V7",
31
27
  runtime_api: "Enable Runtime API",
32
28
  ssg: "Enable SSG",
@@ -3,7 +3,6 @@ const ZH_LOCALE = {
3
3
  self: "请选择你想创建的工程类型",
4
4
  mwa: "Web 应用",
5
5
  module: "Npm 模块",
6
- monorepo: "Monorepo",
7
6
  custom: "自定义",
8
7
  default: "默认"
9
8
  },
@@ -24,8 +23,6 @@ const ZH_LOCALE = {
24
23
  bff: "启用「BFF」功能",
25
24
  micro_frontend: "启用「微前端」模式",
26
25
  i18n: "启用「国际化(i18n)」功能",
27
- test: "启用「单元测试 / 集成测试」功能",
28
- e2e_test: "启用「E2E 测试」功能",
29
26
  storybookV7: "启用「Storybook」V7",
30
27
  runtime_api: "启用「Runtime API」",
31
28
  ssg: "启用「SSG」功能",
@@ -16,8 +16,6 @@ var ActionFunction;
16
16
  ActionFunction2["BFF"] = "bff";
17
17
  ActionFunction2["MicroFrontend"] = "micro_frontend";
18
18
  ActionFunction2["I18n"] = "i18n";
19
- ActionFunction2["Test"] = "test";
20
- ActionFunction2["E2ETest"] = "e2e_test";
21
19
  ActionFunction2["StorybookV7"] = "storybookV7";
22
20
  ActionFunction2["RuntimeApi"] = "runtimeApi";
23
21
  ActionFunction2["SSG"] = "ssg";
@@ -49,8 +47,6 @@ const ActionFunctionText = {
49
47
  ["bff"]: () => i18n.t(localeKeys.action.function.bff),
50
48
  ["micro_frontend"]: () => i18n.t(localeKeys.action.function.micro_frontend),
51
49
  ["i18n"]: () => i18n.t(localeKeys.action.function.i18n),
52
- ["test"]: () => i18n.t(localeKeys.action.function.test),
53
- ["e2e_test"]: () => i18n.t(localeKeys.action.function.e2e_test),
54
50
  ["storybookV7"]: () => i18n.t(localeKeys.action.function.storybookV7),
55
51
  ["runtimeApi"]: () => i18n.t(localeKeys.action.function.runtime_api),
56
52
  ["ssg"]: () => i18n.t(localeKeys.action.function.ssg),
@@ -1,4 +1,3 @@
1
1
  export * from "./common";
2
2
  export * from "./mwa";
3
3
  export * from "./module";
4
- export * from "./monorepo";
@@ -4,7 +4,6 @@ const ModuleActionTypes = [
4
4
  ActionType.Function
5
5
  ];
6
6
  const ModuleActionFunctions = [
7
- ActionFunction.Test,
8
7
  ActionFunction.TailwindCSS,
9
8
  ActionFunction.StorybookV7,
10
9
  ActionFunction.RuntimeApi,
@@ -54,7 +53,6 @@ const getModuleNewActionSchema = () => {
54
53
  };
55
54
  const ModuleActionFunctionsDevDependencies = {
56
55
  [ActionFunction.StorybookV7]: "@modern-js/storybook",
57
- [ActionFunction.Test]: "@modern-js/plugin-testing",
58
56
  [ActionFunction.RuntimeApi]: "@modern-js/runtime",
59
57
  [ActionFunction.TailwindCSS]: "tailwindcss",
60
58
  [ActionFunction.ModuleDoc]: "@modern-js/plugin-rspress"
@@ -68,7 +66,6 @@ const ModuleActionFunctionsDependencies = {
68
66
  };
69
67
  const ModuleNewActionGenerators = {
70
68
  [ActionType.Function]: {
71
- [ActionFunction.Test]: "@modern-js/module-test-generator",
72
69
  [ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
73
70
  [ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
74
71
  [ActionFunction.RuntimeApi]: "@modern-js/dependence-generator",
@@ -78,13 +75,11 @@ const ModuleNewActionGenerators = {
78
75
  const ModuleNewActionPluginName = {
79
76
  [ActionType.Function]: {
80
77
  [ActionFunction.TailwindCSS]: "tailwindcssPlugin",
81
- [ActionFunction.ModuleDoc]: "modulePluginDoc",
82
- [ActionFunction.Test]: "testingPlugin"
78
+ [ActionFunction.ModuleDoc]: "modulePluginDoc"
83
79
  }
84
80
  };
85
81
  const ModuleNewActionPluginDependence = {
86
82
  [ActionType.Function]: {
87
- [ActionFunction.Test]: "@modern-js/plugin-testing",
88
83
  [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
89
84
  [ActionFunction.ModuleDoc]: "@modern-js/plugin-rspress"
90
85
  }
@@ -12,7 +12,6 @@ const MWAActionFunctions = [
12
12
  ActionFunction.SSG,
13
13
  ActionFunction.SWC,
14
14
  ActionFunction.MicroFrontend,
15
- ActionFunction.Test,
16
15
  ActionFunction.Polyfill,
17
16
  ActionFunction.Proxy,
18
17
  ActionFunction.StorybookV7
@@ -109,7 +108,6 @@ const getMWANewActionSchema = () => {
109
108
  };
110
109
  const MWAActionFunctionsDevDependencies = {
111
110
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
112
- [ActionFunction.Test]: "@modern-js/plugin-testing",
113
111
  [ActionFunction.StorybookV7]: "@modern-js/storybook",
114
112
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
115
113
  [ActionFunction.TailwindCSS]: "tailwindcss",
@@ -122,8 +120,7 @@ const MWAActionFunctionsDependencies = {
122
120
  [ActionFunction.Polyfill]: "@modern-js/plugin-polyfill"
123
121
  };
124
122
  const MWAActionFunctionsAppendTypeContent = {
125
- [ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/types' />`,
126
- [ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/types' />`
123
+ [ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/types' />`
127
124
  };
128
125
  const MWAActionRefactorDependencies = {
129
126
  [ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
@@ -140,7 +137,6 @@ const MWANewActionGenerators = {
140
137
  [ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
141
138
  [ActionFunction.BFF]: "@modern-js/bff-generator",
142
139
  [ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
143
- [ActionFunction.Test]: "@modern-js/test-generator",
144
140
  [ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
145
141
  [ActionFunction.SSG]: "@modern-js/ssg-generator",
146
142
  [ActionFunction.Polyfill]: "@modern-js/dependence-generator",
@@ -159,14 +155,13 @@ const MWANewActionPluginName = {
159
155
  [ActionFunction.TailwindCSS]: "tailwindcssPlugin",
160
156
  [ActionFunction.BFF]: "bffPlugin",
161
157
  [ActionFunction.MicroFrontend]: "garfishPlugin",
162
- [ActionFunction.Test]: "testingPlugin",
163
158
  [ActionFunction.SSG]: "ssgPlugin",
164
159
  [ActionFunction.Polyfill]: "polyfillPlugin",
165
160
  [ActionFunction.Proxy]: "proxyPlugin",
166
161
  [ActionFunction.SWC]: "swcPlugin"
167
162
  },
168
163
  [ActionType.Refactor]: {
169
- [ActionRefactor.ReactRouter5]: "reactRouter5Plugin"
164
+ [ActionRefactor.ReactRouter5]: "routerPlugin"
170
165
  }
171
166
  };
172
167
  const MWANewActionPluginDependence = {
@@ -177,7 +172,6 @@ const MWANewActionPluginDependence = {
177
172
  [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
178
173
  [ActionFunction.BFF]: "@modern-js/plugin-bff",
179
174
  [ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
180
- [ActionFunction.Test]: "@modern-js/plugin-testing",
181
175
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
182
176
  [ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
183
177
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
@@ -1,22 +1,15 @@
1
1
  import { Schema } from '@modern-js/codesmith-formily';
2
2
  export declare enum Solution {
3
- MWA = "mwa",
4
- Module = "module",
5
- Monorepo = "monorepo"
6
- }
7
- export declare enum SubSolution {
8
3
  MWA = "mwa",
9
4
  Module = "module"
10
5
  }
11
6
  export declare const SolutionText: Record<Solution, () => string>;
12
- export declare const SubSolutionText: Record<SubSolution, () => string>;
13
7
  export declare const SolutionToolsMap: Record<Solution, string>;
14
8
  export declare const getSolutionSchema: (extra?: Record<string, any>) => Schema;
15
9
  export declare const getScenesSchema: (extra?: Record<string, any>) => Schema;
16
10
  export declare const BaseGenerator = "@modern-js/base-generator";
17
11
  export declare const PackagesGenerator = "@modern-js/packages-generator";
18
12
  export declare const SolutionGenerator: Record<Solution, string>;
19
- export declare const SubSolutionGenerator: Record<SubSolution, string>;
20
13
  export declare const ChangesetGenerator = "@modern-js/changeset-generator";
21
14
  export declare const DependenceGenerator = "@modern-js/dependence-generator";
22
15
  export declare const EntryGenerator = "@modern-js/entry-generator";
@@ -5,7 +5,6 @@ export * from './common';
5
5
  export * from './newAction';
6
6
  export * from './mwa';
7
7
  export * from './module';
8
- export * from './monorepo';
9
8
  export * from './expand';
10
9
  export * from './base';
11
10
  export declare const SolutionDefaultConfig: Record<Solution, Record<string, string>>;
@@ -3,7 +3,6 @@ export declare const EN_LOCALE: {
3
3
  self: string;
4
4
  mwa: string;
5
5
  module: string;
6
- monorepo: string;
7
6
  custom: string;
8
7
  default: string;
9
8
  };
@@ -14,7 +13,6 @@ export declare const EN_LOCALE: {
14
13
  self: string;
15
14
  mwa: string;
16
15
  module: string;
17
- monorepo: string;
18
16
  };
19
17
  action: {
20
18
  self: string;
@@ -25,8 +23,6 @@ export declare const EN_LOCALE: {
25
23
  bff: string;
26
24
  micro_frontend: string;
27
25
  i18n: string;
28
- test: string;
29
- e2e_test: string;
30
26
  storybookV7: string;
31
27
  runtime_api: string;
32
28
  ssg: string;
@@ -5,7 +5,6 @@ declare const localeKeys: {
5
5
  self: string;
6
6
  mwa: string;
7
7
  module: string;
8
- monorepo: string;
9
8
  custom: string;
10
9
  default: string;
11
10
  };
@@ -26,8 +25,6 @@ declare const localeKeys: {
26
25
  bff: string;
27
26
  micro_frontend: string;
28
27
  i18n: string;
29
- test: string;
30
- e2e_test: string;
31
28
  storybookV7: string;
32
29
  runtime_api: string;
33
30
  ssg: string;
@@ -97,7 +94,6 @@ declare const localeKeys: {
97
94
  self: string;
98
95
  mwa: string;
99
96
  module: string;
100
- monorepo: string;
101
97
  custom: string;
102
98
  default: string;
103
99
  };
@@ -108,7 +104,6 @@ declare const localeKeys: {
108
104
  self: string;
109
105
  mwa: string;
110
106
  module: string;
111
- monorepo: string;
112
107
  };
113
108
  action: {
114
109
  self: string;
@@ -119,8 +114,6 @@ declare const localeKeys: {
119
114
  bff: string;
120
115
  micro_frontend: string;
121
116
  i18n: string;
122
- test: string;
123
- e2e_test: string;
124
117
  storybookV7: string;
125
118
  runtime_api: string;
126
119
  ssg: string;
@@ -3,7 +3,6 @@ export declare const ZH_LOCALE: {
3
3
  self: string;
4
4
  mwa: string;
5
5
  module: string;
6
- monorepo: string;
7
6
  custom: string;
8
7
  default: string;
9
8
  };
@@ -24,8 +23,6 @@ export declare const ZH_LOCALE: {
24
23
  bff: string;
25
24
  micro_frontend: string;
26
25
  i18n: string;
27
- test: string;
28
- e2e_test: string;
29
26
  storybookV7: string;
30
27
  runtime_api: string;
31
28
  ssg: string;
@@ -12,8 +12,6 @@ export declare enum ActionFunction {
12
12
  BFF = "bff",
13
13
  MicroFrontend = "micro_frontend",
14
14
  I18n = "i18n",
15
- Test = "test",
16
- E2ETest = "e2e_test",
17
15
  StorybookV7 = "storybookV7",
18
16
  RuntimeApi = "runtimeApi",
19
17
  SSG = "ssg",
@@ -1,4 +1,3 @@
1
1
  export * from './common';
2
2
  export * from './mwa';
3
3
  export * from './module';
4
- export * from './monorepo';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.3.25",
18
+ "version": "3.4.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@modern-js/codesmith-formily": "2.3.5",
35
35
  "@swc/helpers": "0.5.3",
36
- "@modern-js/plugin-i18n": "2.52.0"
36
+ "@modern-js/plugin-i18n": "2.54.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@modern-js/codesmith": "2.3.5",
@@ -42,9 +42,9 @@
42
42
  "@types/node": "^14",
43
43
  "jest": "^29",
44
44
  "typescript": "^5",
45
- "@modern-js/utils": "2.52.0",
46
- "@scripts/build": "2.52.0",
47
- "@scripts/jest-config": "2.52.0"
45
+ "@modern-js/utils": "2.54.0",
46
+ "@scripts/build": "2.54.0",
47
+ "@scripts/jest-config": "2.54.0"
48
48
  },
49
49
  "sideEffects": false,
50
50
  "publishConfig": {
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var monorepo_exports = {};
20
- __export(monorepo_exports, {
21
- MonorepoNewActionConfig: () => MonorepoNewActionConfig,
22
- getMonorepoNewActionSchema: () => getMonorepoNewActionSchema
23
- });
24
- module.exports = __toCommonJS(monorepo_exports);
25
- var import_common = require("../../common");
26
- const getMonorepoNewActionSchema = (extra = {}) => {
27
- return {
28
- type: "object",
29
- properties: {
30
- solution: (0, import_common.getSolutionSchema)(extra)
31
- }
32
- };
33
- };
34
- const MonorepoNewActionConfig = {
35
- [import_common.SubSolution.MWA]: {
36
- isMonorepoSubProject: true
37
- },
38
- [import_common.SubSolution.Module]: {
39
- isMonorepoSubProject: true
40
- }
41
- };
42
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- MonorepoNewActionConfig,
45
- getMonorepoNewActionSchema
46
- });
@@ -1,21 +0,0 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { getSolutionSchema, SubSolution } from "../../common";
3
- var getMonorepoNewActionSchema = function() {
4
- var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5
- return {
6
- type: "object",
7
- properties: {
8
- solution: getSolutionSchema(extra)
9
- }
10
- };
11
- };
12
- var _obj;
13
- var MonorepoNewActionConfig = (_obj = {}, _define_property(_obj, SubSolution.MWA, {
14
- isMonorepoSubProject: true
15
- }), _define_property(_obj, SubSolution.Module, {
16
- isMonorepoSubProject: true
17
- }), _obj);
18
- export {
19
- MonorepoNewActionConfig,
20
- getMonorepoNewActionSchema
21
- };
@@ -1,21 +0,0 @@
1
- import { getSolutionSchema, SubSolution } from "../../common";
2
- const getMonorepoNewActionSchema = (extra = {}) => {
3
- return {
4
- type: "object",
5
- properties: {
6
- solution: getSolutionSchema(extra)
7
- }
8
- };
9
- };
10
- const MonorepoNewActionConfig = {
11
- [SubSolution.MWA]: {
12
- isMonorepoSubProject: true
13
- },
14
- [SubSolution.Module]: {
15
- isMonorepoSubProject: true
16
- }
17
- };
18
- export {
19
- MonorepoNewActionConfig,
20
- getMonorepoNewActionSchema
21
- };
@@ -1,4 +0,0 @@
1
- import { Schema } from '@modern-js/codesmith-formily';
2
- import { SubSolution } from '../../common';
3
- export declare const getMonorepoNewActionSchema: (extra?: Record<string, any>) => Schema;
4
- export declare const MonorepoNewActionConfig: Record<SubSolution, Record<string, unknown>>;