@modern-js/entry-generator 3.3.11 → 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/index.js +24 -37
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -51062,15 +51062,6 @@ var import_lodash8 = require("@modern-js/utils/lodash");
|
|
|
51062
51062
|
var import_path = __toESM(require("path"));
|
|
51063
51063
|
var import_utils2 = require("@modern-js/utils");
|
|
51064
51064
|
|
|
51065
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
|
51066
|
-
function _define_property(obj, key, value) {
|
|
51067
|
-
if (key in obj) {
|
|
51068
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
51069
|
-
} else
|
|
51070
|
-
obj[key] = value;
|
|
51071
|
-
return obj;
|
|
51072
|
-
}
|
|
51073
|
-
|
|
51074
51065
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
51075
51066
|
var import_lodash2 = require("@modern-js/utils/lodash");
|
|
51076
51067
|
|
|
@@ -51129,8 +51120,8 @@ var I18n = class {
|
|
|
51129
51120
|
};
|
|
51130
51121
|
}
|
|
51131
51122
|
constructor() {
|
|
51132
|
-
|
|
51133
|
-
|
|
51123
|
+
this.language = "en";
|
|
51124
|
+
this.languageMap = {};
|
|
51134
51125
|
}
|
|
51135
51126
|
};
|
|
51136
51127
|
|
|
@@ -51163,10 +51154,8 @@ var ZH_LOCALE = {
|
|
|
51163
51154
|
i18n: "启用「国际化(i18n)」功能",
|
|
51164
51155
|
test: "启用「单元测试 / 集成测试」功能",
|
|
51165
51156
|
e2e_test: "启用「E2E 测试」功能",
|
|
51166
|
-
storybook: "启用「Storybook」",
|
|
51167
51157
|
storybookV7: "启用「Storybook」V7",
|
|
51168
51158
|
runtime_api: "启用「Runtime API」",
|
|
51169
|
-
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
51170
51159
|
ssg: "启用「SSG」功能",
|
|
51171
51160
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
51172
51161
|
proxy: "启用「全局代理」",
|
|
@@ -51261,10 +51250,8 @@ var EN_LOCALE = {
|
|
|
51261
51250
|
i18n: "Enable Internationalization (i18n)",
|
|
51262
51251
|
test: "Enable Unit Test / Integration Test",
|
|
51263
51252
|
e2e_test: "Enable E2E Test",
|
|
51264
|
-
storybook: "Enable Storybook",
|
|
51265
51253
|
storybookV7: "Enable Storybook V7",
|
|
51266
51254
|
runtime_api: "Enable Runtime API",
|
|
51267
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
51268
51255
|
ssg: "Enable SSG",
|
|
51269
51256
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
51270
51257
|
proxy: "Enable Global Proxy",
|
|
@@ -51396,7 +51383,7 @@ async function getPackageObj(context) {
|
|
|
51396
51383
|
}
|
|
51397
51384
|
|
|
51398
51385
|
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
51399
|
-
function
|
|
51386
|
+
function _define_property(obj, key, value) {
|
|
51400
51387
|
if (key in obj) {
|
|
51401
51388
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
51402
51389
|
} else
|
|
@@ -51579,7 +51566,7 @@ var NpmAPI = class {
|
|
|
51579
51566
|
});
|
|
51580
51567
|
}
|
|
51581
51568
|
constructor(generatorCore) {
|
|
51582
|
-
|
|
51569
|
+
_define_property(this, "generatorCore", void 0);
|
|
51583
51570
|
this.generatorCore = generatorCore;
|
|
51584
51571
|
}
|
|
51585
51572
|
};
|
|
@@ -51704,8 +51691,8 @@ var GitAPI = class {
|
|
|
51704
51691
|
}
|
|
51705
51692
|
}
|
|
51706
51693
|
constructor(generatorCore, generatorContext) {
|
|
51707
|
-
|
|
51708
|
-
|
|
51694
|
+
_define_property(this, "generatorCore", void 0);
|
|
51695
|
+
_define_property(this, "generatorContext", void 0);
|
|
51709
51696
|
this.generatorCore = generatorCore;
|
|
51710
51697
|
this.generatorContext = generatorContext;
|
|
51711
51698
|
}
|
|
@@ -51781,8 +51768,8 @@ var HandlebarsAPI = class {
|
|
|
51781
51768
|
);
|
|
51782
51769
|
}
|
|
51783
51770
|
constructor(generatorCore, registers) {
|
|
51784
|
-
|
|
51785
|
-
|
|
51771
|
+
_define_property(this, "generatorCore", void 0);
|
|
51772
|
+
_define_property(this, "registers", void 0);
|
|
51786
51773
|
this.generatorCore = generatorCore;
|
|
51787
51774
|
this.registers = registers || {
|
|
51788
51775
|
helpers: {},
|
|
@@ -51825,7 +51812,7 @@ var EjsAPI = class {
|
|
|
51825
51812
|
);
|
|
51826
51813
|
}
|
|
51827
51814
|
constructor(generatorCore) {
|
|
51828
|
-
|
|
51815
|
+
_define_property(this, "generatorCore", void 0);
|
|
51829
51816
|
this.generatorCore = generatorCore;
|
|
51830
51817
|
}
|
|
51831
51818
|
};
|
|
@@ -51853,7 +51840,7 @@ var FsAPI = class {
|
|
|
51853
51840
|
}));
|
|
51854
51841
|
}
|
|
51855
51842
|
constructor(generatorCore) {
|
|
51856
|
-
|
|
51843
|
+
_define_property(this, "generatorCore", void 0);
|
|
51857
51844
|
this.generatorCore = generatorCore;
|
|
51858
51845
|
}
|
|
51859
51846
|
};
|
|
@@ -61633,10 +61620,10 @@ var CLIReader = class {
|
|
|
61633
61620
|
return answers;
|
|
61634
61621
|
}
|
|
61635
61622
|
constructor(options) {
|
|
61636
|
-
|
|
61637
|
-
|
|
61638
|
-
|
|
61639
|
-
|
|
61623
|
+
_define_property(this, "schema", null);
|
|
61624
|
+
_define_property(this, "validateMap", void 0);
|
|
61625
|
+
_define_property(this, "initValue", void 0);
|
|
61626
|
+
_define_property(this, "answers", {});
|
|
61640
61627
|
const { schema, validateMap, initValue } = options;
|
|
61641
61628
|
this.schema = schema;
|
|
61642
61629
|
this.validateMap = validateMap || {};
|
|
@@ -61705,8 +61692,8 @@ var I18n2 = class {
|
|
|
61705
61692
|
};
|
|
61706
61693
|
}
|
|
61707
61694
|
constructor() {
|
|
61708
|
-
|
|
61709
|
-
|
|
61695
|
+
_define_property(this, "language", "en");
|
|
61696
|
+
_define_property(this, "languageMap", {});
|
|
61710
61697
|
}
|
|
61711
61698
|
};
|
|
61712
61699
|
|
|
@@ -62069,14 +62056,14 @@ var AppAPI = class {
|
|
|
62069
62056
|
}
|
|
62070
62057
|
}
|
|
62071
62058
|
constructor(generatorContext, generatorCore) {
|
|
62072
|
-
|
|
62073
|
-
|
|
62074
|
-
|
|
62075
|
-
|
|
62076
|
-
|
|
62077
|
-
|
|
62078
|
-
|
|
62079
|
-
|
|
62059
|
+
_define_property(this, "i18n", i18n2);
|
|
62060
|
+
_define_property(this, "npmApi", void 0);
|
|
62061
|
+
_define_property(this, "gitApi", void 0);
|
|
62062
|
+
_define_property(this, "handlebarsAPI", void 0);
|
|
62063
|
+
_define_property(this, "ejsAPI", void 0);
|
|
62064
|
+
_define_property(this, "fsAPI", void 0);
|
|
62065
|
+
_define_property(this, "generatorCore", void 0);
|
|
62066
|
+
_define_property(this, "generatorContext", void 0);
|
|
62080
62067
|
this.generatorCore = generatorCore;
|
|
62081
62068
|
this.generatorContext = generatorContext;
|
|
62082
62069
|
this.npmApi = new NpmAPI(generatorCore);
|
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
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@modern-js/utils": "2.48.
|
|
26
|
+
"@modern-js/utils": "2.48.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@modern-js/codesmith": "2.3.5",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@types/node": "^14",
|
|
34
34
|
"jest": "^29",
|
|
35
35
|
"typescript": "^5",
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "2.48.
|
|
40
|
-
"@
|
|
36
|
+
"@modern-js/generator-common": "3.3.12",
|
|
37
|
+
"@modern-js/generator-utils": "3.3.12",
|
|
38
|
+
"@modern-js/plugin-i18n": "2.48.1",
|
|
39
|
+
"@scripts/jest-config": "2.48.1",
|
|
40
|
+
"@scripts/build": "2.48.1"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"publishConfig": {
|