@modern-js/server-generator 3.0.9 → 3.0.10
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/README.md +2 -2
- package/dist/index.js +145 -102
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -19,8 +19,8 @@ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-sta
|
|
|
19
19
|
|
|
20
20
|
## Contributing
|
|
21
21
|
|
|
22
|
-
Please read the [Contributing Guide](https://github.com/
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
23
|
|
|
24
24
|
## License
|
|
25
25
|
|
|
26
|
-
Modern.js is [MIT licensed](https://github.com/
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/web-infra-dev/modern.js/blob/main/LICENSE).
|
package/dist/index.js
CHANGED
|
@@ -35512,8 +35512,10 @@ var require_is = __commonJS({
|
|
|
35512
35512
|
isEmpty: () => isEmpty2,
|
|
35513
35513
|
isFastRefresh: () => isFastRefresh,
|
|
35514
35514
|
isRouterV5: () => isRouterV5,
|
|
35515
|
+
isSSGEntry: () => isSSGEntry,
|
|
35515
35516
|
isSSR: () => isSSR,
|
|
35516
35517
|
isServiceWorker: () => isServiceWorker,
|
|
35518
|
+
isSingleEntry: () => isSingleEntry,
|
|
35517
35519
|
isTypescript: () => isTypescript,
|
|
35518
35520
|
isUseSSRBundle: () => isUseSSRBundle
|
|
35519
35521
|
});
|
|
@@ -35571,6 +35573,12 @@ var require_is = __commonJS({
|
|
|
35571
35573
|
var _a2, _b, _c;
|
|
35572
35574
|
return typeof ((_a2 = config.runtime) == null ? void 0 : _a2.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
|
|
35573
35575
|
};
|
|
35576
|
+
var isSSGEntry = (config, entryName, entrypoints) => {
|
|
35577
|
+
const ssgConfig = config.output.ssg;
|
|
35578
|
+
const useSSG = isSingleEntry(entrypoints) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig == null ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig == null ? void 0 : ssgConfig[entryName]);
|
|
35579
|
+
return useSSG;
|
|
35580
|
+
};
|
|
35581
|
+
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
|
35574
35582
|
}
|
|
35575
35583
|
});
|
|
35576
35584
|
|
|
@@ -37022,14 +37030,12 @@ var require_prettyInstructions = __commonJS({
|
|
|
37022
37030
|
__export2(prettyInstructions_exports, {
|
|
37023
37031
|
getAddressUrls: () => getAddressUrls,
|
|
37024
37032
|
getIpv4Interfaces: () => getIpv4Interfaces,
|
|
37025
|
-
isSingleEntry: () => isSingleEntry,
|
|
37026
37033
|
prettyInstructions: () => prettyInstructions
|
|
37027
37034
|
});
|
|
37028
37035
|
module2.exports = __toCommonJS2(prettyInstructions_exports);
|
|
37029
37036
|
var import_os = __toESM2(require("os"));
|
|
37030
37037
|
var import_compiled = require_compiled();
|
|
37031
37038
|
var import_is = require_is();
|
|
37032
|
-
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
|
37033
37039
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
37034
37040
|
var getIpv4Interfaces = () => {
|
|
37035
37041
|
const interfaces = import_os.default.networkInterfaces();
|
|
@@ -37068,7 +37074,7 @@ var require_prettyInstructions = __commonJS({
|
|
|
37068
37074
|
);
|
|
37069
37075
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
37070
37076
|
let message = "App running at:\n\n";
|
|
37071
|
-
if (isSingleEntry(entrypoints) || apiOnly) {
|
|
37077
|
+
if ((0, import_is.isSingleEntry)(entrypoints) || apiOnly) {
|
|
37072
37078
|
message += urls.map(
|
|
37073
37079
|
({ type, url }) => ` ${import_compiled.chalk.bold(`> ${type.padEnd(10)}`)}${import_compiled.chalk.cyanBright(
|
|
37074
37080
|
normalizeUrl(`${url}/${routes[0].urlPath}`)
|
|
@@ -37560,7 +37566,8 @@ var require_analyzeProject = __commonJS({
|
|
|
37560
37566
|
};
|
|
37561
37567
|
var analyzeProject_exports = {};
|
|
37562
37568
|
__export2(analyzeProject_exports, {
|
|
37563
|
-
isApiOnly: () => isApiOnly
|
|
37569
|
+
isApiOnly: () => isApiOnly,
|
|
37570
|
+
isWebOnly: () => isWebOnly
|
|
37564
37571
|
});
|
|
37565
37572
|
module2.exports = __toCommonJS2(analyzeProject_exports);
|
|
37566
37573
|
var path3 = __toESM2(require("path"));
|
|
@@ -37571,6 +37578,10 @@ var require_analyzeProject = __commonJS({
|
|
|
37571
37578
|
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
37572
37579
|
return !existSrc || Boolean(options["api-only"]);
|
|
37573
37580
|
});
|
|
37581
|
+
var isWebOnly = () => __async2(void 0, null, function* () {
|
|
37582
|
+
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
37583
|
+
return Boolean(options["web-only"]);
|
|
37584
|
+
});
|
|
37574
37585
|
}
|
|
37575
37586
|
});
|
|
37576
37587
|
|
|
@@ -77161,9 +77172,9 @@ var require_src2 = __commonJS({
|
|
|
77161
77172
|
}
|
|
77162
77173
|
});
|
|
77163
77174
|
|
|
77164
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77175
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
|
|
77165
77176
|
var require_env = __commonJS({
|
|
77166
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77177
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
|
|
77167
77178
|
"use strict";
|
|
77168
77179
|
Object.defineProperty(exports, "__esModule", {
|
|
77169
77180
|
value: true
|
|
@@ -77225,9 +77236,9 @@ var require_env = __commonJS({
|
|
|
77225
77236
|
}
|
|
77226
77237
|
});
|
|
77227
77238
|
|
|
77228
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
|
|
77229
77240
|
var require_install = __commonJS({
|
|
77230
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77241
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
|
|
77231
77242
|
"use strict";
|
|
77232
77243
|
Object.defineProperty(exports, "__esModule", {
|
|
77233
77244
|
value: true
|
|
@@ -77379,9 +77390,9 @@ var require_install = __commonJS({
|
|
|
77379
77390
|
}
|
|
77380
77391
|
});
|
|
77381
77392
|
|
|
77382
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77393
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
|
|
77383
77394
|
var require_utils = __commonJS({
|
|
77384
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77395
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
|
|
77385
77396
|
"use strict";
|
|
77386
77397
|
Object.defineProperty(exports, "__esModule", {
|
|
77387
77398
|
value: true
|
|
@@ -77445,9 +77456,9 @@ var require_utils = __commonJS({
|
|
|
77445
77456
|
}
|
|
77446
77457
|
});
|
|
77447
77458
|
|
|
77448
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77459
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
|
|
77449
77460
|
var require_node = __commonJS({
|
|
77450
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77461
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
|
|
77451
77462
|
"use strict";
|
|
77452
77463
|
Object.defineProperty(exports, "__esModule", {
|
|
77453
77464
|
value: true
|
|
@@ -77522,9 +77533,9 @@ var require_node = __commonJS({
|
|
|
77522
77533
|
}
|
|
77523
77534
|
});
|
|
77524
77535
|
|
|
77525
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77536
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
|
|
77526
77537
|
var require_utils2 = __commonJS({
|
|
77527
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77538
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
|
|
77528
77539
|
"use strict";
|
|
77529
77540
|
Object.defineProperty(exports, "__esModule", {
|
|
77530
77541
|
value: true
|
|
@@ -77599,9 +77610,9 @@ var require_utils2 = __commonJS({
|
|
|
77599
77610
|
}
|
|
77600
77611
|
});
|
|
77601
77612
|
|
|
77602
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77613
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
|
|
77603
77614
|
var require_node2 = __commonJS({
|
|
77604
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77615
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
|
|
77605
77616
|
"use strict";
|
|
77606
77617
|
Object.defineProperty(exports, "__esModule", {
|
|
77607
77618
|
value: true
|
|
@@ -77680,9 +77691,9 @@ var require_node2 = __commonJS({
|
|
|
77680
77691
|
}
|
|
77681
77692
|
});
|
|
77682
77693
|
|
|
77683
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77694
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
|
|
77684
77695
|
var require_constants3 = __commonJS({
|
|
77685
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77696
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
|
|
77686
77697
|
"use strict";
|
|
77687
77698
|
Object.defineProperty(exports, "__esModule", {
|
|
77688
77699
|
value: true
|
|
@@ -77703,9 +77714,9 @@ var require_constants3 = __commonJS({
|
|
|
77703
77714
|
}
|
|
77704
77715
|
});
|
|
77705
77716
|
|
|
77706
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77717
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
|
|
77707
77718
|
var require_logger3 = __commonJS({
|
|
77708
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77719
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
|
|
77709
77720
|
"use strict";
|
|
77710
77721
|
Object.defineProperty(exports, "__esModule", {
|
|
77711
77722
|
value: true
|
|
@@ -77773,9 +77784,9 @@ var require_logger3 = __commonJS({
|
|
|
77773
77784
|
}
|
|
77774
77785
|
});
|
|
77775
77786
|
|
|
77776
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77787
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
|
|
77777
77788
|
var require_constants4 = __commonJS({
|
|
77778
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77789
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
|
|
77779
77790
|
"use strict";
|
|
77780
77791
|
Object.defineProperty(exports, "__esModule", {
|
|
77781
77792
|
value: true
|
|
@@ -77786,9 +77797,9 @@ var require_constants4 = __commonJS({
|
|
|
77786
77797
|
}
|
|
77787
77798
|
});
|
|
77788
77799
|
|
|
77789
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77800
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
|
|
77790
77801
|
var require_FsResource = __commonJS({
|
|
77791
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77802
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
|
|
77792
77803
|
"use strict";
|
|
77793
77804
|
Object.defineProperty(exports, "__esModule", {
|
|
77794
77805
|
value: true
|
|
@@ -77839,9 +77850,9 @@ var require_FsResource = __commonJS({
|
|
|
77839
77850
|
}
|
|
77840
77851
|
});
|
|
77841
77852
|
|
|
77842
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77853
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
|
|
77843
77854
|
var require_FsMaterial = __commonJS({
|
|
77844
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77855
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
|
|
77845
77856
|
"use strict";
|
|
77846
77857
|
Object.defineProperty(exports, "__esModule", {
|
|
77847
77858
|
value: true
|
|
@@ -77893,9 +77904,9 @@ var require_FsMaterial = __commonJS({
|
|
|
77893
77904
|
}
|
|
77894
77905
|
});
|
|
77895
77906
|
|
|
77896
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77907
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
|
|
77897
77908
|
var require_nodeRequire = __commonJS({
|
|
77898
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77909
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
|
|
77899
77910
|
"use strict";
|
|
77900
77911
|
Object.defineProperty(exports, "__esModule", {
|
|
77901
77912
|
value: true
|
|
@@ -77920,9 +77931,9 @@ var require_nodeRequire = __commonJS({
|
|
|
77920
77931
|
}
|
|
77921
77932
|
});
|
|
77922
77933
|
|
|
77923
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77934
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
|
|
77924
77935
|
var require_fsExists = __commonJS({
|
|
77925
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77936
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
|
|
77926
77937
|
"use strict";
|
|
77927
77938
|
Object.defineProperty(exports, "__esModule", {
|
|
77928
77939
|
value: true
|
|
@@ -77942,9 +77953,9 @@ var require_fsExists = __commonJS({
|
|
|
77942
77953
|
}
|
|
77943
77954
|
});
|
|
77944
77955
|
|
|
77945
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77956
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
|
|
77946
77957
|
var require_getGeneratorDir = __commonJS({
|
|
77947
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77958
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
|
|
77948
77959
|
"use strict";
|
|
77949
77960
|
Object.defineProperty(exports, "__esModule", {
|
|
77950
77961
|
value: true
|
|
@@ -77978,9 +77989,9 @@ var require_getGeneratorDir = __commonJS({
|
|
|
77978
77989
|
}
|
|
77979
77990
|
});
|
|
77980
77991
|
|
|
77981
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77992
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
|
|
77982
77993
|
var require_generator = __commonJS({
|
|
77983
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77994
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
|
|
77984
77995
|
"use strict";
|
|
77985
77996
|
Object.defineProperty(exports, "__esModule", {
|
|
77986
77997
|
value: true
|
|
@@ -78228,9 +78239,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
78228
78239
|
}
|
|
78229
78240
|
});
|
|
78230
78241
|
|
|
78231
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78242
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
|
|
78232
78243
|
var require_packageManager = __commonJS({
|
|
78233
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78244
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
|
|
78234
78245
|
"use strict";
|
|
78235
78246
|
Object.defineProperty(exports, "__esModule", {
|
|
78236
78247
|
value: true
|
|
@@ -78308,9 +78319,9 @@ var require_packageManager = __commonJS({
|
|
|
78308
78319
|
}
|
|
78309
78320
|
});
|
|
78310
78321
|
|
|
78311
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78322
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
|
|
78312
78323
|
var require_timeoutPromise = __commonJS({
|
|
78313
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78324
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
|
|
78314
78325
|
"use strict";
|
|
78315
78326
|
Object.defineProperty(exports, "__esModule", {
|
|
78316
78327
|
value: true
|
|
@@ -86136,9 +86147,9 @@ var require_tar = __commonJS({
|
|
|
86136
86147
|
}
|
|
86137
86148
|
});
|
|
86138
86149
|
|
|
86139
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86150
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
|
|
86140
86151
|
var require_constants6 = __commonJS({
|
|
86141
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86152
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
|
|
86142
86153
|
"use strict";
|
|
86143
86154
|
Object.defineProperty(exports, "__esModule", {
|
|
86144
86155
|
value: true
|
|
@@ -86151,9 +86162,9 @@ var require_constants6 = __commonJS({
|
|
|
86151
86162
|
}
|
|
86152
86163
|
});
|
|
86153
86164
|
|
|
86154
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86165
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
|
|
86155
86166
|
var require_getNpmTarballUrl = __commonJS({
|
|
86156
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86167
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
|
|
86157
86168
|
"use strict";
|
|
86158
86169
|
Object.defineProperty(exports, "__esModule", {
|
|
86159
86170
|
value: true
|
|
@@ -86187,9 +86198,9 @@ var require_getNpmTarballUrl = __commonJS({
|
|
|
86187
86198
|
}
|
|
86188
86199
|
});
|
|
86189
86200
|
|
|
86190
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86201
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
|
|
86191
86202
|
var require_getNpmVersion = __commonJS({
|
|
86192
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86203
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
|
|
86193
86204
|
"use strict";
|
|
86194
86205
|
Object.defineProperty(exports, "__esModule", {
|
|
86195
86206
|
value: true
|
|
@@ -86225,9 +86236,9 @@ var require_getNpmVersion = __commonJS({
|
|
|
86225
86236
|
}
|
|
86226
86237
|
});
|
|
86227
86238
|
|
|
86228
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
|
|
86229
86240
|
var require_downloadPackage = __commonJS({
|
|
86230
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86241
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
|
|
86231
86242
|
"use strict";
|
|
86232
86243
|
Object.defineProperty(exports, "__esModule", {
|
|
86233
86244
|
value: true
|
|
@@ -86329,9 +86340,9 @@ var require_downloadPackage = __commonJS({
|
|
|
86329
86340
|
}
|
|
86330
86341
|
});
|
|
86331
86342
|
|
|
86332
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86343
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
|
|
86333
86344
|
var require_getPackageInfo = __commonJS({
|
|
86334
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86345
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
|
|
86335
86346
|
"use strict";
|
|
86336
86347
|
Object.defineProperty(exports, "__esModule", {
|
|
86337
86348
|
value: true
|
|
@@ -86363,9 +86374,9 @@ var require_getPackageInfo = __commonJS({
|
|
|
86363
86374
|
}
|
|
86364
86375
|
});
|
|
86365
86376
|
|
|
86366
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86377
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
|
|
86367
86378
|
var require_utils4 = __commonJS({
|
|
86368
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86379
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
|
|
86369
86380
|
"use strict";
|
|
86370
86381
|
Object.defineProperty(exports, "__esModule", {
|
|
86371
86382
|
value: true
|
|
@@ -86441,9 +86452,9 @@ var require_utils4 = __commonJS({
|
|
|
86441
86452
|
}
|
|
86442
86453
|
});
|
|
86443
86454
|
|
|
86444
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86455
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
|
|
86445
86456
|
var require_materials = __commonJS({
|
|
86446
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86457
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
|
|
86447
86458
|
"use strict";
|
|
86448
86459
|
Object.defineProperty(exports, "__esModule", {
|
|
86449
86460
|
value: true
|
|
@@ -86501,9 +86512,9 @@ var require_materials = __commonJS({
|
|
|
86501
86512
|
}
|
|
86502
86513
|
});
|
|
86503
86514
|
|
|
86504
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86515
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
|
|
86505
86516
|
var require_codesmith = __commonJS({
|
|
86506
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86517
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
|
|
86507
86518
|
"use strict";
|
|
86508
86519
|
Object.defineProperty(exports, "__esModule", {
|
|
86509
86520
|
value: true
|
|
@@ -86579,9 +86590,9 @@ var require_codesmith = __commonJS({
|
|
|
86579
86590
|
}
|
|
86580
86591
|
});
|
|
86581
86592
|
|
|
86582
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86593
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
|
|
86583
86594
|
var require_node3 = __commonJS({
|
|
86584
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86595
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
|
|
86585
86596
|
"use strict";
|
|
86586
86597
|
Object.defineProperty(exports, "__esModule", {
|
|
86587
86598
|
value: true
|
|
@@ -92535,9 +92546,9 @@ var require_lib = __commonJS({
|
|
|
92535
92546
|
}
|
|
92536
92547
|
});
|
|
92537
92548
|
|
|
92538
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92549
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
|
|
92539
92550
|
var require_renderString = __commonJS({
|
|
92540
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92551
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
|
|
92541
92552
|
"use strict";
|
|
92542
92553
|
Object.defineProperty(exports, "__esModule", {
|
|
92543
92554
|
value: true
|
|
@@ -92586,9 +92597,9 @@ var require_renderString = __commonJS({
|
|
|
92586
92597
|
}
|
|
92587
92598
|
});
|
|
92588
92599
|
|
|
92589
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92600
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
|
|
92590
92601
|
var require_utils6 = __commonJS({
|
|
92591
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92602
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
|
|
92592
92603
|
"use strict";
|
|
92593
92604
|
Object.defineProperty(exports, "__esModule", {
|
|
92594
92605
|
value: true
|
|
@@ -92603,9 +92614,9 @@ var require_utils6 = __commonJS({
|
|
|
92603
92614
|
}
|
|
92604
92615
|
});
|
|
92605
92616
|
|
|
92606
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92617
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
|
|
92607
92618
|
var require_node4 = __commonJS({
|
|
92608
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92619
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
|
|
92609
92620
|
"use strict";
|
|
92610
92621
|
Object.defineProperty(exports, "__esModule", {
|
|
92611
92622
|
value: true
|
|
@@ -92619,6 +92630,27 @@ var require_node4 = __commonJS({
|
|
|
92619
92630
|
});
|
|
92620
92631
|
var _codesmith = require_node3();
|
|
92621
92632
|
var _utils = require_utils6();
|
|
92633
|
+
function ownKeys(object, enumerableOnly) {
|
|
92634
|
+
var keys = Object.keys(object);
|
|
92635
|
+
if (Object.getOwnPropertySymbols) {
|
|
92636
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
92637
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
92638
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
92639
|
+
})), keys.push.apply(keys, symbols);
|
|
92640
|
+
}
|
|
92641
|
+
return keys;
|
|
92642
|
+
}
|
|
92643
|
+
function _objectSpread(target) {
|
|
92644
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
92645
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
92646
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
92647
|
+
_defineProperty(target, key, source[key]);
|
|
92648
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
92649
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
92650
|
+
});
|
|
92651
|
+
}
|
|
92652
|
+
return target;
|
|
92653
|
+
}
|
|
92622
92654
|
function _defineProperty(obj, key, value) {
|
|
92623
92655
|
if (key in obj) {
|
|
92624
92656
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
@@ -92637,6 +92669,16 @@ var require_node4 = __commonJS({
|
|
|
92637
92669
|
partials: {}
|
|
92638
92670
|
};
|
|
92639
92671
|
}
|
|
92672
|
+
registerHelp(helpers) {
|
|
92673
|
+
return __async(this, null, function* () {
|
|
92674
|
+
this.registers.helpers = _objectSpread(_objectSpread({}, this.registers.helpers), helpers);
|
|
92675
|
+
});
|
|
92676
|
+
}
|
|
92677
|
+
registerPartials(partials) {
|
|
92678
|
+
return __async(this, null, function* () {
|
|
92679
|
+
this.registers.partials = _objectSpread(_objectSpread({}, this.registers.partials), partials);
|
|
92680
|
+
});
|
|
92681
|
+
}
|
|
92640
92682
|
renderTemplate(_0, _1) {
|
|
92641
92683
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
92642
92684
|
if (templateResource._type !== _codesmith.FS_RESOURCE) {
|
|
@@ -93378,9 +93420,9 @@ var require_ejs = __commonJS({
|
|
|
93378
93420
|
}
|
|
93379
93421
|
});
|
|
93380
93422
|
|
|
93381
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93423
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
|
|
93382
93424
|
var require_renderString2 = __commonJS({
|
|
93383
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93425
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
|
|
93384
93426
|
"use strict";
|
|
93385
93427
|
Object.defineProperty(exports, "__esModule", {
|
|
93386
93428
|
value: true
|
|
@@ -93396,9 +93438,9 @@ var require_renderString2 = __commonJS({
|
|
|
93396
93438
|
}
|
|
93397
93439
|
});
|
|
93398
93440
|
|
|
93399
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93441
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
|
|
93400
93442
|
var require_utils8 = __commonJS({
|
|
93401
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93443
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
|
|
93402
93444
|
"use strict";
|
|
93403
93445
|
Object.defineProperty(exports, "__esModule", {
|
|
93404
93446
|
value: true
|
|
@@ -93413,9 +93455,9 @@ var require_utils8 = __commonJS({
|
|
|
93413
93455
|
}
|
|
93414
93456
|
});
|
|
93415
93457
|
|
|
93416
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93458
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
|
|
93417
93459
|
var require_node5 = __commonJS({
|
|
93418
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93460
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
|
|
93419
93461
|
"use strict";
|
|
93420
93462
|
Object.defineProperty(exports, "__esModule", {
|
|
93421
93463
|
value: true
|
|
@@ -93473,9 +93515,9 @@ var require_node5 = __commonJS({
|
|
|
93473
93515
|
}
|
|
93474
93516
|
});
|
|
93475
93517
|
|
|
93476
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93518
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
|
|
93477
93519
|
var require_constant = __commonJS({
|
|
93478
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93520
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
|
|
93479
93521
|
"use strict";
|
|
93480
93522
|
Object.defineProperty(exports, "__esModule", {
|
|
93481
93523
|
value: true
|
|
@@ -93486,9 +93528,9 @@ var require_constant = __commonJS({
|
|
|
93486
93528
|
}
|
|
93487
93529
|
});
|
|
93488
93530
|
|
|
93489
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93531
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
|
|
93490
93532
|
var require_node6 = __commonJS({
|
|
93491
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93533
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
|
|
93492
93534
|
"use strict";
|
|
93493
93535
|
Object.defineProperty(exports, "__esModule", {
|
|
93494
93536
|
value: true
|
|
@@ -134847,9 +134889,9 @@ var require_inquirer = __commonJS({
|
|
|
134847
134889
|
}
|
|
134848
134890
|
});
|
|
134849
134891
|
|
|
134850
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
134892
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
|
|
134851
134893
|
var require_transform = __commonJS({
|
|
134852
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
134894
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
|
|
134853
134895
|
"use strict";
|
|
134854
134896
|
Object.defineProperty(exports, "__esModule", {
|
|
134855
134897
|
value: true
|
|
@@ -135018,9 +135060,9 @@ var require_transform = __commonJS({
|
|
|
135018
135060
|
}
|
|
135019
135061
|
});
|
|
135020
135062
|
|
|
135021
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135063
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
|
|
135022
135064
|
var require_prompt2 = __commonJS({
|
|
135023
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135065
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
|
|
135024
135066
|
"use strict";
|
|
135025
135067
|
Object.defineProperty(exports, "__esModule", {
|
|
135026
135068
|
value: true
|
|
@@ -135158,9 +135200,9 @@ var require_prompt2 = __commonJS({
|
|
|
135158
135200
|
}
|
|
135159
135201
|
});
|
|
135160
135202
|
|
|
135161
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135203
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
|
|
135162
135204
|
var require_inquirer2 = __commonJS({
|
|
135163
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135205
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
|
|
135164
135206
|
"use strict";
|
|
135165
135207
|
Object.defineProperty(exports, "__esModule", {
|
|
135166
135208
|
value: true
|
|
@@ -135232,9 +135274,9 @@ var require_inquirer2 = __commonJS({
|
|
|
135232
135274
|
}
|
|
135233
135275
|
});
|
|
135234
135276
|
|
|
135235
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135277
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
|
|
135236
135278
|
var require_node7 = __commonJS({
|
|
135237
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135279
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
|
|
135238
135280
|
"use strict";
|
|
135239
135281
|
Object.defineProperty(exports, "__esModule", {
|
|
135240
135282
|
value: true
|
|
@@ -138047,9 +138089,9 @@ var require_node8 = __commonJS({
|
|
|
138047
138089
|
}
|
|
138048
138090
|
});
|
|
138049
138091
|
|
|
138050
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138092
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
|
|
138051
138093
|
var require_zh = __commonJS({
|
|
138052
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138094
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
|
|
138053
138095
|
"use strict";
|
|
138054
138096
|
Object.defineProperty(exports, "__esModule", {
|
|
138055
138097
|
value: true
|
|
@@ -138084,9 +138126,9 @@ var require_zh = __commonJS({
|
|
|
138084
138126
|
}
|
|
138085
138127
|
});
|
|
138086
138128
|
|
|
138087
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138129
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
|
|
138088
138130
|
var require_en = __commonJS({
|
|
138089
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138131
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
|
|
138090
138132
|
"use strict";
|
|
138091
138133
|
Object.defineProperty(exports, "__esModule", {
|
|
138092
138134
|
value: true
|
|
@@ -138121,9 +138163,9 @@ var require_en = __commonJS({
|
|
|
138121
138163
|
}
|
|
138122
138164
|
});
|
|
138123
138165
|
|
|
138124
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138166
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
|
|
138125
138167
|
var require_locale = __commonJS({
|
|
138126
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138168
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
|
|
138127
138169
|
"use strict";
|
|
138128
138170
|
Object.defineProperty(exports, "__esModule", {
|
|
138129
138171
|
value: true
|
|
@@ -138148,9 +138190,9 @@ var require_locale = __commonJS({
|
|
|
138148
138190
|
}
|
|
138149
138191
|
});
|
|
138150
138192
|
|
|
138151
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138193
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
|
|
138152
138194
|
var require_transform2 = __commonJS({
|
|
138153
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138195
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
|
|
138154
138196
|
"use strict";
|
|
138155
138197
|
Object.defineProperty(exports, "__esModule", {
|
|
138156
138198
|
value: true
|
|
@@ -138185,9 +138227,9 @@ var require_transform2 = __commonJS({
|
|
|
138185
138227
|
}
|
|
138186
138228
|
});
|
|
138187
138229
|
|
|
138188
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138230
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
|
|
138189
138231
|
var require_checkUseNvm = __commonJS({
|
|
138190
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138232
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
|
|
138191
138233
|
"use strict";
|
|
138192
138234
|
Object.defineProperty(exports, "__esModule", {
|
|
138193
138235
|
value: true
|
|
@@ -138250,9 +138292,9 @@ var require_checkUseNvm = __commonJS({
|
|
|
138250
138292
|
}
|
|
138251
138293
|
});
|
|
138252
138294
|
|
|
138253
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138295
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
|
|
138254
138296
|
var require_node9 = __commonJS({
|
|
138255
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138297
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
|
|
138256
138298
|
"use strict";
|
|
138257
138299
|
Object.defineProperty(exports, "__esModule", {
|
|
138258
138300
|
value: true
|
|
@@ -138306,13 +138348,13 @@ var require_node9 = __commonJS({
|
|
|
138306
138348
|
var AppAPI2 = class {
|
|
138307
138349
|
constructor(generatorContext, generatorCore) {
|
|
138308
138350
|
_defineProperty(this, "i18n", _locale.i18n);
|
|
138309
|
-
_defineProperty(this, "generatorCore", void 0);
|
|
138310
|
-
_defineProperty(this, "generatorContext", void 0);
|
|
138311
138351
|
_defineProperty(this, "npmApi", void 0);
|
|
138312
138352
|
_defineProperty(this, "gitApi", void 0);
|
|
138313
138353
|
_defineProperty(this, "handlebarsAPI", void 0);
|
|
138314
138354
|
_defineProperty(this, "ejsAPI", void 0);
|
|
138315
138355
|
_defineProperty(this, "fsAPI", void 0);
|
|
138356
|
+
_defineProperty(this, "generatorCore", void 0);
|
|
138357
|
+
_defineProperty(this, "generatorContext", void 0);
|
|
138316
138358
|
this.generatorCore = generatorCore;
|
|
138317
138359
|
this.generatorContext = generatorContext;
|
|
138318
138360
|
this.npmApi = new _codesmithApiNpm.NpmAPI(generatorCore);
|
|
@@ -138372,6 +138414,7 @@ var require_node9 = __commonJS({
|
|
|
138372
138414
|
yield intallPromise;
|
|
138373
138415
|
this.generatorCore.logger.info(_locale.i18n.t(_locale.localeKeys.install.success));
|
|
138374
138416
|
} catch (e) {
|
|
138417
|
+
this.generatorCore.logger.warn(e);
|
|
138375
138418
|
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.install.failed, {
|
|
138376
138419
|
command: command || `${packageManager} install`
|
|
138377
138420
|
}));
|
|
@@ -139403,9 +139446,9 @@ var require_dist3 = __commonJS({
|
|
|
139403
139446
|
}
|
|
139404
139447
|
});
|
|
139405
139448
|
|
|
139406
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139449
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js
|
|
139407
139450
|
var require_utils12 = __commonJS({
|
|
139408
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139451
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js"(exports) {
|
|
139409
139452
|
"use strict";
|
|
139410
139453
|
Object.defineProperty(exports, "__esModule", {
|
|
139411
139454
|
value: true
|
|
@@ -139427,9 +139470,9 @@ var require_utils12 = __commonJS({
|
|
|
139427
139470
|
}
|
|
139428
139471
|
});
|
|
139429
139472
|
|
|
139430
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139473
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js
|
|
139431
139474
|
var require_node10 = __commonJS({
|
|
139432
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139475
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js"(exports) {
|
|
139433
139476
|
"use strict";
|
|
139434
139477
|
Object.defineProperty(exports, "__esModule", {
|
|
139435
139478
|
value: true
|
|
@@ -139659,7 +139702,7 @@ var ZH_LOCALE = {
|
|
|
139659
139702
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
139660
139703
|
proxy: "启用「全局代理」",
|
|
139661
139704
|
swc: "启用「SWC 编译」",
|
|
139662
|
-
rspack: "启用「
|
|
139705
|
+
rspack: "启用「Rspack 构建」(实验性)"
|
|
139663
139706
|
},
|
|
139664
139707
|
element: {
|
|
139665
139708
|
self: "创建工程元素",
|
|
@@ -139713,7 +139756,7 @@ var ZH_LOCALE = {
|
|
|
139713
139756
|
buildTools: {
|
|
139714
139757
|
self: "请选择构建工具",
|
|
139715
139758
|
webpack: "webpack",
|
|
139716
|
-
rspack: "
|
|
139759
|
+
rspack: "Rspack (实验性)"
|
|
139717
139760
|
}
|
|
139718
139761
|
};
|
|
139719
139762
|
|
|
@@ -139756,7 +139799,7 @@ var EN_LOCALE = {
|
|
|
139756
139799
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
139757
139800
|
proxy: "Enable Global Proxy",
|
|
139758
139801
|
swc: "Enable SWC Compile",
|
|
139759
|
-
rspack: "Enable
|
|
139802
|
+
rspack: "Enable Rspack Build (experimental)"
|
|
139760
139803
|
},
|
|
139761
139804
|
element: {
|
|
139762
139805
|
self: "Create project element",
|
|
@@ -139810,7 +139853,7 @@ var EN_LOCALE = {
|
|
|
139810
139853
|
buildTools: {
|
|
139811
139854
|
self: "Build Tools",
|
|
139812
139855
|
webpack: "webpack",
|
|
139813
|
-
rspack: "
|
|
139856
|
+
rspack: "Rspack (experimental)"
|
|
139814
139857
|
}
|
|
139815
139858
|
};
|
|
139816
139859
|
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@modern-js/server-generator",
|
|
3
3
|
"description": "A Progressive React Framework for modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
|
-
"bugs": "https://github.com/
|
|
6
|
-
"repository": "
|
|
5
|
+
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
|
|
6
|
+
"repository": "web-infra-dev/modern.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "3.0.
|
|
14
|
+
"version": "3.0.10",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./src/index.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/runtime": "^7.18.0",
|
|
24
|
-
"@modern-js/codesmith": "2.0.
|
|
25
|
-
"@modern-js/codesmith-api-app": "2.0.
|
|
26
|
-
"@modern-js/codesmith-api-json": "2.0.
|
|
24
|
+
"@modern-js/codesmith": "2.0.5",
|
|
25
|
+
"@modern-js/codesmith-api-app": "2.0.5",
|
|
26
|
+
"@modern-js/codesmith-api-json": "2.0.5",
|
|
27
27
|
"@types/jest": "^27",
|
|
28
28
|
"@types/node": "^14",
|
|
29
29
|
"jest": "^27",
|
|
30
30
|
"typescript": "^4",
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@modern-js/generator
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
31
|
+
"@scripts/build": "2.8.0",
|
|
32
|
+
"@scripts/jest-config": "2.8.0",
|
|
33
|
+
"@modern-js/dependence-generator": "3.0.10",
|
|
34
|
+
"@modern-js/generator-utils": "3.0.10",
|
|
35
|
+
"@modern-js/generator-common": "3.0.10"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"publishConfig": {
|