@modern-js/ssg-generator 3.0.9 → 3.0.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/README.md +2 -2
- package/dist/index.js +157 -114
- 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
@@ -44651,9 +44651,9 @@ var require_src2 = __commonJS({
|
|
44651
44651
|
}
|
44652
44652
|
});
|
44653
44653
|
|
44654
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44654
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
|
44655
44655
|
var require_env = __commonJS({
|
44656
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44656
|
+
"../../../../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) {
|
44657
44657
|
"use strict";
|
44658
44658
|
Object.defineProperty(exports, "__esModule", {
|
44659
44659
|
value: true
|
@@ -44715,9 +44715,9 @@ var require_env = __commonJS({
|
|
44715
44715
|
}
|
44716
44716
|
});
|
44717
44717
|
|
44718
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44718
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
|
44719
44719
|
var require_install = __commonJS({
|
44720
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44720
|
+
"../../../../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) {
|
44721
44721
|
"use strict";
|
44722
44722
|
Object.defineProperty(exports, "__esModule", {
|
44723
44723
|
value: true
|
@@ -44869,9 +44869,9 @@ var require_install = __commonJS({
|
|
44869
44869
|
}
|
44870
44870
|
});
|
44871
44871
|
|
44872
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44872
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
|
44873
44873
|
var require_utils = __commonJS({
|
44874
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44874
|
+
"../../../../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) {
|
44875
44875
|
"use strict";
|
44876
44876
|
Object.defineProperty(exports, "__esModule", {
|
44877
44877
|
value: true
|
@@ -44935,9 +44935,9 @@ var require_utils = __commonJS({
|
|
44935
44935
|
}
|
44936
44936
|
});
|
44937
44937
|
|
44938
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44938
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
|
44939
44939
|
var require_node = __commonJS({
|
44940
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
44940
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
|
44941
44941
|
"use strict";
|
44942
44942
|
Object.defineProperty(exports, "__esModule", {
|
44943
44943
|
value: true
|
@@ -45012,9 +45012,9 @@ var require_node = __commonJS({
|
|
45012
45012
|
}
|
45013
45013
|
});
|
45014
45014
|
|
45015
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
45015
|
+
// ../../../../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
|
45016
45016
|
var require_utils2 = __commonJS({
|
45017
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
45017
|
+
"../../../../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) {
|
45018
45018
|
"use strict";
|
45019
45019
|
Object.defineProperty(exports, "__esModule", {
|
45020
45020
|
value: true
|
@@ -45089,9 +45089,9 @@ var require_utils2 = __commonJS({
|
|
45089
45089
|
}
|
45090
45090
|
});
|
45091
45091
|
|
45092
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
45092
|
+
// ../../../../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
|
45093
45093
|
var require_node2 = __commonJS({
|
45094
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
45094
|
+
"../../../../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) {
|
45095
45095
|
"use strict";
|
45096
45096
|
Object.defineProperty(exports, "__esModule", {
|
45097
45097
|
value: true
|
@@ -45170,9 +45170,9 @@ var require_node2 = __commonJS({
|
|
45170
45170
|
}
|
45171
45171
|
});
|
45172
45172
|
|
45173
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45173
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
|
45174
45174
|
var require_constants2 = __commonJS({
|
45175
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45175
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
|
45176
45176
|
"use strict";
|
45177
45177
|
Object.defineProperty(exports, "__esModule", {
|
45178
45178
|
value: true
|
@@ -45193,9 +45193,9 @@ var require_constants2 = __commonJS({
|
|
45193
45193
|
}
|
45194
45194
|
});
|
45195
45195
|
|
45196
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45196
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
|
45197
45197
|
var require_logger2 = __commonJS({
|
45198
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45198
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
|
45199
45199
|
"use strict";
|
45200
45200
|
Object.defineProperty(exports, "__esModule", {
|
45201
45201
|
value: true
|
@@ -45263,9 +45263,9 @@ var require_logger2 = __commonJS({
|
|
45263
45263
|
}
|
45264
45264
|
});
|
45265
45265
|
|
45266
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45266
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
|
45267
45267
|
var require_constants3 = __commonJS({
|
45268
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45268
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
|
45269
45269
|
"use strict";
|
45270
45270
|
Object.defineProperty(exports, "__esModule", {
|
45271
45271
|
value: true
|
@@ -45276,9 +45276,9 @@ var require_constants3 = __commonJS({
|
|
45276
45276
|
}
|
45277
45277
|
});
|
45278
45278
|
|
45279
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45279
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
|
45280
45280
|
var require_FsResource = __commonJS({
|
45281
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45281
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
|
45282
45282
|
"use strict";
|
45283
45283
|
Object.defineProperty(exports, "__esModule", {
|
45284
45284
|
value: true
|
@@ -45329,9 +45329,9 @@ var require_FsResource = __commonJS({
|
|
45329
45329
|
}
|
45330
45330
|
});
|
45331
45331
|
|
45332
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45332
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
|
45333
45333
|
var require_FsMaterial = __commonJS({
|
45334
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45334
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
|
45335
45335
|
"use strict";
|
45336
45336
|
Object.defineProperty(exports, "__esModule", {
|
45337
45337
|
value: true
|
@@ -45383,9 +45383,9 @@ var require_FsMaterial = __commonJS({
|
|
45383
45383
|
}
|
45384
45384
|
});
|
45385
45385
|
|
45386
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45386
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
|
45387
45387
|
var require_nodeRequire = __commonJS({
|
45388
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45388
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
|
45389
45389
|
"use strict";
|
45390
45390
|
Object.defineProperty(exports, "__esModule", {
|
45391
45391
|
value: true
|
@@ -45410,9 +45410,9 @@ var require_nodeRequire = __commonJS({
|
|
45410
45410
|
}
|
45411
45411
|
});
|
45412
45412
|
|
45413
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45413
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
|
45414
45414
|
var require_fsExists = __commonJS({
|
45415
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45415
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
|
45416
45416
|
"use strict";
|
45417
45417
|
Object.defineProperty(exports, "__esModule", {
|
45418
45418
|
value: true
|
@@ -45432,9 +45432,9 @@ var require_fsExists = __commonJS({
|
|
45432
45432
|
}
|
45433
45433
|
});
|
45434
45434
|
|
45435
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45435
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
|
45436
45436
|
var require_getGeneratorDir = __commonJS({
|
45437
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45437
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
|
45438
45438
|
"use strict";
|
45439
45439
|
Object.defineProperty(exports, "__esModule", {
|
45440
45440
|
value: true
|
@@ -45468,9 +45468,9 @@ var require_getGeneratorDir = __commonJS({
|
|
45468
45468
|
}
|
45469
45469
|
});
|
45470
45470
|
|
45471
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45471
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
|
45472
45472
|
var require_generator = __commonJS({
|
45473
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45473
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
|
45474
45474
|
"use strict";
|
45475
45475
|
Object.defineProperty(exports, "__esModule", {
|
45476
45476
|
value: true
|
@@ -45718,9 +45718,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
45718
45718
|
}
|
45719
45719
|
});
|
45720
45720
|
|
45721
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45721
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
|
45722
45722
|
var require_packageManager = __commonJS({
|
45723
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45723
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
|
45724
45724
|
"use strict";
|
45725
45725
|
Object.defineProperty(exports, "__esModule", {
|
45726
45726
|
value: true
|
@@ -45798,9 +45798,9 @@ var require_packageManager = __commonJS({
|
|
45798
45798
|
}
|
45799
45799
|
});
|
45800
45800
|
|
45801
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45801
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
|
45802
45802
|
var require_timeoutPromise = __commonJS({
|
45803
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
45803
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
|
45804
45804
|
"use strict";
|
45805
45805
|
Object.defineProperty(exports, "__esModule", {
|
45806
45806
|
value: true
|
@@ -53626,9 +53626,9 @@ var require_tar = __commonJS({
|
|
53626
53626
|
}
|
53627
53627
|
});
|
53628
53628
|
|
53629
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53629
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
|
53630
53630
|
var require_constants5 = __commonJS({
|
53631
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53631
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
|
53632
53632
|
"use strict";
|
53633
53633
|
Object.defineProperty(exports, "__esModule", {
|
53634
53634
|
value: true
|
@@ -53641,9 +53641,9 @@ var require_constants5 = __commonJS({
|
|
53641
53641
|
}
|
53642
53642
|
});
|
53643
53643
|
|
53644
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53644
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
|
53645
53645
|
var require_getNpmTarballUrl = __commonJS({
|
53646
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53646
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
|
53647
53647
|
"use strict";
|
53648
53648
|
Object.defineProperty(exports, "__esModule", {
|
53649
53649
|
value: true
|
@@ -53677,9 +53677,9 @@ var require_getNpmTarballUrl = __commonJS({
|
|
53677
53677
|
}
|
53678
53678
|
});
|
53679
53679
|
|
53680
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53680
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
|
53681
53681
|
var require_getNpmVersion = __commonJS({
|
53682
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53682
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
|
53683
53683
|
"use strict";
|
53684
53684
|
Object.defineProperty(exports, "__esModule", {
|
53685
53685
|
value: true
|
@@ -53715,9 +53715,9 @@ var require_getNpmVersion = __commonJS({
|
|
53715
53715
|
}
|
53716
53716
|
});
|
53717
53717
|
|
53718
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53718
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
|
53719
53719
|
var require_downloadPackage = __commonJS({
|
53720
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53720
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
|
53721
53721
|
"use strict";
|
53722
53722
|
Object.defineProperty(exports, "__esModule", {
|
53723
53723
|
value: true
|
@@ -53819,9 +53819,9 @@ var require_downloadPackage = __commonJS({
|
|
53819
53819
|
}
|
53820
53820
|
});
|
53821
53821
|
|
53822
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53822
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
|
53823
53823
|
var require_getPackageInfo = __commonJS({
|
53824
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53824
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
|
53825
53825
|
"use strict";
|
53826
53826
|
Object.defineProperty(exports, "__esModule", {
|
53827
53827
|
value: true
|
@@ -53853,9 +53853,9 @@ var require_getPackageInfo = __commonJS({
|
|
53853
53853
|
}
|
53854
53854
|
});
|
53855
53855
|
|
53856
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53856
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
|
53857
53857
|
var require_utils4 = __commonJS({
|
53858
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53858
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
|
53859
53859
|
"use strict";
|
53860
53860
|
Object.defineProperty(exports, "__esModule", {
|
53861
53861
|
value: true
|
@@ -53931,9 +53931,9 @@ var require_utils4 = __commonJS({
|
|
53931
53931
|
}
|
53932
53932
|
});
|
53933
53933
|
|
53934
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53934
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
|
53935
53935
|
var require_materials = __commonJS({
|
53936
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53936
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
|
53937
53937
|
"use strict";
|
53938
53938
|
Object.defineProperty(exports, "__esModule", {
|
53939
53939
|
value: true
|
@@ -53991,9 +53991,9 @@ var require_materials = __commonJS({
|
|
53991
53991
|
}
|
53992
53992
|
});
|
53993
53993
|
|
53994
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53994
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
|
53995
53995
|
var require_codesmith = __commonJS({
|
53996
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
53996
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
|
53997
53997
|
"use strict";
|
53998
53998
|
Object.defineProperty(exports, "__esModule", {
|
53999
53999
|
value: true
|
@@ -54069,9 +54069,9 @@ var require_codesmith = __commonJS({
|
|
54069
54069
|
}
|
54070
54070
|
});
|
54071
54071
|
|
54072
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
54072
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
|
54073
54073
|
var require_node3 = __commonJS({
|
54074
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
54074
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
|
54075
54075
|
"use strict";
|
54076
54076
|
Object.defineProperty(exports, "__esModule", {
|
54077
54077
|
value: true
|
@@ -60025,9 +60025,9 @@ var require_lib = __commonJS({
|
|
60025
60025
|
}
|
60026
60026
|
});
|
60027
60027
|
|
60028
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60028
|
+
// ../../../../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
|
60029
60029
|
var require_renderString = __commonJS({
|
60030
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60030
|
+
"../../../../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) {
|
60031
60031
|
"use strict";
|
60032
60032
|
Object.defineProperty(exports, "__esModule", {
|
60033
60033
|
value: true
|
@@ -60076,9 +60076,9 @@ var require_renderString = __commonJS({
|
|
60076
60076
|
}
|
60077
60077
|
});
|
60078
60078
|
|
60079
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60079
|
+
// ../../../../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
|
60080
60080
|
var require_utils6 = __commonJS({
|
60081
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60081
|
+
"../../../../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) {
|
60082
60082
|
"use strict";
|
60083
60083
|
Object.defineProperty(exports, "__esModule", {
|
60084
60084
|
value: true
|
@@ -60093,9 +60093,9 @@ var require_utils6 = __commonJS({
|
|
60093
60093
|
}
|
60094
60094
|
});
|
60095
60095
|
|
60096
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60096
|
+
// ../../../../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
|
60097
60097
|
var require_node4 = __commonJS({
|
60098
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
60098
|
+
"../../../../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) {
|
60099
60099
|
"use strict";
|
60100
60100
|
Object.defineProperty(exports, "__esModule", {
|
60101
60101
|
value: true
|
@@ -60109,6 +60109,27 @@ var require_node4 = __commonJS({
|
|
60109
60109
|
});
|
60110
60110
|
var _codesmith = require_node3();
|
60111
60111
|
var _utils = require_utils6();
|
60112
|
+
function ownKeys(object, enumerableOnly) {
|
60113
|
+
var keys = Object.keys(object);
|
60114
|
+
if (Object.getOwnPropertySymbols) {
|
60115
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
60116
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
60117
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
60118
|
+
})), keys.push.apply(keys, symbols);
|
60119
|
+
}
|
60120
|
+
return keys;
|
60121
|
+
}
|
60122
|
+
function _objectSpread(target) {
|
60123
|
+
for (var i = 1; i < arguments.length; i++) {
|
60124
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
60125
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
60126
|
+
_defineProperty(target, key, source[key]);
|
60127
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
60128
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
60129
|
+
});
|
60130
|
+
}
|
60131
|
+
return target;
|
60132
|
+
}
|
60112
60133
|
function _defineProperty(obj, key, value) {
|
60113
60134
|
if (key in obj) {
|
60114
60135
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
@@ -60127,6 +60148,16 @@ var require_node4 = __commonJS({
|
|
60127
60148
|
partials: {}
|
60128
60149
|
};
|
60129
60150
|
}
|
60151
|
+
registerHelp(helpers) {
|
60152
|
+
return __async(this, null, function* () {
|
60153
|
+
this.registers.helpers = _objectSpread(_objectSpread({}, this.registers.helpers), helpers);
|
60154
|
+
});
|
60155
|
+
}
|
60156
|
+
registerPartials(partials) {
|
60157
|
+
return __async(this, null, function* () {
|
60158
|
+
this.registers.partials = _objectSpread(_objectSpread({}, this.registers.partials), partials);
|
60159
|
+
});
|
60160
|
+
}
|
60130
60161
|
renderTemplate(_0, _1) {
|
60131
60162
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
60132
60163
|
if (templateResource._type !== _codesmith.FS_RESOURCE) {
|
@@ -60868,9 +60899,9 @@ var require_ejs = __commonJS({
|
|
60868
60899
|
}
|
60869
60900
|
});
|
60870
60901
|
|
60871
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60902
|
+
// ../../../../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
|
60872
60903
|
var require_renderString2 = __commonJS({
|
60873
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60904
|
+
"../../../../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) {
|
60874
60905
|
"use strict";
|
60875
60906
|
Object.defineProperty(exports, "__esModule", {
|
60876
60907
|
value: true
|
@@ -60886,9 +60917,9 @@ var require_renderString2 = __commonJS({
|
|
60886
60917
|
}
|
60887
60918
|
});
|
60888
60919
|
|
60889
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60920
|
+
// ../../../../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
|
60890
60921
|
var require_utils8 = __commonJS({
|
60891
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60922
|
+
"../../../../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) {
|
60892
60923
|
"use strict";
|
60893
60924
|
Object.defineProperty(exports, "__esModule", {
|
60894
60925
|
value: true
|
@@ -60903,9 +60934,9 @@ var require_utils8 = __commonJS({
|
|
60903
60934
|
}
|
60904
60935
|
});
|
60905
60936
|
|
60906
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60937
|
+
// ../../../../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
|
60907
60938
|
var require_node5 = __commonJS({
|
60908
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
60939
|
+
"../../../../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) {
|
60909
60940
|
"use strict";
|
60910
60941
|
Object.defineProperty(exports, "__esModule", {
|
60911
60942
|
value: true
|
@@ -60963,9 +60994,9 @@ var require_node5 = __commonJS({
|
|
60963
60994
|
}
|
60964
60995
|
});
|
60965
60996
|
|
60966
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
60997
|
+
// ../../../../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
|
60967
60998
|
var require_constant = __commonJS({
|
60968
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
60999
|
+
"../../../../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) {
|
60969
61000
|
"use strict";
|
60970
61001
|
Object.defineProperty(exports, "__esModule", {
|
60971
61002
|
value: true
|
@@ -60976,9 +61007,9 @@ var require_constant = __commonJS({
|
|
60976
61007
|
}
|
60977
61008
|
});
|
60978
61009
|
|
60979
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
61010
|
+
// ../../../../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
|
60980
61011
|
var require_node6 = __commonJS({
|
60981
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
61012
|
+
"../../../../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) {
|
60982
61013
|
"use strict";
|
60983
61014
|
Object.defineProperty(exports, "__esModule", {
|
60984
61015
|
value: true
|
@@ -102337,9 +102368,9 @@ var require_inquirer = __commonJS({
|
|
102337
102368
|
}
|
102338
102369
|
});
|
102339
102370
|
|
102340
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102371
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
|
102341
102372
|
var require_transform = __commonJS({
|
102342
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102373
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
|
102343
102374
|
"use strict";
|
102344
102375
|
Object.defineProperty(exports, "__esModule", {
|
102345
102376
|
value: true
|
@@ -102508,9 +102539,9 @@ var require_transform = __commonJS({
|
|
102508
102539
|
}
|
102509
102540
|
});
|
102510
102541
|
|
102511
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102542
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
|
102512
102543
|
var require_prompt2 = __commonJS({
|
102513
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102544
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
|
102514
102545
|
"use strict";
|
102515
102546
|
Object.defineProperty(exports, "__esModule", {
|
102516
102547
|
value: true
|
@@ -102648,9 +102679,9 @@ var require_prompt2 = __commonJS({
|
|
102648
102679
|
}
|
102649
102680
|
});
|
102650
102681
|
|
102651
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102682
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
|
102652
102683
|
var require_inquirer2 = __commonJS({
|
102653
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102684
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
|
102654
102685
|
"use strict";
|
102655
102686
|
Object.defineProperty(exports, "__esModule", {
|
102656
102687
|
value: true
|
@@ -102722,9 +102753,9 @@ var require_inquirer2 = __commonJS({
|
|
102722
102753
|
}
|
102723
102754
|
});
|
102724
102755
|
|
102725
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102756
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
|
102726
102757
|
var require_node7 = __commonJS({
|
102727
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
102758
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
|
102728
102759
|
"use strict";
|
102729
102760
|
Object.defineProperty(exports, "__esModule", {
|
102730
102761
|
value: true
|
@@ -105537,9 +105568,9 @@ var require_node8 = __commonJS({
|
|
105537
105568
|
}
|
105538
105569
|
});
|
105539
105570
|
|
105540
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105571
|
+
// ../../../../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
|
105541
105572
|
var require_zh = __commonJS({
|
105542
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105573
|
+
"../../../../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) {
|
105543
105574
|
"use strict";
|
105544
105575
|
Object.defineProperty(exports, "__esModule", {
|
105545
105576
|
value: true
|
@@ -105574,9 +105605,9 @@ var require_zh = __commonJS({
|
|
105574
105605
|
}
|
105575
105606
|
});
|
105576
105607
|
|
105577
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105608
|
+
// ../../../../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
|
105578
105609
|
var require_en = __commonJS({
|
105579
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105610
|
+
"../../../../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) {
|
105580
105611
|
"use strict";
|
105581
105612
|
Object.defineProperty(exports, "__esModule", {
|
105582
105613
|
value: true
|
@@ -105611,9 +105642,9 @@ var require_en = __commonJS({
|
|
105611
105642
|
}
|
105612
105643
|
});
|
105613
105644
|
|
105614
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105645
|
+
// ../../../../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
|
105615
105646
|
var require_locale = __commonJS({
|
105616
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105647
|
+
"../../../../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) {
|
105617
105648
|
"use strict";
|
105618
105649
|
Object.defineProperty(exports, "__esModule", {
|
105619
105650
|
value: true
|
@@ -105638,9 +105669,9 @@ var require_locale = __commonJS({
|
|
105638
105669
|
}
|
105639
105670
|
});
|
105640
105671
|
|
105641
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105672
|
+
// ../../../../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
|
105642
105673
|
var require_transform2 = __commonJS({
|
105643
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105674
|
+
"../../../../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) {
|
105644
105675
|
"use strict";
|
105645
105676
|
Object.defineProperty(exports, "__esModule", {
|
105646
105677
|
value: true
|
@@ -105675,9 +105706,9 @@ var require_transform2 = __commonJS({
|
|
105675
105706
|
}
|
105676
105707
|
});
|
105677
105708
|
|
105678
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105709
|
+
// ../../../../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
|
105679
105710
|
var require_checkUseNvm = __commonJS({
|
105680
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105711
|
+
"../../../../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) {
|
105681
105712
|
"use strict";
|
105682
105713
|
Object.defineProperty(exports, "__esModule", {
|
105683
105714
|
value: true
|
@@ -105740,9 +105771,9 @@ var require_checkUseNvm = __commonJS({
|
|
105740
105771
|
}
|
105741
105772
|
});
|
105742
105773
|
|
105743
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105774
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
|
105744
105775
|
var require_node9 = __commonJS({
|
105745
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
105776
|
+
"../../../../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) {
|
105746
105777
|
"use strict";
|
105747
105778
|
Object.defineProperty(exports, "__esModule", {
|
105748
105779
|
value: true
|
@@ -105796,13 +105827,13 @@ var require_node9 = __commonJS({
|
|
105796
105827
|
var AppAPI2 = class {
|
105797
105828
|
constructor(generatorContext, generatorCore) {
|
105798
105829
|
_defineProperty(this, "i18n", _locale.i18n);
|
105799
|
-
_defineProperty(this, "generatorCore", void 0);
|
105800
|
-
_defineProperty(this, "generatorContext", void 0);
|
105801
105830
|
_defineProperty(this, "npmApi", void 0);
|
105802
105831
|
_defineProperty(this, "gitApi", void 0);
|
105803
105832
|
_defineProperty(this, "handlebarsAPI", void 0);
|
105804
105833
|
_defineProperty(this, "ejsAPI", void 0);
|
105805
105834
|
_defineProperty(this, "fsAPI", void 0);
|
105835
|
+
_defineProperty(this, "generatorCore", void 0);
|
105836
|
+
_defineProperty(this, "generatorContext", void 0);
|
105806
105837
|
this.generatorCore = generatorCore;
|
105807
105838
|
this.generatorContext = generatorContext;
|
105808
105839
|
this.npmApi = new _codesmithApiNpm.NpmAPI(generatorCore);
|
@@ -105862,6 +105893,7 @@ var require_node9 = __commonJS({
|
|
105862
105893
|
yield intallPromise;
|
105863
105894
|
this.generatorCore.logger.info(_locale.i18n.t(_locale.localeKeys.install.success));
|
105864
105895
|
} catch (e) {
|
105896
|
+
this.generatorCore.logger.warn(e);
|
105865
105897
|
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.install.failed, {
|
105866
105898
|
command: command || `${packageManager} install`
|
105867
105899
|
}));
|
@@ -135808,8 +135840,10 @@ var require_is2 = __commonJS({
|
|
135808
135840
|
isEmpty: () => isEmpty2,
|
135809
135841
|
isFastRefresh: () => isFastRefresh,
|
135810
135842
|
isRouterV5: () => isRouterV5,
|
135843
|
+
isSSGEntry: () => isSSGEntry,
|
135811
135844
|
isSSR: () => isSSR,
|
135812
135845
|
isServiceWorker: () => isServiceWorker,
|
135846
|
+
isSingleEntry: () => isSingleEntry,
|
135813
135847
|
isTypescript: () => isTypescript,
|
135814
135848
|
isUseSSRBundle: () => isUseSSRBundle
|
135815
135849
|
});
|
@@ -135867,6 +135901,12 @@ var require_is2 = __commonJS({
|
|
135867
135901
|
var _a2, _b, _c;
|
135868
135902
|
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";
|
135869
135903
|
};
|
135904
|
+
var isSSGEntry = (config, entryName, entrypoints) => {
|
135905
|
+
const ssgConfig = config.output.ssg;
|
135906
|
+
const useSSG = isSingleEntry(entrypoints) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig == null ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig == null ? void 0 : ssgConfig[entryName]);
|
135907
|
+
return useSSG;
|
135908
|
+
};
|
135909
|
+
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
135870
135910
|
}
|
135871
135911
|
});
|
135872
135912
|
|
@@ -137318,14 +137358,12 @@ var require_prettyInstructions2 = __commonJS({
|
|
137318
137358
|
__export2(prettyInstructions_exports, {
|
137319
137359
|
getAddressUrls: () => getAddressUrls,
|
137320
137360
|
getIpv4Interfaces: () => getIpv4Interfaces,
|
137321
|
-
isSingleEntry: () => isSingleEntry,
|
137322
137361
|
prettyInstructions: () => prettyInstructions
|
137323
137362
|
});
|
137324
137363
|
module2.exports = __toCommonJS2(prettyInstructions_exports);
|
137325
137364
|
var import_os = __toESM2(require("os"));
|
137326
137365
|
var import_compiled = require_compiled2();
|
137327
137366
|
var import_is = require_is2();
|
137328
|
-
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
137329
137367
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
137330
137368
|
var getIpv4Interfaces = () => {
|
137331
137369
|
const interfaces = import_os.default.networkInterfaces();
|
@@ -137364,7 +137402,7 @@ var require_prettyInstructions2 = __commonJS({
|
|
137364
137402
|
);
|
137365
137403
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
137366
137404
|
let message = "App running at:\n\n";
|
137367
|
-
if (isSingleEntry(entrypoints) || apiOnly) {
|
137405
|
+
if ((0, import_is.isSingleEntry)(entrypoints) || apiOnly) {
|
137368
137406
|
message += urls.map(
|
137369
137407
|
({ type, url }) => ` ${import_compiled.chalk.bold(`> ${type.padEnd(10)}`)}${import_compiled.chalk.cyanBright(
|
137370
137408
|
normalizeUrl(`${url}/${routes[0].urlPath}`)
|
@@ -137856,7 +137894,8 @@ var require_analyzeProject2 = __commonJS({
|
|
137856
137894
|
};
|
137857
137895
|
var analyzeProject_exports = {};
|
137858
137896
|
__export2(analyzeProject_exports, {
|
137859
|
-
isApiOnly: () => isApiOnly
|
137897
|
+
isApiOnly: () => isApiOnly,
|
137898
|
+
isWebOnly: () => isWebOnly
|
137860
137899
|
});
|
137861
137900
|
module2.exports = __toCommonJS2(analyzeProject_exports);
|
137862
137901
|
var path3 = __toESM2(require("path"));
|
@@ -137867,6 +137906,10 @@ var require_analyzeProject2 = __commonJS({
|
|
137867
137906
|
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
137868
137907
|
return !existSrc || Boolean(options["api-only"]);
|
137869
137908
|
});
|
137909
|
+
var isWebOnly = () => __async2(void 0, null, function* () {
|
137910
|
+
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
137911
|
+
return Boolean(options["web-only"]);
|
137912
|
+
});
|
137870
137913
|
}
|
137871
137914
|
});
|
137872
137915
|
|
@@ -138634,8 +138677,8 @@ var I18n = class {
|
|
138634
138677
|
var ZH_LOCALE = {
|
138635
138678
|
solution: {
|
138636
138679
|
self: "请选择你想创建的工程类型",
|
138637
|
-
mwa: "应用",
|
138638
|
-
module: "模块",
|
138680
|
+
mwa: "Web 应用",
|
138681
|
+
module: "Npm 模块",
|
138639
138682
|
monorepo: "Monorepo",
|
138640
138683
|
custom: "自定义",
|
138641
138684
|
default: "默认"
|
@@ -138645,10 +138688,10 @@ var ZH_LOCALE = {
|
|
138645
138688
|
},
|
138646
138689
|
sub_solution: {
|
138647
138690
|
self: "请选择你想创建的工程类型",
|
138648
|
-
mwa: "应用",
|
138649
|
-
mwa_test: "应用(测试)",
|
138650
|
-
module: "模块",
|
138651
|
-
inner_module: "模块(内部)"
|
138691
|
+
mwa: "Web 应用",
|
138692
|
+
mwa_test: "Web 应用(测试)",
|
138693
|
+
module: "Npm 模块",
|
138694
|
+
inner_module: "Npm 模块(内部)"
|
138652
138695
|
},
|
138653
138696
|
action: {
|
138654
138697
|
self: "请选择你想要的操作",
|
@@ -138668,7 +138711,7 @@ var ZH_LOCALE = {
|
|
138668
138711
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
138669
138712
|
proxy: "启用「全局代理」",
|
138670
138713
|
swc: "启用「SWC 编译」",
|
138671
|
-
rspack: "启用「
|
138714
|
+
rspack: "启用「Rspack 构建」(实验性)"
|
138672
138715
|
},
|
138673
138716
|
element: {
|
138674
138717
|
self: "创建工程元素",
|
@@ -138722,7 +138765,7 @@ var ZH_LOCALE = {
|
|
138722
138765
|
buildTools: {
|
138723
138766
|
self: "请选择构建工具",
|
138724
138767
|
webpack: "webpack",
|
138725
|
-
rspack: "
|
138768
|
+
rspack: "Rspack (实验性)"
|
138726
138769
|
}
|
138727
138770
|
};
|
138728
138771
|
|
@@ -138730,9 +138773,9 @@ var ZH_LOCALE = {
|
|
138730
138773
|
var EN_LOCALE = {
|
138731
138774
|
solution: {
|
138732
138775
|
self: "Please select the solution you want to create",
|
138733
|
-
mwa: "Web App
|
138734
|
-
module: "Module
|
138735
|
-
monorepo: "Monorepo
|
138776
|
+
mwa: "Web App",
|
138777
|
+
module: "Npm Module",
|
138778
|
+
monorepo: "Monorepo",
|
138736
138779
|
custom: "Custom Solution",
|
138737
138780
|
default: "Default"
|
138738
138781
|
},
|
@@ -138741,11 +138784,11 @@ var EN_LOCALE = {
|
|
138741
138784
|
},
|
138742
138785
|
sub_solution: {
|
138743
138786
|
self: "Please select the solution you want to create",
|
138744
|
-
mwa: "Web App
|
138745
|
-
mwa_test: "Web App
|
138746
|
-
module: "Module
|
138747
|
-
inner_module: "Module
|
138748
|
-
monorepo: "Monorepo
|
138787
|
+
mwa: "Web App",
|
138788
|
+
mwa_test: "Web App (Test)",
|
138789
|
+
module: "Npm Module",
|
138790
|
+
inner_module: "Npm Module (Inner)",
|
138791
|
+
monorepo: "Monorepo"
|
138749
138792
|
},
|
138750
138793
|
action: {
|
138751
138794
|
self: "Action",
|
@@ -138765,7 +138808,7 @@ var EN_LOCALE = {
|
|
138765
138808
|
polyfill: "Enable UA-based Polyfill Feature",
|
138766
138809
|
proxy: "Enable Global Proxy",
|
138767
138810
|
swc: "Enable SWC Compile",
|
138768
|
-
rspack: "Enable
|
138811
|
+
rspack: "Enable Rspack Build (experimental)"
|
138769
138812
|
},
|
138770
138813
|
element: {
|
138771
138814
|
self: "Create project element",
|
@@ -138785,7 +138828,7 @@ var EN_LOCALE = {
|
|
138785
138828
|
self: "Development Language"
|
138786
138829
|
},
|
138787
138830
|
packageManager: {
|
138788
|
-
self: "Package
|
138831
|
+
self: "Package Manager"
|
138789
138832
|
},
|
138790
138833
|
packageName: {
|
138791
138834
|
self: "Package Name",
|
@@ -138817,9 +138860,9 @@ var EN_LOCALE = {
|
|
138817
138860
|
}
|
138818
138861
|
},
|
138819
138862
|
buildTools: {
|
138820
|
-
self: "
|
138863
|
+
self: "Bundler",
|
138821
138864
|
webpack: "webpack",
|
138822
|
-
rspack: "
|
138865
|
+
rspack: "Rspack (experimental)"
|
138823
138866
|
}
|
138824
138867
|
};
|
138825
138868
|
|
package/package.json
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
"name": "@modern-js/ssg-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.11",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/index.js",
|
17
17
|
"files": [
|
@@ -20,18 +20,18 @@
|
|
20
20
|
],
|
21
21
|
"devDependencies": {
|
22
22
|
"@babel/runtime": "^7.18.0",
|
23
|
-
"@modern-js/codesmith": "2.0.
|
24
|
-
"@modern-js/codesmith-api-app": "2.0.
|
23
|
+
"@modern-js/codesmith": "2.0.5",
|
24
|
+
"@modern-js/codesmith-api-app": "2.0.5",
|
25
25
|
"@types/jest": "^27",
|
26
26
|
"@types/node": "^14",
|
27
27
|
"jest": "^27",
|
28
28
|
"typescript": "^4",
|
29
|
-
"@modern-js/
|
30
|
-
"@modern-js/generator
|
31
|
-
"@modern-js/generator-
|
32
|
-
"@modern-js/
|
33
|
-
"@scripts/
|
34
|
-
"@scripts/
|
29
|
+
"@modern-js/plugin-i18n": "2.9.0",
|
30
|
+
"@modern-js/dependence-generator": "3.0.11",
|
31
|
+
"@modern-js/generator-common": "3.0.11",
|
32
|
+
"@modern-js/generator-utils": "3.0.11",
|
33
|
+
"@scripts/build": "2.9.0",
|
34
|
+
"@scripts/jest-config": "2.9.0"
|
35
35
|
},
|
36
36
|
"sideEffects": false,
|
37
37
|
"publishConfig": {
|