@modern-js/tailwindcss-generator 1.1.7 → 1.2.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 +8 -3
- package/package.json +8 -6
package/dist/js/node/main.js
CHANGED
@@ -90362,6 +90362,7 @@ const EN_LOCALE = {
|
|
90362
90362
|
runtime_api: 'Enable "Runtime API"',
|
90363
90363
|
mwa_storybook: 'Enable "Visual Testing (Storybook)"',
|
90364
90364
|
ssg: 'Enable "SSG"',
|
90365
|
+
polyfill: 'Enable "UA-based Polyfill feature"',
|
90365
90366
|
deploy: 'Enable "Deploy"'
|
90366
90367
|
},
|
90367
90368
|
element: {
|
@@ -90527,6 +90528,7 @@ const ZH_LOCALE = {
|
|
90527
90528
|
runtime_api: '启用「Rumtime API」',
|
90528
90529
|
mwa_storybook: '启用「Visual Testing (Storybook)」模式',
|
90529
90530
|
ssg: '启用「SSG」功能',
|
90531
|
+
polyfill: '启用基于「UA 的 Polyfill」功能',
|
90530
90532
|
deploy: '启用「部署」功能'
|
90531
90533
|
},
|
90532
90534
|
element: {
|
@@ -91014,7 +91016,6 @@ const LambdaTypeSchema = {
|
|
91014
91016
|
type: ['string'],
|
91015
91017
|
label: () => _locale.i18n.t(_locale.localeKeys.deploy.lambda.self),
|
91016
91018
|
mutualExclusion: true,
|
91017
|
-
when: values => values.disableModernServer === _common.BooleanConfig.NO,
|
91018
91019
|
items: Object.values(LambdaType).map(deployType => ({
|
91019
91020
|
key: deployType,
|
91020
91021
|
label: () => _locale.i18n.t(_locale.localeKeys.deploy.lambda[deployType])
|
@@ -91305,6 +91306,7 @@ exports.ActionFunction = ActionFunction;
|
|
91305
91306
|
ActionFunction["Storybook"] = "storybook";
|
91306
91307
|
ActionFunction["RuntimeApi"] = "runtimeApi";
|
91307
91308
|
ActionFunction["SSG"] = "ssg";
|
91309
|
+
ActionFunction["Polyfill"] = "polyfill";
|
91308
91310
|
ActionFunction["Deploy"] = "deploy";
|
91309
91311
|
})(ActionFunction || (exports.ActionFunction = ActionFunction = {}));
|
91310
91312
|
|
@@ -91341,6 +91343,7 @@ const ActionFunctionText = {
|
|
91341
91343
|
[ActionFunction.Storybook]: () => _locale.i18n.t(_locale.localeKeys.action.function.storybook),
|
91342
91344
|
[ActionFunction.RuntimeApi]: () => _locale.i18n.t(_locale.localeKeys.action.function.runtime_api),
|
91343
91345
|
[ActionFunction.SSG]: () => _locale.i18n.t(_locale.localeKeys.action.function.ssg),
|
91346
|
+
[ActionFunction.Polyfill]: () => _locale.i18n.t(_locale.localeKeys.action.function.polyfill),
|
91344
91347
|
[ActionFunction.Deploy]: () => _locale.i18n.t(_locale.localeKeys.action.function.deploy)
|
91345
91348
|
};
|
91346
91349
|
exports.ActionFunctionText = ActionFunctionText;
|
@@ -91566,7 +91569,7 @@ exports.MWAActionTypes = MWAActionTypes;
|
|
91566
91569
|
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,
|
91567
91570
|
_common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction.E2ETest,
|
91568
91571
|
// ActionFunction.Doc,
|
91569
|
-
_common.ActionFunction.Deploy];
|
91572
|
+
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy];
|
91570
91573
|
exports.MWAActionFunctions = MWAActionFunctions;
|
91571
91574
|
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server];
|
91572
91575
|
exports.MWAActionElements = MWAActionElements;
|
@@ -91622,7 +91625,8 @@ const MWAActionFunctionsDependencies = {
|
|
91622
91625
|
[_common.ActionFunction.BFF]: '@modern-js/plugin-bff',
|
91623
91626
|
[_common.ActionFunction.MicroFrontend]: '@modern-js/plugin-micro-frontend',
|
91624
91627
|
[_common.ActionFunction.I18n]: '@modern-js/plugin-i18n',
|
91625
|
-
[_common.ActionFunction.SSG]: '@modern-js/plugin-ssg'
|
91628
|
+
[_common.ActionFunction.SSG]: '@modern-js/plugin-ssg',
|
91629
|
+
[_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill'
|
91626
91630
|
};
|
91627
91631
|
exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
|
91628
91632
|
const MWAActionFunctionsAppendTypeContent = {
|
@@ -91649,6 +91653,7 @@ const MWANewActionGenerators = {
|
|
91649
91653
|
[_common.ActionFunction.Doc]: '@modern-js/dependence-generator',
|
91650
91654
|
[_common.ActionFunction.Storybook]: '@modern-js/dependence-generator',
|
91651
91655
|
[_common.ActionFunction.SSG]: '@modern-js/ssg-generator',
|
91656
|
+
[_common.ActionFunction.Polyfill]: '@modern-js/dependence-generator',
|
91652
91657
|
[_common.ActionFunction.Deploy]: '@modern-js/cloud-deploy-generator'
|
91653
91658
|
},
|
91654
91659
|
[_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.2.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/js/node/main.js",
|
17
17
|
"files": [
|
@@ -23,14 +23,15 @@
|
|
23
23
|
"@modern-js/codesmith": "^1.0.8",
|
24
24
|
"@modern-js/codesmith-api-app": "^1.0.7",
|
25
25
|
"@modern-js/codesmith-tools": "^1.0.8",
|
26
|
-
"@modern-js/generator-common": "^1.
|
27
|
-
"@modern-js/dependence-generator": "^1.
|
26
|
+
"@modern-js/generator-common": "^1.3.0",
|
27
|
+
"@modern-js/dependence-generator": "^1.2.0",
|
28
28
|
"@types/jest": "^26",
|
29
29
|
"@types/lodash": "^4.14.168",
|
30
30
|
"@types/node": "^14",
|
31
31
|
"typescript": "^4",
|
32
|
-
"@
|
33
|
-
"
|
32
|
+
"@scripts/build": "0.0.0",
|
33
|
+
"jest": "^27",
|
34
|
+
"@scripts/jest-config": "0.0.0"
|
34
35
|
},
|
35
36
|
"sideEffects": false,
|
36
37
|
"modernConfig": {
|
@@ -43,11 +44,12 @@
|
|
43
44
|
"registry": "https://registry.npmjs.org/",
|
44
45
|
"access": "public"
|
45
46
|
},
|
47
|
+
"types": "./src/index.ts",
|
46
48
|
"scripts": {
|
47
49
|
"new": "modern new",
|
48
50
|
"build": "modern build",
|
49
51
|
"build:csmith": "csmith-tools build",
|
50
|
-
"test": "
|
52
|
+
"test": "jest --passWithNoTests"
|
51
53
|
},
|
52
54
|
"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"
|
53
55
|
}
|