@modern-js/server-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 +25 -38
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -52662,15 +52662,6 @@ var import_path7 = __toESM(require("path"));
|
|
|
52662
52662
|
var import_path2 = __toESM(require("path"));
|
|
52663
52663
|
var import_utils3 = require("@modern-js/utils");
|
|
52664
52664
|
|
|
52665
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
|
52666
|
-
function _define_property(obj, key, value) {
|
|
52667
|
-
if (key in obj) {
|
|
52668
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
52669
|
-
} else
|
|
52670
|
-
obj[key] = value;
|
|
52671
|
-
return obj;
|
|
52672
|
-
}
|
|
52673
|
-
|
|
52674
52665
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
52675
52666
|
var import_lodash2 = require("@modern-js/utils/lodash");
|
|
52676
52667
|
|
|
@@ -52729,8 +52720,8 @@ var I18n = class {
|
|
|
52729
52720
|
};
|
|
52730
52721
|
}
|
|
52731
52722
|
constructor() {
|
|
52732
|
-
|
|
52733
|
-
|
|
52723
|
+
this.language = "en";
|
|
52724
|
+
this.languageMap = {};
|
|
52734
52725
|
}
|
|
52735
52726
|
};
|
|
52736
52727
|
|
|
@@ -52763,10 +52754,8 @@ var ZH_LOCALE = {
|
|
|
52763
52754
|
i18n: "启用「国际化(i18n)」功能",
|
|
52764
52755
|
test: "启用「单元测试 / 集成测试」功能",
|
|
52765
52756
|
e2e_test: "启用「E2E 测试」功能",
|
|
52766
|
-
storybook: "启用「Storybook」",
|
|
52767
52757
|
storybookV7: "启用「Storybook」V7",
|
|
52768
52758
|
runtime_api: "启用「Runtime API」",
|
|
52769
|
-
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
52770
52759
|
ssg: "启用「SSG」功能",
|
|
52771
52760
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
52772
52761
|
proxy: "启用「全局代理」",
|
|
@@ -52861,10 +52850,8 @@ var EN_LOCALE = {
|
|
|
52861
52850
|
i18n: "Enable Internationalization (i18n)",
|
|
52862
52851
|
test: "Enable Unit Test / Integration Test",
|
|
52863
52852
|
e2e_test: "Enable E2E Test",
|
|
52864
|
-
storybook: "Enable Storybook",
|
|
52865
52853
|
storybookV7: "Enable Storybook V7",
|
|
52866
52854
|
runtime_api: "Enable Runtime API",
|
|
52867
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
52868
52855
|
ssg: "Enable SSG",
|
|
52869
52856
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
52870
52857
|
proxy: "Enable Global Proxy",
|
|
@@ -53146,7 +53133,7 @@ function isTsProject(appDir) {
|
|
|
53146
53133
|
}
|
|
53147
53134
|
|
|
53148
53135
|
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
53149
|
-
function
|
|
53136
|
+
function _define_property(obj, key, value) {
|
|
53150
53137
|
if (key in obj) {
|
|
53151
53138
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
53152
53139
|
} else
|
|
@@ -53329,7 +53316,7 @@ var NpmAPI = class {
|
|
|
53329
53316
|
});
|
|
53330
53317
|
}
|
|
53331
53318
|
constructor(generatorCore) {
|
|
53332
|
-
|
|
53319
|
+
_define_property(this, "generatorCore", void 0);
|
|
53333
53320
|
this.generatorCore = generatorCore;
|
|
53334
53321
|
}
|
|
53335
53322
|
};
|
|
@@ -53454,8 +53441,8 @@ var GitAPI = class {
|
|
|
53454
53441
|
}
|
|
53455
53442
|
}
|
|
53456
53443
|
constructor(generatorCore, generatorContext) {
|
|
53457
|
-
|
|
53458
|
-
|
|
53444
|
+
_define_property(this, "generatorCore", void 0);
|
|
53445
|
+
_define_property(this, "generatorContext", void 0);
|
|
53459
53446
|
this.generatorCore = generatorCore;
|
|
53460
53447
|
this.generatorContext = generatorContext;
|
|
53461
53448
|
}
|
|
@@ -53531,8 +53518,8 @@ var HandlebarsAPI = class {
|
|
|
53531
53518
|
);
|
|
53532
53519
|
}
|
|
53533
53520
|
constructor(generatorCore, registers) {
|
|
53534
|
-
|
|
53535
|
-
|
|
53521
|
+
_define_property(this, "generatorCore", void 0);
|
|
53522
|
+
_define_property(this, "registers", void 0);
|
|
53536
53523
|
this.generatorCore = generatorCore;
|
|
53537
53524
|
this.registers = registers || {
|
|
53538
53525
|
helpers: {},
|
|
@@ -53575,7 +53562,7 @@ var EjsAPI = class {
|
|
|
53575
53562
|
);
|
|
53576
53563
|
}
|
|
53577
53564
|
constructor(generatorCore) {
|
|
53578
|
-
|
|
53565
|
+
_define_property(this, "generatorCore", void 0);
|
|
53579
53566
|
this.generatorCore = generatorCore;
|
|
53580
53567
|
}
|
|
53581
53568
|
};
|
|
@@ -53603,7 +53590,7 @@ var FsAPI = class {
|
|
|
53603
53590
|
}));
|
|
53604
53591
|
}
|
|
53605
53592
|
constructor(generatorCore) {
|
|
53606
|
-
|
|
53593
|
+
_define_property(this, "generatorCore", void 0);
|
|
53607
53594
|
this.generatorCore = generatorCore;
|
|
53608
53595
|
}
|
|
53609
53596
|
};
|
|
@@ -63383,10 +63370,10 @@ var CLIReader = class {
|
|
|
63383
63370
|
return answers;
|
|
63384
63371
|
}
|
|
63385
63372
|
constructor(options) {
|
|
63386
|
-
|
|
63387
|
-
|
|
63388
|
-
|
|
63389
|
-
|
|
63373
|
+
_define_property(this, "schema", null);
|
|
63374
|
+
_define_property(this, "validateMap", void 0);
|
|
63375
|
+
_define_property(this, "initValue", void 0);
|
|
63376
|
+
_define_property(this, "answers", {});
|
|
63390
63377
|
const { schema, validateMap, initValue } = options;
|
|
63391
63378
|
this.schema = schema;
|
|
63392
63379
|
this.validateMap = validateMap || {};
|
|
@@ -63455,8 +63442,8 @@ var I18n2 = class {
|
|
|
63455
63442
|
};
|
|
63456
63443
|
}
|
|
63457
63444
|
constructor() {
|
|
63458
|
-
|
|
63459
|
-
|
|
63445
|
+
_define_property(this, "language", "en");
|
|
63446
|
+
_define_property(this, "languageMap", {});
|
|
63460
63447
|
}
|
|
63461
63448
|
};
|
|
63462
63449
|
|
|
@@ -63819,14 +63806,14 @@ var AppAPI = class {
|
|
|
63819
63806
|
}
|
|
63820
63807
|
}
|
|
63821
63808
|
constructor(generatorContext, generatorCore) {
|
|
63822
|
-
|
|
63823
|
-
|
|
63824
|
-
|
|
63825
|
-
|
|
63826
|
-
|
|
63827
|
-
|
|
63828
|
-
|
|
63829
|
-
|
|
63809
|
+
_define_property(this, "i18n", i18n2);
|
|
63810
|
+
_define_property(this, "npmApi", void 0);
|
|
63811
|
+
_define_property(this, "gitApi", void 0);
|
|
63812
|
+
_define_property(this, "handlebarsAPI", void 0);
|
|
63813
|
+
_define_property(this, "ejsAPI", void 0);
|
|
63814
|
+
_define_property(this, "fsAPI", void 0);
|
|
63815
|
+
_define_property(this, "generatorCore", void 0);
|
|
63816
|
+
_define_property(this, "generatorContext", void 0);
|
|
63830
63817
|
this.generatorCore = generatorCore;
|
|
63831
63818
|
this.generatorContext = generatorContext;
|
|
63832
63819
|
this.npmApi = new NpmAPI(generatorCore);
|
|
@@ -63894,7 +63881,7 @@ var JsonAPI = class {
|
|
|
63894
63881
|
});
|
|
63895
63882
|
}
|
|
63896
63883
|
constructor(generatorCore) {
|
|
63897
|
-
|
|
63884
|
+
_define_property(this, "generatorCore", void 0);
|
|
63898
63885
|
this.generatorCore = generatorCore;
|
|
63899
63886
|
}
|
|
63900
63887
|
};
|
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": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"/dist/index.js"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@modern-js/utils": "2.48.
|
|
27
|
+
"@modern-js/utils": "2.48.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@modern-js/codesmith": "2.3.5",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@types/node": "^14",
|
|
35
35
|
"jest": "^29",
|
|
36
36
|
"typescript": "^5",
|
|
37
|
-
"@modern-js/generator-
|
|
38
|
-
"@
|
|
39
|
-
"@modern-js/generator
|
|
40
|
-
"@
|
|
41
|
-
"@scripts/
|
|
37
|
+
"@modern-js/generator-common": "3.3.12",
|
|
38
|
+
"@scripts/jest-config": "2.48.1",
|
|
39
|
+
"@modern-js/dependence-generator": "3.3.12",
|
|
40
|
+
"@modern-js/generator-utils": "3.3.12",
|
|
41
|
+
"@scripts/build": "2.48.1"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"publishConfig": {
|