@modern-js/tailwindcss-generator 3.1.9 → 3.1.11
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/index.js +67 -13
- package/package.json +11 -7
package/dist/index.js
CHANGED
|
@@ -102821,26 +102821,29 @@ function getObjKeyMap2(obj, prefix = "") {
|
|
|
102821
102821
|
if ((0, import_lodash6.isString)(obj[key])) {
|
|
102822
102822
|
result[key] = prefix ? `${prefix}.${key}` : key;
|
|
102823
102823
|
} else if ((0, import_lodash6.isObject)(obj[key])) {
|
|
102824
|
-
result[key] = getObjKeyMap2(
|
|
102825
|
-
obj[key],
|
|
102826
|
-
prefix ? `${prefix}.${key}` : key
|
|
102827
|
-
);
|
|
102824
|
+
result[key] = getObjKeyMap2(obj[key], prefix ? `${prefix}.${key}` : key);
|
|
102828
102825
|
}
|
|
102829
102826
|
});
|
|
102830
102827
|
return result;
|
|
102831
102828
|
}
|
|
102832
102829
|
|
|
102833
102830
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
102834
|
-
|
|
102835
|
-
|
|
102836
|
-
|
|
102837
|
-
|
|
102831
|
+
function _define_property(obj, key, value) {
|
|
102832
|
+
if (key in obj) {
|
|
102833
|
+
Object.defineProperty(obj, key, {
|
|
102834
|
+
value,
|
|
102835
|
+
enumerable: true,
|
|
102836
|
+
configurable: true,
|
|
102837
|
+
writable: true
|
|
102838
|
+
});
|
|
102839
|
+
} else {
|
|
102840
|
+
obj[key] = value;
|
|
102838
102841
|
}
|
|
102842
|
+
return obj;
|
|
102843
|
+
}
|
|
102844
|
+
var I18n2 = class {
|
|
102839
102845
|
format(msg, vars) {
|
|
102840
|
-
return msg.replace(
|
|
102841
|
-
/\{(\w+)\}/g,
|
|
102842
|
-
(_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture
|
|
102843
|
-
);
|
|
102846
|
+
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
102844
102847
|
}
|
|
102845
102848
|
getMessage(lang, key, vars, fallbackText) {
|
|
102846
102849
|
const languages = Object.keys(this.languageMap);
|
|
@@ -102877,6 +102880,10 @@ var I18n2 = class {
|
|
|
102877
102880
|
t: (key, vars, fallbackText) => this.getMessage(lang, key, vars, fallbackText)
|
|
102878
102881
|
};
|
|
102879
102882
|
}
|
|
102883
|
+
constructor() {
|
|
102884
|
+
_define_property(this, "language", "en");
|
|
102885
|
+
_define_property(this, "languageMap", {});
|
|
102886
|
+
}
|
|
102880
102887
|
};
|
|
102881
102888
|
|
|
102882
102889
|
// ../../generator-common/dist/esm-node/locale/zh.js
|
|
@@ -103076,9 +103083,56 @@ var EN_LOCALE2 = {
|
|
|
103076
103083
|
|
|
103077
103084
|
// ../../generator-common/dist/esm-node/locale/index.js
|
|
103078
103085
|
var i18n2 = new I18n2();
|
|
103079
|
-
var localeKeys2 = i18n2.init("en", {
|
|
103086
|
+
var localeKeys2 = i18n2.init("en", {
|
|
103087
|
+
zh: ZH_LOCALE2,
|
|
103088
|
+
en: EN_LOCALE2
|
|
103089
|
+
});
|
|
103080
103090
|
|
|
103081
103091
|
// ../../generator-common/dist/esm-node/common/solution.js
|
|
103092
|
+
var Solution;
|
|
103093
|
+
(function(Solution2) {
|
|
103094
|
+
Solution2["MWA"] = "mwa";
|
|
103095
|
+
Solution2["Module"] = "module";
|
|
103096
|
+
Solution2["Doc"] = "doc";
|
|
103097
|
+
Solution2["Monorepo"] = "monorepo";
|
|
103098
|
+
})(Solution || (Solution = {}));
|
|
103099
|
+
var SubSolution;
|
|
103100
|
+
(function(SubSolution2) {
|
|
103101
|
+
SubSolution2["MWA"] = "mwa";
|
|
103102
|
+
SubSolution2["MWATest"] = "mwa_test";
|
|
103103
|
+
SubSolution2["Module"] = "module";
|
|
103104
|
+
SubSolution2["InnerModule"] = "inner_module";
|
|
103105
|
+
})(SubSolution || (SubSolution = {}));
|
|
103106
|
+
var SolutionText = {
|
|
103107
|
+
[Solution.MWA]: () => i18n2.t(localeKeys2.solution.mwa),
|
|
103108
|
+
[Solution.Module]: () => i18n2.t(localeKeys2.solution.module),
|
|
103109
|
+
[Solution.Doc]: () => i18n2.t(localeKeys2.solution.doc),
|
|
103110
|
+
[Solution.Monorepo]: () => i18n2.t(localeKeys2.solution.monorepo)
|
|
103111
|
+
};
|
|
103112
|
+
var SubSolutionText = {
|
|
103113
|
+
[SubSolution.MWA]: () => i18n2.t(localeKeys2.sub_solution.mwa),
|
|
103114
|
+
[SubSolution.MWATest]: () => i18n2.t(localeKeys2.sub_solution.mwa_test),
|
|
103115
|
+
[SubSolution.Module]: () => i18n2.t(localeKeys2.sub_solution.module),
|
|
103116
|
+
[SubSolution.InnerModule]: () => i18n2.t(localeKeys2.sub_solution.inner_module)
|
|
103117
|
+
};
|
|
103118
|
+
var SolutionToolsMap = {
|
|
103119
|
+
[Solution.MWA]: "@modern-js/app-tools",
|
|
103120
|
+
[Solution.Module]: "@modern-js/module-tools",
|
|
103121
|
+
[Solution.Doc]: "@modern-js/doc-tools",
|
|
103122
|
+
[Solution.Monorepo]: "@modern-js/monorepo-tools"
|
|
103123
|
+
};
|
|
103124
|
+
var SolutionGenerator = {
|
|
103125
|
+
[Solution.MWA]: "@modern-js/mwa-generator",
|
|
103126
|
+
[Solution.Module]: "@modern-js/module-generator",
|
|
103127
|
+
[Solution.Doc]: "@modern-js/doc-generator",
|
|
103128
|
+
[Solution.Monorepo]: "@modern-js/monorepo-generator"
|
|
103129
|
+
};
|
|
103130
|
+
var SubSolutionGenerator = {
|
|
103131
|
+
[SubSolution.MWA]: "@modern-js/mwa-generator",
|
|
103132
|
+
[SubSolution.MWATest]: "@modern-js/mwa-generator",
|
|
103133
|
+
[SubSolution.Module]: "@modern-js/module-generator",
|
|
103134
|
+
[SubSolution.InnerModule]: "@modern-js/module-generator"
|
|
103135
|
+
};
|
|
103082
103136
|
var DependenceGenerator = "@modern-js/dependence-generator";
|
|
103083
103137
|
|
|
103084
103138
|
// src/index.ts
|
package/package.json
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
"description": "A Progressive React Framework for modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/web-infra-dev/modern.js",
|
|
9
|
+
"directory": "packages/generator/generators/tailwindcss-generator"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"keywords": [
|
|
9
13
|
"react",
|
|
@@ -11,7 +15,7 @@
|
|
|
11
15
|
"modern",
|
|
12
16
|
"modern.js"
|
|
13
17
|
],
|
|
14
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.11",
|
|
15
19
|
"jsnext:source": "./src/index.ts",
|
|
16
20
|
"main": "./dist/index.js",
|
|
17
21
|
"files": [
|
|
@@ -26,11 +30,11 @@
|
|
|
26
30
|
"@types/node": "^14",
|
|
27
31
|
"jest": "^29",
|
|
28
32
|
"typescript": "^4",
|
|
29
|
-
"@modern-js/dependence-generator": "3.1.
|
|
30
|
-
"@modern-js/generator-
|
|
31
|
-
"@
|
|
32
|
-
"@scripts/build": "2.
|
|
33
|
-
"@
|
|
33
|
+
"@modern-js/dependence-generator": "3.1.11",
|
|
34
|
+
"@modern-js/generator-utils": "3.1.11",
|
|
35
|
+
"@scripts/jest-config": "2.17.0",
|
|
36
|
+
"@scripts/build": "2.17.0",
|
|
37
|
+
"@modern-js/generator-common": "3.1.11"
|
|
34
38
|
},
|
|
35
39
|
"sideEffects": false,
|
|
36
40
|
"publishConfig": {
|