@modern-js/ssg-generator 3.1.20 → 3.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -14
- package/package.json +7 -7
package/dist/index.js
CHANGED
@@ -115874,9 +115874,10 @@ var require_prettyInstructions = __commonJS({
|
|
115874
115874
|
}, []);
|
115875
115875
|
};
|
115876
115876
|
var prettyInstructions = (appContext, config) => {
|
115877
|
-
var _config_dev;
|
115877
|
+
var _appContext_builder_context_devServer, _appContext_builder, _config_dev;
|
115878
115878
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
115879
|
-
const
|
115879
|
+
const isHttps = (0, _is.isDev)() && ((_appContext_builder_context_devServer = (_appContext_builder = appContext.builder) === null || _appContext_builder === void 0 ? void 0 : _appContext_builder.context.devServer) === null || _appContext_builder_context_devServer === void 0 ? void 0 : _appContext_builder_context_devServer.https);
|
115880
|
+
const urls = getAddressUrls(isHttps ? "https" : "http", port, (_config_dev = config.dev) === null || _config_dev === void 0 ? void 0 : _config_dev.host);
|
115880
115881
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
115881
115882
|
let message = "App running at:\n\n";
|
115882
115883
|
if ((0, _is.isSingleEntry)(entrypoints) || apiOnly) {
|
@@ -116320,7 +116321,7 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
116320
116321
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
116321
116322
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
116322
116323
|
|
116323
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
116324
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
116324
116325
|
var import_lodash6 = __toESM(require_lodash2());
|
116325
116326
|
var import_comment_json = __toESM(require_src2());
|
116326
116327
|
|
@@ -128421,10 +128422,10 @@ var Schema = (
|
|
128421
128422
|
}()
|
128422
128423
|
);
|
128423
128424
|
|
128424
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128425
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
128425
128426
|
var import_inquirer = __toESM(require_inquirer());
|
128426
128427
|
|
128427
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128428
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
128428
128429
|
var import_lodash2 = __toESM(require_lodash2());
|
128429
128430
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
128430
128431
|
try {
|
@@ -128771,7 +128772,7 @@ function transformForm(schema) {
|
|
128771
128772
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
128772
128773
|
}
|
128773
128774
|
|
128774
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128775
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
128775
128776
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
128776
128777
|
try {
|
128777
128778
|
var info = gen[key](arg);
|
@@ -129295,7 +129296,7 @@ function _prompt() {
|
|
129295
129296
|
return _prompt.apply(this, arguments);
|
129296
129297
|
}
|
129297
129298
|
|
129298
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
129299
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
129299
129300
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
129300
129301
|
try {
|
129301
129302
|
var info = gen[key](arg);
|
@@ -129535,7 +129536,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
129535
129536
|
return CLIReader2;
|
129536
129537
|
}();
|
129537
129538
|
|
129538
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129539
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
129539
129540
|
var import_inquirer2 = __toESM(require_inquirer2());
|
129540
129541
|
|
129541
129542
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -129614,7 +129615,7 @@ var I18n = class {
|
|
129614
129615
|
}
|
129615
129616
|
};
|
129616
129617
|
|
129617
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129618
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
129618
129619
|
var ZH_LOCALE = {
|
129619
129620
|
environment: {
|
129620
129621
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -129641,7 +129642,7 @@ var ZH_LOCALE = {
|
|
129641
129642
|
}
|
129642
129643
|
};
|
129643
129644
|
|
129644
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129645
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
129645
129646
|
var EN_LOCALE = {
|
129646
129647
|
environment: {
|
129647
129648
|
node_version: "please upgrade node to lts version",
|
@@ -129668,14 +129669,14 @@ var EN_LOCALE = {
|
|
129668
129669
|
}
|
129669
129670
|
};
|
129670
129671
|
|
129671
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129672
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
129672
129673
|
var i18n = new I18n();
|
129673
129674
|
var localeKeys = i18n.init("zh", {
|
129674
129675
|
zh: ZH_LOCALE,
|
129675
129676
|
en: EN_LOCALE
|
129676
129677
|
});
|
129677
129678
|
|
129678
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129679
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
129679
129680
|
var import_lodash5 = __toESM(require_lodash2());
|
129680
129681
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
129681
129682
|
try {
|
@@ -129884,7 +129885,7 @@ function transformInquirerSchema(questions) {
|
|
129884
129885
|
return questions;
|
129885
129886
|
}
|
129886
129887
|
|
129887
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129888
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
129888
129889
|
var import_path4 = __toESM(require("path"));
|
129889
129890
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
129890
129891
|
try {
|
@@ -130148,7 +130149,7 @@ function _checkUseNvm() {
|
|
130148
130149
|
return _checkUseNvm.apply(this, arguments);
|
130149
130150
|
}
|
130150
130151
|
|
130151
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
130152
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
130152
130153
|
function _array_like_to_array(arr, len) {
|
130153
130154
|
if (len == null || len > arr.length)
|
130154
130155
|
len = arr.length;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.1.
|
18
|
+
"version": "3.1.21",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -29,12 +29,12 @@
|
|
29
29
|
"@types/node": "^14",
|
30
30
|
"jest": "^29",
|
31
31
|
"typescript": "^5",
|
32
|
-
"@modern-js/dependence-generator": "3.1.
|
33
|
-
"@modern-js/
|
34
|
-
"@modern-js/generator-
|
35
|
-
"@modern-js/
|
36
|
-
"@scripts/
|
37
|
-
"@scripts/
|
32
|
+
"@modern-js/dependence-generator": "3.1.21",
|
33
|
+
"@modern-js/plugin-i18n": "2.22.1",
|
34
|
+
"@modern-js/generator-common": "3.1.21",
|
35
|
+
"@modern-js/generator-utils": "3.1.21",
|
36
|
+
"@scripts/jest-config": "2.22.1",
|
37
|
+
"@scripts/build": "2.22.1"
|
38
38
|
},
|
39
39
|
"sideEffects": false,
|
40
40
|
"publishConfig": {
|