@modern-js/generator-common 3.7.1 → 3.7.3

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 (42) hide show
  1. package/dist/cjs/common/solution.js +2 -77
  2. package/dist/cjs/index.js +0 -25
  3. package/dist/cjs/locale/en.js +0 -15
  4. package/dist/cjs/locale/zh.js +0 -15
  5. package/dist/cjs/newAction/index.js +1 -3
  6. package/dist/esm/common/solution.js +2 -78
  7. package/dist/esm/index.js +0 -14
  8. package/dist/esm/locale/en.js +0 -15
  9. package/dist/esm/locale/zh.js +0 -15
  10. package/dist/esm/newAction/index.js +0 -1
  11. package/dist/esm-node/common/solution.js +1 -71
  12. package/dist/esm-node/index.js +0 -18
  13. package/dist/esm-node/locale/en.js +0 -15
  14. package/dist/esm-node/locale/zh.js +0 -15
  15. package/dist/esm-node/newAction/index.js +0 -1
  16. package/dist/types/common/solution.d.ts +0 -6
  17. package/dist/types/index.d.ts +0 -5
  18. package/dist/types/locale/en.d.ts +0 -15
  19. package/dist/types/locale/index.d.ts +0 -30
  20. package/dist/types/locale/zh.d.ts +0 -15
  21. package/dist/types/newAction/index.d.ts +0 -1
  22. package/package.json +4 -4
  23. package/dist/cjs/module/index.js +0 -22
  24. package/dist/cjs/module/project.js +0 -50
  25. package/dist/cjs/monorepo/index.js +0 -22
  26. package/dist/cjs/monorepo/project.js +0 -41
  27. package/dist/cjs/newAction/module/index.js +0 -133
  28. package/dist/esm/module/index.js +0 -1
  29. package/dist/esm/module/project.js +0 -25
  30. package/dist/esm/monorepo/index.js +0 -1
  31. package/dist/esm/monorepo/project.js +0 -17
  32. package/dist/esm/newAction/module/index.js +0 -79
  33. package/dist/esm-node/module/index.js +0 -1
  34. package/dist/esm-node/module/project.js +0 -24
  35. package/dist/esm-node/monorepo/index.js +0 -1
  36. package/dist/esm-node/monorepo/project.js +0 -16
  37. package/dist/esm-node/newAction/module/index.js +0 -99
  38. package/dist/types/module/index.d.ts +0 -1
  39. package/dist/types/module/project.d.ts +0 -8
  40. package/dist/types/monorepo/index.d.ts +0 -1
  41. package/dist/types/monorepo/project.d.ts +0 -6
  42. package/dist/types/newAction/module/index.d.ts +0 -13
@@ -19,107 +19,32 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var solution_exports = {};
20
20
  __export(solution_exports, {
21
21
  BaseGenerator: () => BaseGenerator,
22
- ChangesetGenerator: () => ChangesetGenerator,
23
22
  DependenceGenerator: () => DependenceGenerator,
24
23
  EntryGenerator: () => EntryGenerator,
25
24
  PackagesGenerator: () => PackagesGenerator,
26
25
  Solution: () => Solution,
27
- SolutionGenerator: () => SolutionGenerator,
28
- SolutionText: () => SolutionText,
29
- SolutionToolsMap: () => SolutionToolsMap,
30
- getScenesSchema: () => getScenesSchema,
31
- getSolutionSchema: () => getSolutionSchema
26
+ SolutionToolsMap: () => SolutionToolsMap
32
27
  });
33
28
  module.exports = __toCommonJS(solution_exports);
34
- var import_locale = require("../locale");
35
29
  var Solution;
36
30
  (function(Solution2) {
37
31
  Solution2["MWA"] = "mwa";
38
32
  Solution2["Module"] = "module";
39
33
  })(Solution || (Solution = {}));
40
- const SolutionText = {
41
- ["mwa"]: () => import_locale.i18n.t(import_locale.localeKeys.solution.mwa),
42
- ["module"]: () => import_locale.i18n.t(import_locale.localeKeys.solution.module)
43
- };
44
34
  const SolutionToolsMap = {
45
35
  ["mwa"]: "@modern-js/app-tools",
46
36
  ["module"]: "@modern-js/module-tools"
47
37
  };
48
- const getSolutionSchema = (extra = {}) => {
49
- return {
50
- type: "object",
51
- properties: {
52
- solution: {
53
- type: "string",
54
- title: extra.isMonorepo ? import_locale.i18n.t(import_locale.localeKeys.sub_solution.self) : import_locale.i18n.t(import_locale.localeKeys.solution.self),
55
- enum: (() => {
56
- var _extra_customPlugin_custom, _extra_customPlugin;
57
- const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).map((solution) => ({
58
- value: solution,
59
- label: SolutionText[solution]()
60
- }));
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) {
62
- return [
63
- ...items,
64
- {
65
- value: "custom",
66
- label: import_locale.i18n.t(import_locale.localeKeys.solution.custom)
67
- }
68
- ];
69
- }
70
- return items;
71
- })()
72
- }
73
- }
74
- };
75
- };
76
- const getScenesSchema = (extra = {}) => {
77
- var _extra_customPlugin;
78
- const hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
79
- return {
80
- type: "object",
81
- properties: hasPlugin ? {
82
- scenes: {
83
- type: "string",
84
- title: import_locale.i18n.t(import_locale.localeKeys.scenes.self),
85
- enum: (() => {
86
- const solution = extra === null || extra === void 0 ? void 0 : extra.solution;
87
- const items = ((extra === null || extra === void 0 ? void 0 : extra.customPlugin) ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map((plugin) => ({
88
- value: plugin.key,
89
- label: extra.locale === "zh" ? plugin.name_zh || plugin.name : plugin.name
90
- }));
91
- if (solution && solution !== "custom") {
92
- items.unshift({
93
- value: solution,
94
- label: `${SolutionText[solution]()}(${import_locale.i18n.t(import_locale.localeKeys.solution.default)})`
95
- });
96
- }
97
- return items;
98
- })()
99
- }
100
- } : {}
101
- };
102
- };
103
38
  const BaseGenerator = "@modern-js/base-generator";
104
39
  const PackagesGenerator = "@modern-js/packages-generator";
105
- const SolutionGenerator = {
106
- ["mwa"]: "@modern-js/mwa-generator",
107
- ["module"]: "@modern-js/module-generator"
108
- };
109
- const ChangesetGenerator = "@modern-js/changeset-generator";
110
40
  const DependenceGenerator = "@modern-js/dependence-generator";
111
41
  const EntryGenerator = "@modern-js/entry-generator";
112
42
  // Annotate the CommonJS export names for ESM import in node:
113
43
  0 && (module.exports = {
114
44
  BaseGenerator,
115
- ChangesetGenerator,
116
45
  DependenceGenerator,
117
46
  EntryGenerator,
118
47
  PackagesGenerator,
119
48
  Solution,
120
- SolutionGenerator,
121
- SolutionText,
122
- SolutionToolsMap,
123
- getScenesSchema,
124
- getSolutionSchema
49
+ SolutionToolsMap
125
50
  });
package/dist/cjs/index.js CHANGED
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
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
6
  var __copyProps = (to, from, except, desc) => {
11
7
  if (from && typeof from === "object" || typeof from === "function") {
12
8
  for (let key of __getOwnPropNames(from))
@@ -18,40 +14,19 @@ var __copyProps = (to, from, except, desc) => {
18
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
16
  var src_exports = {};
21
- __export(src_exports, {
22
- SolutionDefaultConfig: () => SolutionDefaultConfig,
23
- SolutionSchemas: () => SolutionSchemas
24
- });
25
17
  module.exports = __toCommonJS(src_exports);
26
- var import_base = require("./base");
27
- var import_common = require("./common");
28
- var import_module = require("./module");
29
- var import_mwa = require("./mwa");
30
18
  __reExport(src_exports, require("./locale"), module.exports);
31
19
  __reExport(src_exports, require("./common"), module.exports);
32
20
  __reExport(src_exports, require("./newAction"), module.exports);
33
21
  __reExport(src_exports, require("./mwa"), module.exports);
34
- __reExport(src_exports, require("./module"), module.exports);
35
22
  __reExport(src_exports, require("./expand"), module.exports);
36
23
  __reExport(src_exports, require("./base"), module.exports);
37
- const SolutionDefaultConfig = {
38
- [import_common.Solution.MWA]: import_mwa.MWADefaultConfig,
39
- [import_common.Solution.Module]: import_module.ModuleDefaultConfig
40
- };
41
- const SolutionSchemas = {
42
- [import_common.Solution.MWA]: import_mwa.getMWASchema,
43
- [import_common.Solution.Module]: import_module.getModuleSchema,
44
- custom: import_base.getBaseSchema
45
- };
46
24
  // Annotate the CommonJS export names for ESM import in node:
47
25
  0 && (module.exports = {
48
- SolutionDefaultConfig,
49
- SolutionSchemas,
50
26
  ...require("./locale"),
51
27
  ...require("./common"),
52
28
  ...require("./newAction"),
53
29
  ...require("./mwa"),
54
- ...require("./module"),
55
30
  ...require("./expand"),
56
31
  ...require("./base")
57
32
  });
@@ -22,21 +22,6 @@ __export(en_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(en_exports);
24
24
  const EN_LOCALE = {
25
- solution: {
26
- self: "Please select the type of project you want to create:",
27
- mwa: "Web App",
28
- module: "Npm Module",
29
- custom: "Custom Solution",
30
- default: "Default"
31
- },
32
- scenes: {
33
- self: "Please select the project scenario:"
34
- },
35
- sub_solution: {
36
- self: "Please select the type of project you want to create:",
37
- mwa: "Web App",
38
- module: "Npm Module"
39
- },
40
25
  action: {
41
26
  self: "Please select the operation you want:",
42
27
  function: {
@@ -22,21 +22,6 @@ __export(zh_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(zh_exports);
24
24
  const ZH_LOCALE = {
25
- solution: {
26
- self: "请选择你想创建的工程类型",
27
- mwa: "Web 应用",
28
- module: "Npm 模块",
29
- custom: "自定义",
30
- default: "默认"
31
- },
32
- scenes: {
33
- self: "请选择项目场景"
34
- },
35
- sub_solution: {
36
- self: "请选择你想创建的工程类型",
37
- mwa: "Web 应用",
38
- module: "Npm 模块"
39
- },
40
25
  action: {
41
26
  self: "请选择你想要的操作",
42
27
  function: {
@@ -17,10 +17,8 @@ var newAction_exports = {};
17
17
  module.exports = __toCommonJS(newAction_exports);
18
18
  __reExport(newAction_exports, require("./common"), module.exports);
19
19
  __reExport(newAction_exports, require("./mwa"), module.exports);
20
- __reExport(newAction_exports, require("./module"), module.exports);
21
20
  // Annotate the CommonJS export names for ESM import in node:
22
21
  0 && (module.exports = {
23
22
  ...require("./common"),
24
- ...require("./mwa"),
25
- ...require("./module")
23
+ ...require("./mwa")
26
24
  });
@@ -1,96 +1,20 @@
1
1
  import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
3
- import { i18n, localeKeys } from "../locale";
4
2
  var Solution;
5
3
  (function(Solution2) {
6
4
  Solution2["MWA"] = "mwa";
7
5
  Solution2["Module"] = "module";
8
6
  })(Solution || (Solution = {}));
9
7
  var _obj;
10
- var SolutionText = (_obj = {}, _define_property(_obj, "mwa", function() {
11
- return i18n.t(localeKeys.solution.mwa);
12
- }), _define_property(_obj, "module", function() {
13
- return i18n.t(localeKeys.solution.module);
14
- }), _obj);
15
- var _obj1;
16
- var SolutionToolsMap = (_obj1 = {}, _define_property(_obj1, "mwa", "@modern-js/app-tools"), _define_property(_obj1, "module", "@modern-js/module-tools"), _obj1);
17
- var getSolutionSchema = function() {
18
- var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
19
- return {
20
- type: "object",
21
- properties: {
22
- solution: {
23
- type: "string",
24
- title: extra.isMonorepo ? i18n.t(localeKeys.sub_solution.self) : i18n.t(localeKeys.solution.self),
25
- enum: function() {
26
- var _extra_customPlugin_custom, _extra_customPlugin;
27
- var items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).map(function(solution) {
28
- return {
29
- value: solution,
30
- label: SolutionText[solution]()
31
- };
32
- });
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) {
34
- return _to_consumable_array(items).concat([
35
- {
36
- value: "custom",
37
- label: i18n.t(localeKeys.solution.custom)
38
- }
39
- ]);
40
- }
41
- return items;
42
- }()
43
- }
44
- }
45
- };
46
- };
47
- var getScenesSchema = function() {
48
- var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
49
- var _extra_customPlugin;
50
- var hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
51
- return {
52
- type: "object",
53
- properties: hasPlugin ? {
54
- scenes: {
55
- type: "string",
56
- title: i18n.t(localeKeys.scenes.self),
57
- enum: function() {
58
- var solution = extra === null || extra === void 0 ? void 0 : extra.solution;
59
- var items = ((extra === null || extra === void 0 ? void 0 : extra.customPlugin) ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
60
- return {
61
- value: plugin.key,
62
- label: extra.locale === "zh" ? plugin.name_zh || plugin.name : plugin.name
63
- };
64
- });
65
- if (solution && solution !== "custom") {
66
- items.unshift({
67
- value: solution,
68
- label: "".concat(SolutionText[solution](), "(").concat(i18n.t(localeKeys.solution.default), ")")
69
- });
70
- }
71
- return items;
72
- }()
73
- }
74
- } : {}
75
- };
76
- };
8
+ var SolutionToolsMap = (_obj = {}, _define_property(_obj, "mwa", "@modern-js/app-tools"), _define_property(_obj, "module", "@modern-js/module-tools"), _obj);
77
9
  var BaseGenerator = "@modern-js/base-generator";
78
10
  var PackagesGenerator = "@modern-js/packages-generator";
79
- var _obj2;
80
- var SolutionGenerator = (_obj2 = {}, _define_property(_obj2, "mwa", "@modern-js/mwa-generator"), _define_property(_obj2, "module", "@modern-js/module-generator"), _obj2);
81
- var ChangesetGenerator = "@modern-js/changeset-generator";
82
11
  var DependenceGenerator = "@modern-js/dependence-generator";
83
12
  var EntryGenerator = "@modern-js/entry-generator";
84
13
  export {
85
14
  BaseGenerator,
86
- ChangesetGenerator,
87
15
  DependenceGenerator,
88
16
  EntryGenerator,
89
17
  PackagesGenerator,
90
18
  Solution,
91
- SolutionGenerator,
92
- SolutionText,
93
- SolutionToolsMap,
94
- getScenesSchema,
95
- getSolutionSchema
19
+ SolutionToolsMap
96
20
  };
package/dist/esm/index.js CHANGED
@@ -1,20 +1,6 @@
1
- import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { getBaseSchema } from "./base";
3
- import { Solution } from "./common";
4
- import { ModuleDefaultConfig, getModuleSchema } from "./module";
5
- import { MWADefaultConfig, getMWASchema } from "./mwa";
6
1
  export * from "./locale";
7
2
  export * from "./common";
8
3
  export * from "./newAction";
9
4
  export * from "./mwa";
10
- export * from "./module";
11
5
  export * from "./expand";
12
6
  export * from "./base";
13
- var _obj;
14
- var SolutionDefaultConfig = (_obj = {}, _define_property(_obj, Solution.MWA, MWADefaultConfig), _define_property(_obj, Solution.Module, ModuleDefaultConfig), _obj);
15
- var _obj1;
16
- var SolutionSchemas = (_obj1 = {}, _define_property(_obj1, Solution.MWA, getMWASchema), _define_property(_obj1, Solution.Module, getModuleSchema), _define_property(_obj1, "custom", getBaseSchema), _obj1);
17
- export {
18
- SolutionDefaultConfig,
19
- SolutionSchemas
20
- };
@@ -1,19 +1,4 @@
1
1
  var EN_LOCALE = {
2
- solution: {
3
- self: "Please select the type of project you want to create:",
4
- mwa: "Web App",
5
- module: "Npm Module",
6
- custom: "Custom Solution",
7
- default: "Default"
8
- },
9
- scenes: {
10
- self: "Please select the project scenario:"
11
- },
12
- sub_solution: {
13
- self: "Please select the type of project you want to create:",
14
- mwa: "Web App",
15
- module: "Npm Module"
16
- },
17
2
  action: {
18
3
  self: "Please select the operation you want:",
19
4
  function: {
@@ -1,19 +1,4 @@
1
1
  var ZH_LOCALE = {
2
- solution: {
3
- self: "请选择你想创建的工程类型",
4
- mwa: "Web 应用",
5
- module: "Npm 模块",
6
- custom: "自定义",
7
- default: "默认"
8
- },
9
- scenes: {
10
- self: "请选择项目场景"
11
- },
12
- sub_solution: {
13
- self: "请选择你想创建的工程类型",
14
- mwa: "Web 应用",
15
- module: "Npm 模块"
16
- },
17
2
  action: {
18
3
  self: "请选择你想要的操作",
19
4
  function: {
@@ -1,3 +1,2 @@
1
1
  export * from "./common";
2
2
  export * from "./mwa";
3
- export * from "./module";
@@ -1,91 +1,21 @@
1
- import { i18n, localeKeys } from "../locale";
2
1
  var Solution;
3
2
  (function(Solution2) {
4
3
  Solution2["MWA"] = "mwa";
5
4
  Solution2["Module"] = "module";
6
5
  })(Solution || (Solution = {}));
7
- const SolutionText = {
8
- ["mwa"]: () => i18n.t(localeKeys.solution.mwa),
9
- ["module"]: () => i18n.t(localeKeys.solution.module)
10
- };
11
6
  const SolutionToolsMap = {
12
7
  ["mwa"]: "@modern-js/app-tools",
13
8
  ["module"]: "@modern-js/module-tools"
14
9
  };
15
- const getSolutionSchema = (extra = {}) => {
16
- return {
17
- type: "object",
18
- properties: {
19
- solution: {
20
- type: "string",
21
- title: extra.isMonorepo ? i18n.t(localeKeys.sub_solution.self) : i18n.t(localeKeys.solution.self),
22
- enum: (() => {
23
- var _extra_customPlugin_custom, _extra_customPlugin;
24
- const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values(Solution)).map((solution) => ({
25
- value: solution,
26
- label: SolutionText[solution]()
27
- }));
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) {
29
- return [
30
- ...items,
31
- {
32
- value: "custom",
33
- label: i18n.t(localeKeys.solution.custom)
34
- }
35
- ];
36
- }
37
- return items;
38
- })()
39
- }
40
- }
41
- };
42
- };
43
- const getScenesSchema = (extra = {}) => {
44
- var _extra_customPlugin;
45
- const hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
46
- return {
47
- type: "object",
48
- properties: hasPlugin ? {
49
- scenes: {
50
- type: "string",
51
- title: i18n.t(localeKeys.scenes.self),
52
- enum: (() => {
53
- const solution = extra === null || extra === void 0 ? void 0 : extra.solution;
54
- const items = ((extra === null || extra === void 0 ? void 0 : extra.customPlugin) ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map((plugin) => ({
55
- value: plugin.key,
56
- label: extra.locale === "zh" ? plugin.name_zh || plugin.name : plugin.name
57
- }));
58
- if (solution && solution !== "custom") {
59
- items.unshift({
60
- value: solution,
61
- label: `${SolutionText[solution]()}(${i18n.t(localeKeys.solution.default)})`
62
- });
63
- }
64
- return items;
65
- })()
66
- }
67
- } : {}
68
- };
69
- };
70
10
  const BaseGenerator = "@modern-js/base-generator";
71
11
  const PackagesGenerator = "@modern-js/packages-generator";
72
- const SolutionGenerator = {
73
- ["mwa"]: "@modern-js/mwa-generator",
74
- ["module"]: "@modern-js/module-generator"
75
- };
76
- const ChangesetGenerator = "@modern-js/changeset-generator";
77
12
  const DependenceGenerator = "@modern-js/dependence-generator";
78
13
  const EntryGenerator = "@modern-js/entry-generator";
79
14
  export {
80
15
  BaseGenerator,
81
- ChangesetGenerator,
82
16
  DependenceGenerator,
83
17
  EntryGenerator,
84
18
  PackagesGenerator,
85
19
  Solution,
86
- SolutionGenerator,
87
- SolutionText,
88
- SolutionToolsMap,
89
- getScenesSchema,
90
- getSolutionSchema
20
+ SolutionToolsMap
91
21
  };
@@ -1,24 +1,6 @@
1
- import { getBaseSchema } from "./base";
2
- import { Solution } from "./common";
3
- import { ModuleDefaultConfig, getModuleSchema } from "./module";
4
- import { MWADefaultConfig, getMWASchema } from "./mwa";
5
1
  export * from "./locale";
6
2
  export * from "./common";
7
3
  export * from "./newAction";
8
4
  export * from "./mwa";
9
- export * from "./module";
10
5
  export * from "./expand";
11
6
  export * from "./base";
12
- const SolutionDefaultConfig = {
13
- [Solution.MWA]: MWADefaultConfig,
14
- [Solution.Module]: ModuleDefaultConfig
15
- };
16
- const SolutionSchemas = {
17
- [Solution.MWA]: getMWASchema,
18
- [Solution.Module]: getModuleSchema,
19
- custom: getBaseSchema
20
- };
21
- export {
22
- SolutionDefaultConfig,
23
- SolutionSchemas
24
- };
@@ -1,19 +1,4 @@
1
1
  const EN_LOCALE = {
2
- solution: {
3
- self: "Please select the type of project you want to create:",
4
- mwa: "Web App",
5
- module: "Npm Module",
6
- custom: "Custom Solution",
7
- default: "Default"
8
- },
9
- scenes: {
10
- self: "Please select the project scenario:"
11
- },
12
- sub_solution: {
13
- self: "Please select the type of project you want to create:",
14
- mwa: "Web App",
15
- module: "Npm Module"
16
- },
17
2
  action: {
18
3
  self: "Please select the operation you want:",
19
4
  function: {
@@ -1,19 +1,4 @@
1
1
  const ZH_LOCALE = {
2
- solution: {
3
- self: "请选择你想创建的工程类型",
4
- mwa: "Web 应用",
5
- module: "Npm 模块",
6
- custom: "自定义",
7
- default: "默认"
8
- },
9
- scenes: {
10
- self: "请选择项目场景"
11
- },
12
- sub_solution: {
13
- self: "请选择你想创建的工程类型",
14
- mwa: "Web 应用",
15
- module: "Npm 模块"
16
- },
17
2
  action: {
18
3
  self: "请选择你想要的操作",
19
4
  function: {
@@ -1,3 +1,2 @@
1
1
  export * from "./common";
2
2
  export * from "./mwa";
3
- export * from "./module";
@@ -1,15 +1,9 @@
1
- import type { Schema } from '@modern-js/codesmith-formily';
2
1
  export declare enum Solution {
3
2
  MWA = "mwa",
4
3
  Module = "module"
5
4
  }
6
- export declare const SolutionText: Record<Solution, () => string>;
7
5
  export declare const SolutionToolsMap: Record<Solution, string>;
8
- export declare const getSolutionSchema: (extra?: Record<string, any>) => Schema;
9
- export declare const getScenesSchema: (extra?: Record<string, any>) => Schema;
10
6
  export declare const BaseGenerator = "@modern-js/base-generator";
11
7
  export declare const PackagesGenerator = "@modern-js/packages-generator";
12
- export declare const SolutionGenerator: Record<Solution, string>;
13
- export declare const ChangesetGenerator = "@modern-js/changeset-generator";
14
8
  export declare const DependenceGenerator = "@modern-js/dependence-generator";
15
9
  export declare const EntryGenerator = "@modern-js/entry-generator";
@@ -1,11 +1,6 @@
1
- import type { Schema } from '@modern-js/codesmith-formily';
2
- import { Solution } from './common';
3
1
  export * from './locale';
4
2
  export * from './common';
5
3
  export * from './newAction';
6
4
  export * from './mwa';
7
- export * from './module';
8
5
  export * from './expand';
9
6
  export * from './base';
10
- export declare const SolutionDefaultConfig: Record<Solution, Record<string, string>>;
11
- export declare const SolutionSchemas: Record<Solution | 'custom', (extra?: Record<string, string>) => Schema>;
@@ -1,19 +1,4 @@
1
1
  export declare const EN_LOCALE: {
2
- solution: {
3
- self: string;
4
- mwa: string;
5
- module: string;
6
- custom: string;
7
- default: string;
8
- };
9
- scenes: {
10
- self: string;
11
- };
12
- sub_solution: {
13
- self: string;
14
- mwa: string;
15
- module: string;
16
- };
17
2
  action: {
18
3
  self: string;
19
4
  function: {
@@ -1,21 +1,6 @@
1
1
  import { I18n } from '@modern-js/plugin-i18n';
2
2
  declare const i18n: I18n;
3
3
  declare const localeKeys: {
4
- solution: {
5
- self: string;
6
- mwa: string;
7
- module: string;
8
- custom: string;
9
- default: string;
10
- };
11
- scenes: {
12
- self: string;
13
- };
14
- sub_solution: {
15
- self: string;
16
- mwa: string;
17
- module: string;
18
- };
19
4
  action: {
20
5
  self: string;
21
6
  function: {
@@ -85,21 +70,6 @@ declare const localeKeys: {
85
70
  };
86
71
  };
87
72
  } | {
88
- solution: {
89
- self: string;
90
- mwa: string;
91
- module: string;
92
- custom: string;
93
- default: string;
94
- };
95
- scenes: {
96
- self: string;
97
- };
98
- sub_solution: {
99
- self: string;
100
- mwa: string;
101
- module: string;
102
- };
103
73
  action: {
104
74
  self: string;
105
75
  function: {
@@ -1,19 +1,4 @@
1
1
  export declare const ZH_LOCALE: {
2
- solution: {
3
- self: string;
4
- mwa: string;
5
- module: string;
6
- custom: string;
7
- default: string;
8
- };
9
- scenes: {
10
- self: string;
11
- };
12
- sub_solution: {
13
- self: string;
14
- mwa: string;
15
- module: string;
16
- };
17
2
  action: {
18
3
  self: string;
19
4
  function: {
@@ -1,3 +1,2 @@
1
1
  export * from './common';
2
2
  export * from './mwa';
3
- export * from './module';