@modern-js/generator-common 3.3.7 → 3.3.9
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/cjs/common/solution.js +0 -3
- package/dist/cjs/locale/en.js +0 -1
- package/dist/cjs/locale/zh.js +0 -1
- package/dist/cjs/newAction/common/index.js +0 -2
- package/dist/cjs/newAction/mwa/index.js +1 -3
- package/dist/esm/common/solution.js +0 -2
- package/dist/esm/locale/en.js +0 -1
- package/dist/esm/locale/zh.js +0 -1
- package/dist/esm/newAction/common/index.js +0 -3
- package/dist/esm/newAction/mwa/index.js +1 -2
- package/dist/esm-node/common/solution.js +0 -2
- package/dist/esm-node/locale/en.js +0 -1
- package/dist/esm-node/locale/zh.js +0 -1
- package/dist/esm-node/newAction/common/index.js +0 -2
- package/dist/esm-node/newAction/mwa/index.js +1 -3
- package/dist/types/common/solution.d.ts +0 -1
- package/dist/types/locale/en.d.ts +0 -1
- package/dist/types/locale/index.d.ts +0 -2
- package/dist/types/locale/zh.d.ts +0 -1
- package/dist/types/newAction/common/index.d.ts +0 -1
- package/package.json +8 -8
|
@@ -23,7 +23,6 @@ __export(solution_exports, {
|
|
|
23
23
|
DependenceGenerator: () => DependenceGenerator,
|
|
24
24
|
EntryGenerator: () => EntryGenerator,
|
|
25
25
|
PackagesGenerator: () => PackagesGenerator,
|
|
26
|
-
RspackGenerator: () => RspackGenerator,
|
|
27
26
|
Solution: () => Solution,
|
|
28
27
|
SolutionGenerator: () => SolutionGenerator,
|
|
29
28
|
SolutionText: () => SolutionText,
|
|
@@ -117,7 +116,6 @@ const getScenesSchema = (extra = {}) => {
|
|
|
117
116
|
};
|
|
118
117
|
const BaseGenerator = "@modern-js/base-generator";
|
|
119
118
|
const PackagesGenerator = "@modern-js/packages-generator";
|
|
120
|
-
const RspackGenerator = "@modern-js/rspack-generator";
|
|
121
119
|
const SolutionGenerator = {
|
|
122
120
|
["mwa"]: "@modern-js/mwa-generator",
|
|
123
121
|
["module"]: "@modern-js/module-generator",
|
|
@@ -137,7 +135,6 @@ const EntryGenerator = "@modern-js/entry-generator";
|
|
|
137
135
|
DependenceGenerator,
|
|
138
136
|
EntryGenerator,
|
|
139
137
|
PackagesGenerator,
|
|
140
|
-
RspackGenerator,
|
|
141
138
|
Solution,
|
|
142
139
|
SolutionGenerator,
|
|
143
140
|
SolutionText,
|
package/dist/cjs/locale/en.js
CHANGED
package/dist/cjs/locale/zh.js
CHANGED
|
@@ -57,7 +57,6 @@ var ActionFunction;
|
|
|
57
57
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
58
58
|
ActionFunction2["Proxy"] = "proxy";
|
|
59
59
|
ActionFunction2["SWC"] = "swc";
|
|
60
|
-
ActionFunction2["Rspack"] = "rspack";
|
|
61
60
|
ActionFunction2["ModuleDoc"] = "module_doc";
|
|
62
61
|
})(ActionFunction || (ActionFunction = {}));
|
|
63
62
|
var ActionRefactor;
|
|
@@ -92,7 +91,6 @@ const ActionFunctionText = {
|
|
|
92
91
|
["polyfill"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.polyfill),
|
|
93
92
|
["proxy"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.proxy),
|
|
94
93
|
["swc"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.swc),
|
|
95
|
-
["rspack"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.rspack),
|
|
96
94
|
["module_doc"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.module_doc)
|
|
97
95
|
};
|
|
98
96
|
const ActionRefactorText = {
|
|
@@ -45,7 +45,6 @@ const MWAActionTypes = [
|
|
|
45
45
|
import_common2.ActionType.Refactor
|
|
46
46
|
];
|
|
47
47
|
const MWAActionFunctions = [
|
|
48
|
-
import_common2.ActionFunction.Rspack,
|
|
49
48
|
import_common2.ActionFunction.TailwindCSS,
|
|
50
49
|
import_common2.ActionFunction.BFF,
|
|
51
50
|
import_common2.ActionFunction.SSG,
|
|
@@ -190,8 +189,7 @@ const MWANewActionGenerators = {
|
|
|
190
189
|
[import_common2.ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
191
190
|
[import_common2.ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
192
191
|
[import_common2.ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
193
|
-
[import_common2.ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
194
|
-
[import_common2.ActionFunction.Rspack]: "@modern-js/rspack-generator"
|
|
192
|
+
[import_common2.ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
195
193
|
},
|
|
196
194
|
[import_common2.ActionType.Refactor]: {
|
|
197
195
|
[import_common2.ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
|
|
@@ -91,7 +91,6 @@ var getScenesSchema = function() {
|
|
|
91
91
|
};
|
|
92
92
|
var BaseGenerator = "@modern-js/base-generator";
|
|
93
93
|
var PackagesGenerator = "@modern-js/packages-generator";
|
|
94
|
-
var RspackGenerator = "@modern-js/rspack-generator";
|
|
95
94
|
var _obj3;
|
|
96
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);
|
|
97
96
|
var _obj4;
|
|
@@ -105,7 +104,6 @@ export {
|
|
|
105
104
|
DependenceGenerator,
|
|
106
105
|
EntryGenerator,
|
|
107
106
|
PackagesGenerator,
|
|
108
|
-
RspackGenerator,
|
|
109
107
|
Solution,
|
|
110
108
|
SolutionGenerator,
|
|
111
109
|
SolutionText,
|
package/dist/esm/locale/en.js
CHANGED
package/dist/esm/locale/zh.js
CHANGED
|
@@ -26,7 +26,6 @@ var ActionFunction;
|
|
|
26
26
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
27
27
|
ActionFunction2["Proxy"] = "proxy";
|
|
28
28
|
ActionFunction2["SWC"] = "swc";
|
|
29
|
-
ActionFunction2["Rspack"] = "rspack";
|
|
30
29
|
ActionFunction2["ModuleDoc"] = "module_doc";
|
|
31
30
|
})(ActionFunction || (ActionFunction = {}));
|
|
32
31
|
var ActionRefactor;
|
|
@@ -82,8 +81,6 @@ var ActionFunctionText = (_obj3 = {}, _define_property(_obj3, "tailwindcss", fun
|
|
|
82
81
|
return i18n.t(localeKeys.action.function.proxy);
|
|
83
82
|
}), _define_property(_obj3, "swc", function() {
|
|
84
83
|
return i18n.t(localeKeys.action.function.swc);
|
|
85
|
-
}), _define_property(_obj3, "rspack", function() {
|
|
86
|
-
return i18n.t(localeKeys.action.function.rspack);
|
|
87
84
|
}), _define_property(_obj3, "module_doc", function() {
|
|
88
85
|
return i18n.t(localeKeys.action.function.module_doc);
|
|
89
86
|
}), _obj3);
|
|
@@ -8,7 +8,6 @@ var MWAActionTypes = [
|
|
|
8
8
|
ActionType.Refactor
|
|
9
9
|
];
|
|
10
10
|
var MWAActionFunctions = [
|
|
11
|
-
ActionFunction.Rspack,
|
|
12
11
|
ActionFunction.TailwindCSS,
|
|
13
12
|
ActionFunction.BFF,
|
|
14
13
|
ActionFunction.SSG,
|
|
@@ -134,7 +133,7 @@ var MWAActionFunctionsAppendTypeContent = (_obj3 = {}, _define_property(_obj3, A
|
|
|
134
133
|
var MWAActionRefactorDependencies = _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/plugin-router-v5");
|
|
135
134
|
var MWAActionReactorAppendTypeContent = _define_property({}, ActionRefactor.ReactRouter5, "/// <reference types='@modern-js/plugin-router-v5/types' />");
|
|
136
135
|
var _obj4, _obj5, _obj6;
|
|
137
|
-
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.Storybook, "@modern-js/dependence-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"),
|
|
136
|
+
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.Storybook, "@modern-js/dependence-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);
|
|
138
137
|
var _obj7, _obj8;
|
|
139
138
|
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.Storybook, "storybookPlugin"), _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);
|
|
140
139
|
var _obj9, _obj10;
|
|
@@ -80,7 +80,6 @@ const getScenesSchema = (extra = {}) => {
|
|
|
80
80
|
};
|
|
81
81
|
const BaseGenerator = "@modern-js/base-generator";
|
|
82
82
|
const PackagesGenerator = "@modern-js/packages-generator";
|
|
83
|
-
const RspackGenerator = "@modern-js/rspack-generator";
|
|
84
83
|
const SolutionGenerator = {
|
|
85
84
|
["mwa"]: "@modern-js/mwa-generator",
|
|
86
85
|
["module"]: "@modern-js/module-generator",
|
|
@@ -99,7 +98,6 @@ export {
|
|
|
99
98
|
DependenceGenerator,
|
|
100
99
|
EntryGenerator,
|
|
101
100
|
PackagesGenerator,
|
|
102
|
-
RspackGenerator,
|
|
103
101
|
Solution,
|
|
104
102
|
SolutionGenerator,
|
|
105
103
|
SolutionText,
|
|
@@ -25,7 +25,6 @@ var ActionFunction;
|
|
|
25
25
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
26
26
|
ActionFunction2["Proxy"] = "proxy";
|
|
27
27
|
ActionFunction2["SWC"] = "swc";
|
|
28
|
-
ActionFunction2["Rspack"] = "rspack";
|
|
29
28
|
ActionFunction2["ModuleDoc"] = "module_doc";
|
|
30
29
|
})(ActionFunction || (ActionFunction = {}));
|
|
31
30
|
var ActionRefactor;
|
|
@@ -60,7 +59,6 @@ const ActionFunctionText = {
|
|
|
60
59
|
["polyfill"]: () => i18n.t(localeKeys.action.function.polyfill),
|
|
61
60
|
["proxy"]: () => i18n.t(localeKeys.action.function.proxy),
|
|
62
61
|
["swc"]: () => i18n.t(localeKeys.action.function.swc),
|
|
63
|
-
["rspack"]: () => i18n.t(localeKeys.action.function.rspack),
|
|
64
62
|
["module_doc"]: () => i18n.t(localeKeys.action.function.module_doc)
|
|
65
63
|
};
|
|
66
64
|
const ActionRefactorText = {
|
|
@@ -7,7 +7,6 @@ const MWAActionTypes = [
|
|
|
7
7
|
ActionType.Refactor
|
|
8
8
|
];
|
|
9
9
|
const MWAActionFunctions = [
|
|
10
|
-
ActionFunction.Rspack,
|
|
11
10
|
ActionFunction.TailwindCSS,
|
|
12
11
|
ActionFunction.BFF,
|
|
13
12
|
ActionFunction.SSG,
|
|
@@ -152,8 +151,7 @@ const MWANewActionGenerators = {
|
|
|
152
151
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
153
152
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
154
153
|
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
155
|
-
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
156
|
-
[ActionFunction.Rspack]: "@modern-js/rspack-generator"
|
|
154
|
+
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
157
155
|
},
|
|
158
156
|
[ActionType.Refactor]: {
|
|
159
157
|
[ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
|
|
@@ -15,7 +15,6 @@ export declare const getSolutionSchema: (extra?: Record<string, any>) => Schema;
|
|
|
15
15
|
export declare const getScenesSchema: (extra?: Record<string, any>) => Schema;
|
|
16
16
|
export declare const BaseGenerator = "@modern-js/base-generator";
|
|
17
17
|
export declare const PackagesGenerator = "@modern-js/packages-generator";
|
|
18
|
-
export declare const RspackGenerator = "@modern-js/rspack-generator";
|
|
19
18
|
export declare const SolutionGenerator: Record<Solution, string>;
|
|
20
19
|
export declare const SubSolutionGenerator: Record<SubSolution, string>;
|
|
21
20
|
export declare const ChangesetGenerator = "@modern-js/changeset-generator";
|
|
@@ -36,7 +36,6 @@ declare const localeKeys: {
|
|
|
36
36
|
polyfill: string;
|
|
37
37
|
proxy: string;
|
|
38
38
|
swc: string;
|
|
39
|
-
rspack: string;
|
|
40
39
|
module_doc: string;
|
|
41
40
|
};
|
|
42
41
|
element: {
|
|
@@ -132,7 +131,6 @@ declare const localeKeys: {
|
|
|
132
131
|
polyfill: string;
|
|
133
132
|
proxy: string;
|
|
134
133
|
swc: string;
|
|
135
|
-
rspack: string;
|
|
136
134
|
module_doc: string;
|
|
137
135
|
};
|
|
138
136
|
element: {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.3.
|
|
18
|
+
"version": "3.3.9",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@modern-js/codesmith-formily": "2.3.
|
|
34
|
+
"@modern-js/codesmith-formily": "2.3.4",
|
|
35
35
|
"@swc/helpers": "0.5.3",
|
|
36
|
-
"@modern-js/plugin-i18n": "2.
|
|
36
|
+
"@modern-js/plugin-i18n": "2.47.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@modern-js/codesmith": "2.3.
|
|
40
|
-
"@modern-js/codesmith-api-app": "2.3.
|
|
39
|
+
"@modern-js/codesmith": "2.3.4",
|
|
40
|
+
"@modern-js/codesmith-api-app": "2.3.4",
|
|
41
41
|
"@types/jest": "^29",
|
|
42
42
|
"@types/node": "^14",
|
|
43
43
|
"jest": "^29",
|
|
44
44
|
"typescript": "^5",
|
|
45
|
-
"@scripts/jest-config": "2.
|
|
46
|
-
"@modern-js/utils": "2.
|
|
47
|
-
"@scripts/build": "2.
|
|
45
|
+
"@scripts/jest-config": "2.47.0",
|
|
46
|
+
"@modern-js/utils": "2.47.0",
|
|
47
|
+
"@scripts/build": "2.47.0"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"publishConfig": {
|