@modern-js/generator-common 3.3.10 → 3.3.12
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/locale/en.js +0 -2
- package/dist/cjs/locale/zh.js +0 -2
- package/dist/cjs/newAction/common/index.js +0 -2
- package/dist/cjs/newAction/mwa/index.js +1 -6
- package/dist/esm/locale/en.js +0 -2
- package/dist/esm/locale/zh.js +0 -2
- package/dist/esm/newAction/common/index.js +0 -3
- package/dist/esm/newAction/mwa/index.js +5 -6
- package/dist/esm-node/locale/en.js +0 -2
- package/dist/esm-node/locale/zh.js +0 -2
- package/dist/esm-node/newAction/common/index.js +0 -2
- package/dist/esm-node/newAction/mwa/index.js +1 -6
- package/dist/types/locale/en.d.ts +0 -2
- package/dist/types/locale/index.d.ts +0 -4
- package/dist/types/locale/zh.d.ts +0 -2
- package/dist/types/newAction/common/index.d.ts +0 -1
- package/package.json +5 -5
package/dist/cjs/locale/en.js
CHANGED
|
@@ -50,10 +50,8 @@ const EN_LOCALE = {
|
|
|
50
50
|
i18n: "Enable Internationalization (i18n)",
|
|
51
51
|
test: "Enable Unit Test / Integration Test",
|
|
52
52
|
e2e_test: "Enable E2E Test",
|
|
53
|
-
storybook: "Enable Storybook",
|
|
54
53
|
storybookV7: "Enable Storybook V7",
|
|
55
54
|
runtime_api: "Enable Runtime API",
|
|
56
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
57
55
|
ssg: "Enable SSG",
|
|
58
56
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
59
57
|
proxy: "Enable Global Proxy",
|
package/dist/cjs/locale/zh.js
CHANGED
|
@@ -49,10 +49,8 @@ const ZH_LOCALE = {
|
|
|
49
49
|
i18n: "启用「国际化(i18n)」功能",
|
|
50
50
|
test: "启用「单元测试 / 集成测试」功能",
|
|
51
51
|
e2e_test: "启用「E2E 测试」功能",
|
|
52
|
-
storybook: "启用「Storybook」",
|
|
53
52
|
storybookV7: "启用「Storybook」V7",
|
|
54
53
|
runtime_api: "启用「Runtime API」",
|
|
55
|
-
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
56
54
|
ssg: "启用「SSG」功能",
|
|
57
55
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
58
56
|
proxy: "启用「全局代理」",
|
|
@@ -50,7 +50,6 @@ var ActionFunction;
|
|
|
50
50
|
ActionFunction2["I18n"] = "i18n";
|
|
51
51
|
ActionFunction2["Test"] = "test";
|
|
52
52
|
ActionFunction2["E2ETest"] = "e2e_test";
|
|
53
|
-
ActionFunction2["Storybook"] = "storybook";
|
|
54
53
|
ActionFunction2["StorybookV7"] = "storybookV7";
|
|
55
54
|
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
|
56
55
|
ActionFunction2["SSG"] = "ssg";
|
|
@@ -84,7 +83,6 @@ const ActionFunctionText = {
|
|
|
84
83
|
["i18n"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.i18n),
|
|
85
84
|
["test"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.test),
|
|
86
85
|
["e2e_test"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.e2e_test),
|
|
87
|
-
["storybook"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.storybook),
|
|
88
86
|
["storybookV7"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.storybookV7),
|
|
89
87
|
["runtimeApi"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.runtime_api),
|
|
90
88
|
["ssg"]: () => import_locale.i18n.t(import_locale.localeKeys.action.function.ssg),
|
|
@@ -53,7 +53,6 @@ const MWAActionFunctions = [
|
|
|
53
53
|
import_common2.ActionFunction.Test,
|
|
54
54
|
import_common2.ActionFunction.Polyfill,
|
|
55
55
|
import_common2.ActionFunction.Proxy,
|
|
56
|
-
import_common2.ActionFunction.Storybook,
|
|
57
56
|
import_common2.ActionFunction.StorybookV7
|
|
58
57
|
];
|
|
59
58
|
const MWAActionElements = [
|
|
@@ -111,7 +110,7 @@ const getMWANewActionSchema = (extra = {}) => {
|
|
|
111
110
|
title: import_common2.ActionTypeQuestionText[import_common2.ActionType.Function](),
|
|
112
111
|
enum: funcs.map((func) => ({
|
|
113
112
|
value: func,
|
|
114
|
-
label:
|
|
113
|
+
label: import_common2.ActionFunctionText[func]()
|
|
115
114
|
})),
|
|
116
115
|
"x-reactions": [
|
|
117
116
|
{
|
|
@@ -152,7 +151,6 @@ const getMWANewActionSchema = (extra = {}) => {
|
|
|
152
151
|
const MWAActionFunctionsDevDependencies = {
|
|
153
152
|
[import_common2.ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
154
153
|
[import_common2.ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
155
|
-
[import_common2.ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
156
154
|
[import_common2.ActionFunction.StorybookV7]: "@modern-js/storybook",
|
|
157
155
|
[import_common2.ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
158
156
|
[import_common2.ActionFunction.TailwindCSS]: "tailwindcss",
|
|
@@ -184,7 +182,6 @@ const MWANewActionGenerators = {
|
|
|
184
182
|
[import_common2.ActionFunction.BFF]: "@modern-js/bff-generator",
|
|
185
183
|
[import_common2.ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
|
|
186
184
|
[import_common2.ActionFunction.Test]: "@modern-js/test-generator",
|
|
187
|
-
[import_common2.ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
188
185
|
[import_common2.ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
|
|
189
186
|
[import_common2.ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
190
187
|
[import_common2.ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
@@ -204,7 +201,6 @@ const MWANewActionPluginName = {
|
|
|
204
201
|
[import_common2.ActionFunction.BFF]: "bffPlugin",
|
|
205
202
|
[import_common2.ActionFunction.MicroFrontend]: "garfishPlugin",
|
|
206
203
|
[import_common2.ActionFunction.Test]: "testingPlugin",
|
|
207
|
-
[import_common2.ActionFunction.Storybook]: "storybookPlugin",
|
|
208
204
|
[import_common2.ActionFunction.SSG]: "ssgPlugin",
|
|
209
205
|
[import_common2.ActionFunction.Polyfill]: "polyfillPlugin",
|
|
210
206
|
[import_common2.ActionFunction.Proxy]: "proxyPlugin",
|
|
@@ -223,7 +219,6 @@ const MWANewActionPluginDependence = {
|
|
|
223
219
|
[import_common2.ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
224
220
|
[import_common2.ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
|
|
225
221
|
[import_common2.ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
226
|
-
[import_common2.ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
227
222
|
[import_common2.ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
228
223
|
[import_common2.ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
|
|
229
224
|
[import_common2.ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
package/dist/esm/locale/en.js
CHANGED
|
@@ -27,10 +27,8 @@ var EN_LOCALE = {
|
|
|
27
27
|
i18n: "Enable Internationalization (i18n)",
|
|
28
28
|
test: "Enable Unit Test / Integration Test",
|
|
29
29
|
e2e_test: "Enable E2E Test",
|
|
30
|
-
storybook: "Enable Storybook",
|
|
31
30
|
storybookV7: "Enable Storybook V7",
|
|
32
31
|
runtime_api: "Enable Runtime API",
|
|
33
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
34
32
|
ssg: "Enable SSG",
|
|
35
33
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
36
34
|
proxy: "Enable Global Proxy",
|
package/dist/esm/locale/zh.js
CHANGED
|
@@ -26,10 +26,8 @@ var ZH_LOCALE = {
|
|
|
26
26
|
i18n: "启用「国际化(i18n)」功能",
|
|
27
27
|
test: "启用「单元测试 / 集成测试」功能",
|
|
28
28
|
e2e_test: "启用「E2E 测试」功能",
|
|
29
|
-
storybook: "启用「Storybook」",
|
|
30
29
|
storybookV7: "启用「Storybook」V7",
|
|
31
30
|
runtime_api: "启用「Runtime API」",
|
|
32
|
-
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
33
31
|
ssg: "启用「SSG」功能",
|
|
34
32
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
35
33
|
proxy: "启用「全局代理」",
|
|
@@ -19,7 +19,6 @@ var ActionFunction;
|
|
|
19
19
|
ActionFunction2["I18n"] = "i18n";
|
|
20
20
|
ActionFunction2["Test"] = "test";
|
|
21
21
|
ActionFunction2["E2ETest"] = "e2e_test";
|
|
22
|
-
ActionFunction2["Storybook"] = "storybook";
|
|
23
22
|
ActionFunction2["StorybookV7"] = "storybookV7";
|
|
24
23
|
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
|
25
24
|
ActionFunction2["SSG"] = "ssg";
|
|
@@ -67,8 +66,6 @@ var ActionFunctionText = (_obj3 = {}, _define_property(_obj3, "tailwindcss", fun
|
|
|
67
66
|
return i18n.t(localeKeys.action.function.test);
|
|
68
67
|
}), _define_property(_obj3, "e2e_test", function() {
|
|
69
68
|
return i18n.t(localeKeys.action.function.e2e_test);
|
|
70
|
-
}), _define_property(_obj3, "storybook", function() {
|
|
71
|
-
return i18n.t(localeKeys.action.function.storybook);
|
|
72
69
|
}), _define_property(_obj3, "storybookV7", function() {
|
|
73
70
|
return i18n.t(localeKeys.action.function.storybookV7);
|
|
74
71
|
}), _define_property(_obj3, "runtimeApi", function() {
|
|
@@ -16,7 +16,6 @@ var MWAActionFunctions = [
|
|
|
16
16
|
ActionFunction.Test,
|
|
17
17
|
ActionFunction.Polyfill,
|
|
18
18
|
ActionFunction.Proxy,
|
|
19
|
-
ActionFunction.Storybook,
|
|
20
19
|
ActionFunction.StorybookV7
|
|
21
20
|
];
|
|
22
21
|
var MWAActionElements = [
|
|
@@ -85,7 +84,7 @@ var getMWANewActionSchema = function() {
|
|
|
85
84
|
enum: funcs.map(function(func) {
|
|
86
85
|
return {
|
|
87
86
|
value: func,
|
|
88
|
-
label:
|
|
87
|
+
label: ActionFunctionText[func]()
|
|
89
88
|
};
|
|
90
89
|
}),
|
|
91
90
|
"x-reactions": [
|
|
@@ -125,7 +124,7 @@ var getMWANewActionSchema = function() {
|
|
|
125
124
|
};
|
|
126
125
|
};
|
|
127
126
|
var _obj1;
|
|
128
|
-
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.
|
|
127
|
+
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);
|
|
129
128
|
var _obj2;
|
|
130
129
|
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);
|
|
131
130
|
var _obj3;
|
|
@@ -133,11 +132,11 @@ var MWAActionFunctionsAppendTypeContent = (_obj3 = {}, _define_property(_obj3, A
|
|
|
133
132
|
var MWAActionRefactorDependencies = _define_property({}, ActionRefactor.ReactRouter5, "@modern-js/plugin-router-v5");
|
|
134
133
|
var MWAActionReactorAppendTypeContent = _define_property({}, ActionRefactor.ReactRouter5, "/// <reference types='@modern-js/plugin-router-v5/types' />");
|
|
135
134
|
var _obj4, _obj5, _obj6;
|
|
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.
|
|
135
|
+
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);
|
|
137
136
|
var _obj7, _obj8;
|
|
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.
|
|
137
|
+
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);
|
|
139
138
|
var _obj9, _obj10;
|
|
140
|
-
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.
|
|
139
|
+
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);
|
|
141
140
|
var _obj11;
|
|
142
141
|
var BFFPluginName = (_obj11 = {}, _define_property(_obj11, Framework.Express, "expressPlugin"), _define_property(_obj11, Framework.Koa, "koaPlugin"), _obj11);
|
|
143
142
|
var _obj12;
|
|
@@ -27,10 +27,8 @@ const EN_LOCALE = {
|
|
|
27
27
|
i18n: "Enable Internationalization (i18n)",
|
|
28
28
|
test: "Enable Unit Test / Integration Test",
|
|
29
29
|
e2e_test: "Enable E2E Test",
|
|
30
|
-
storybook: "Enable Storybook",
|
|
31
30
|
storybookV7: "Enable Storybook V7",
|
|
32
31
|
runtime_api: "Enable Runtime API",
|
|
33
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
34
32
|
ssg: "Enable SSG",
|
|
35
33
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
36
34
|
proxy: "Enable Global Proxy",
|
|
@@ -26,10 +26,8 @@ const ZH_LOCALE = {
|
|
|
26
26
|
i18n: "启用「国际化(i18n)」功能",
|
|
27
27
|
test: "启用「单元测试 / 集成测试」功能",
|
|
28
28
|
e2e_test: "启用「E2E 测试」功能",
|
|
29
|
-
storybook: "启用「Storybook」",
|
|
30
29
|
storybookV7: "启用「Storybook」V7",
|
|
31
30
|
runtime_api: "启用「Runtime API」",
|
|
32
|
-
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
33
31
|
ssg: "启用「SSG」功能",
|
|
34
32
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
35
33
|
proxy: "启用「全局代理」",
|
|
@@ -18,7 +18,6 @@ var ActionFunction;
|
|
|
18
18
|
ActionFunction2["I18n"] = "i18n";
|
|
19
19
|
ActionFunction2["Test"] = "test";
|
|
20
20
|
ActionFunction2["E2ETest"] = "e2e_test";
|
|
21
|
-
ActionFunction2["Storybook"] = "storybook";
|
|
22
21
|
ActionFunction2["StorybookV7"] = "storybookV7";
|
|
23
22
|
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
|
24
23
|
ActionFunction2["SSG"] = "ssg";
|
|
@@ -52,7 +51,6 @@ const ActionFunctionText = {
|
|
|
52
51
|
["i18n"]: () => i18n.t(localeKeys.action.function.i18n),
|
|
53
52
|
["test"]: () => i18n.t(localeKeys.action.function.test),
|
|
54
53
|
["e2e_test"]: () => i18n.t(localeKeys.action.function.e2e_test),
|
|
55
|
-
["storybook"]: () => i18n.t(localeKeys.action.function.storybook),
|
|
56
54
|
["storybookV7"]: () => i18n.t(localeKeys.action.function.storybookV7),
|
|
57
55
|
["runtimeApi"]: () => i18n.t(localeKeys.action.function.runtime_api),
|
|
58
56
|
["ssg"]: () => i18n.t(localeKeys.action.function.ssg),
|
|
@@ -15,7 +15,6 @@ const MWAActionFunctions = [
|
|
|
15
15
|
ActionFunction.Test,
|
|
16
16
|
ActionFunction.Polyfill,
|
|
17
17
|
ActionFunction.Proxy,
|
|
18
|
-
ActionFunction.Storybook,
|
|
19
18
|
ActionFunction.StorybookV7
|
|
20
19
|
];
|
|
21
20
|
const MWAActionElements = [
|
|
@@ -73,7 +72,7 @@ const getMWANewActionSchema = (extra = {}) => {
|
|
|
73
72
|
title: ActionTypeQuestionText[ActionType.Function](),
|
|
74
73
|
enum: funcs.map((func) => ({
|
|
75
74
|
value: func,
|
|
76
|
-
label:
|
|
75
|
+
label: ActionFunctionText[func]()
|
|
77
76
|
})),
|
|
78
77
|
"x-reactions": [
|
|
79
78
|
{
|
|
@@ -114,7 +113,6 @@ const getMWANewActionSchema = (extra = {}) => {
|
|
|
114
113
|
const MWAActionFunctionsDevDependencies = {
|
|
115
114
|
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
116
115
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
117
|
-
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
118
116
|
[ActionFunction.StorybookV7]: "@modern-js/storybook",
|
|
119
117
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
120
118
|
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
@@ -146,7 +144,6 @@ const MWANewActionGenerators = {
|
|
|
146
144
|
[ActionFunction.BFF]: "@modern-js/bff-generator",
|
|
147
145
|
[ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
|
|
148
146
|
[ActionFunction.Test]: "@modern-js/test-generator",
|
|
149
|
-
[ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
150
147
|
[ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
|
|
151
148
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
152
149
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
@@ -166,7 +163,6 @@ const MWANewActionPluginName = {
|
|
|
166
163
|
[ActionFunction.BFF]: "bffPlugin",
|
|
167
164
|
[ActionFunction.MicroFrontend]: "garfishPlugin",
|
|
168
165
|
[ActionFunction.Test]: "testingPlugin",
|
|
169
|
-
[ActionFunction.Storybook]: "storybookPlugin",
|
|
170
166
|
[ActionFunction.SSG]: "ssgPlugin",
|
|
171
167
|
[ActionFunction.Polyfill]: "polyfillPlugin",
|
|
172
168
|
[ActionFunction.Proxy]: "proxyPlugin",
|
|
@@ -185,7 +181,6 @@ const MWANewActionPluginDependence = {
|
|
|
185
181
|
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
186
182
|
[ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
|
|
187
183
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
188
|
-
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
189
184
|
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
190
185
|
[ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
|
|
191
186
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
@@ -28,10 +28,8 @@ declare const localeKeys: {
|
|
|
28
28
|
i18n: string;
|
|
29
29
|
test: string;
|
|
30
30
|
e2e_test: string;
|
|
31
|
-
storybook: string;
|
|
32
31
|
storybookV7: string;
|
|
33
32
|
runtime_api: string;
|
|
34
|
-
mwa_storybook: string;
|
|
35
33
|
ssg: string;
|
|
36
34
|
polyfill: string;
|
|
37
35
|
proxy: string;
|
|
@@ -123,10 +121,8 @@ declare const localeKeys: {
|
|
|
123
121
|
i18n: string;
|
|
124
122
|
test: string;
|
|
125
123
|
e2e_test: string;
|
|
126
|
-
storybook: string;
|
|
127
124
|
storybookV7: string;
|
|
128
125
|
runtime_api: string;
|
|
129
|
-
mwa_storybook: string;
|
|
130
126
|
ssg: string;
|
|
131
127
|
polyfill: string;
|
|
132
128
|
proxy: string;
|
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.12",
|
|
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.
|
|
36
|
+
"@modern-js/plugin-i18n": "2.48.1"
|
|
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.
|
|
46
|
-
"@scripts/
|
|
47
|
-
"@scripts/
|
|
45
|
+
"@modern-js/utils": "2.48.1",
|
|
46
|
+
"@scripts/build": "2.48.1",
|
|
47
|
+
"@scripts/jest-config": "2.48.1"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"publishConfig": {
|