@modern-js/monorepo-generator 1.2.4 → 1.3.0
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/js/node/main.js
CHANGED
@@ -91592,6 +91592,7 @@ const EN_LOCALE = {
|
|
91592
91592
|
runtime_api: 'Enable "Runtime API"',
|
91593
91593
|
mwa_storybook: 'Enable "Visual Testing (Storybook)"',
|
91594
91594
|
ssg: 'Enable "SSG"',
|
91595
|
+
polyfill: 'Enable "UA-based Polyfill feature"',
|
91595
91596
|
deploy: 'Enable "Deploy"'
|
91596
91597
|
},
|
91597
91598
|
element: {
|
@@ -91757,6 +91758,7 @@ const ZH_LOCALE = {
|
|
91757
91758
|
runtime_api: '启用「Rumtime API」',
|
91758
91759
|
mwa_storybook: '启用「Visual Testing (Storybook)」模式',
|
91759
91760
|
ssg: '启用「SSG」功能',
|
91761
|
+
polyfill: '启用基于「UA 的 Polyfill」功能',
|
91760
91762
|
deploy: '启用「部署」功能'
|
91761
91763
|
},
|
91762
91764
|
element: {
|
@@ -92244,7 +92246,6 @@ const LambdaTypeSchema = {
|
|
92244
92246
|
type: ['string'],
|
92245
92247
|
label: () => _locale.i18n.t(_locale.localeKeys.deploy.lambda.self),
|
92246
92248
|
mutualExclusion: true,
|
92247
|
-
when: values => values.disableModernServer === _common.BooleanConfig.NO,
|
92248
92249
|
items: Object.values(LambdaType).map(deployType => ({
|
92249
92250
|
key: deployType,
|
92250
92251
|
label: () => _locale.i18n.t(_locale.localeKeys.deploy.lambda[deployType])
|
@@ -92535,6 +92536,7 @@ exports.ActionFunction = ActionFunction;
|
|
92535
92536
|
ActionFunction["Storybook"] = "storybook";
|
92536
92537
|
ActionFunction["RuntimeApi"] = "runtimeApi";
|
92537
92538
|
ActionFunction["SSG"] = "ssg";
|
92539
|
+
ActionFunction["Polyfill"] = "polyfill";
|
92538
92540
|
ActionFunction["Deploy"] = "deploy";
|
92539
92541
|
})(ActionFunction || (exports.ActionFunction = ActionFunction = {}));
|
92540
92542
|
|
@@ -92571,6 +92573,7 @@ const ActionFunctionText = {
|
|
92571
92573
|
[ActionFunction.Storybook]: () => _locale.i18n.t(_locale.localeKeys.action.function.storybook),
|
92572
92574
|
[ActionFunction.RuntimeApi]: () => _locale.i18n.t(_locale.localeKeys.action.function.runtime_api),
|
92573
92575
|
[ActionFunction.SSG]: () => _locale.i18n.t(_locale.localeKeys.action.function.ssg),
|
92576
|
+
[ActionFunction.Polyfill]: () => _locale.i18n.t(_locale.localeKeys.action.function.polyfill),
|
92574
92577
|
[ActionFunction.Deploy]: () => _locale.i18n.t(_locale.localeKeys.action.function.deploy)
|
92575
92578
|
};
|
92576
92579
|
exports.ActionFunctionText = ActionFunctionText;
|
@@ -92796,7 +92799,7 @@ exports.MWAActionTypes = MWAActionTypes;
|
|
92796
92799
|
const MWAActionFunctions = [_common.ActionFunction.UnBundle, _common.ActionFunction.TailwindCSS, _common.ActionFunction.Less, _common.ActionFunction.Sass, _common.ActionFunction.BFF, _common.ActionFunction.SSG, _common.ActionFunction.MicroFrontend, _common.ActionFunction.Electron, // ActionFunction.I18n,
|
92797
92800
|
_common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction.E2ETest,
|
92798
92801
|
// ActionFunction.Doc,
|
92799
|
-
_common.ActionFunction.Deploy];
|
92802
|
+
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy];
|
92800
92803
|
exports.MWAActionFunctions = MWAActionFunctions;
|
92801
92804
|
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server];
|
92802
92805
|
exports.MWAActionElements = MWAActionElements;
|
@@ -92852,7 +92855,8 @@ const MWAActionFunctionsDependencies = {
|
|
92852
92855
|
[_common.ActionFunction.BFF]: '@modern-js/plugin-bff',
|
92853
92856
|
[_common.ActionFunction.MicroFrontend]: '@modern-js/plugin-micro-frontend',
|
92854
92857
|
[_common.ActionFunction.I18n]: '@modern-js/plugin-i18n',
|
92855
|
-
[_common.ActionFunction.SSG]: '@modern-js/plugin-ssg'
|
92858
|
+
[_common.ActionFunction.SSG]: '@modern-js/plugin-ssg',
|
92859
|
+
[_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill'
|
92856
92860
|
};
|
92857
92861
|
exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
|
92858
92862
|
const MWAActionFunctionsAppendTypeContent = {
|
@@ -92879,6 +92883,7 @@ const MWANewActionGenerators = {
|
|
92879
92883
|
[_common.ActionFunction.Doc]: '@modern-js/dependence-generator',
|
92880
92884
|
[_common.ActionFunction.Storybook]: '@modern-js/dependence-generator',
|
92881
92885
|
[_common.ActionFunction.SSG]: '@modern-js/ssg-generator',
|
92886
|
+
[_common.ActionFunction.Polyfill]: '@modern-js/dependence-generator',
|
92882
92887
|
[_common.ActionFunction.Deploy]: '@modern-js/cloud-deploy-generator'
|
92883
92888
|
},
|
92884
92889
|
[_common.ActionType.Refactor]: {
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.
|
14
|
+
"version": "1.3.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/js/node/main.js",
|
17
17
|
"files": [
|
@@ -20,19 +20,20 @@
|
|
20
20
|
],
|
21
21
|
"devDependencies": {
|
22
22
|
"@babel/runtime": "^7",
|
23
|
-
"@modern-js/base-generator": "^1.
|
24
|
-
"@modern-js/changeset-generator": "^1.
|
23
|
+
"@modern-js/base-generator": "^1.3.0",
|
24
|
+
"@modern-js/changeset-generator": "^1.2.0",
|
25
25
|
"@modern-js/codesmith": "^1.0.8",
|
26
26
|
"@modern-js/codesmith-api-app": "^1.0.7",
|
27
27
|
"@modern-js/codesmith-tools": "^1.0.8",
|
28
28
|
"@modern-js/codesmith-api-json": "^1.0.7",
|
29
|
-
"@modern-js/generator-common": "^1.
|
30
|
-
"@modern-js/generator-utils": "^1.
|
31
|
-
"@
|
32
|
-
"@modern-js/plugin-testing": "^1.2.2",
|
29
|
+
"@modern-js/generator-common": "^1.3.0",
|
30
|
+
"@modern-js/generator-utils": "^1.2.0",
|
31
|
+
"@scripts/build": "0.0.0",
|
33
32
|
"@types/jest": "^26",
|
34
33
|
"@types/node": "^14",
|
35
|
-
"typescript": "^4"
|
34
|
+
"typescript": "^4",
|
35
|
+
"jest": "^27",
|
36
|
+
"@scripts/jest-config": "0.0.0"
|
36
37
|
},
|
37
38
|
"sideEffects": false,
|
38
39
|
"modernConfig": {
|
@@ -45,11 +46,12 @@
|
|
45
46
|
"registry": "https://registry.npmjs.org/",
|
46
47
|
"access": "public"
|
47
48
|
},
|
49
|
+
"types": "./src/index.ts",
|
48
50
|
"scripts": {
|
49
51
|
"new": "modern new",
|
50
52
|
"build": "modern build",
|
51
53
|
"build:csmith": "csmith-tools build",
|
52
|
-
"test": "
|
54
|
+
"test": "jest --passWithNoTests"
|
53
55
|
},
|
54
56
|
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
55
57
|
}
|
@@ -48,8 +48,8 @@
|
|
48
48
|
]
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@modern-js/monorepo-tools": "
|
52
|
-
"@modern-js/plugin-jarvis": "
|
51
|
+
"@modern-js/monorepo-tools": "workspace:^1.2.0",
|
52
|
+
"@modern-js/plugin-jarvis": "workspace:^1.1.1"
|
53
53
|
},
|
54
54
|
"publishConfig": {
|
55
55
|
"access": "public",
|