@slidev/cli 0.48.0-beta.10 → 0.48.0-beta.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.
|
@@ -2496,7 +2496,7 @@ var require_semver2 = __commonJS({
|
|
|
2496
2496
|
});
|
|
2497
2497
|
|
|
2498
2498
|
// package.json
|
|
2499
|
-
var version = "0.48.0-beta.
|
|
2499
|
+
var version = "0.48.0-beta.11";
|
|
2500
2500
|
|
|
2501
2501
|
// node/common.ts
|
|
2502
2502
|
import { existsSync, promises as fs } from "node:fs";
|
|
@@ -2654,6 +2654,7 @@ function createConfigPlugin(options) {
|
|
|
2654
2654
|
resolve: {
|
|
2655
2655
|
alias: {
|
|
2656
2656
|
"@slidev/client/": `${toAtFS(options.clientRoot)}/`,
|
|
2657
|
+
"#slidev/": "/@slidev/",
|
|
2657
2658
|
"vue": await resolveImportPath("vue/dist/vue.esm-browser.js", true)
|
|
2658
2659
|
},
|
|
2659
2660
|
dedupe: ["vue"]
|
|
@@ -3246,7 +3247,10 @@ ${Object.entries(layouts).map(([k, v]) => `"${k}": ${v}`).join(",\n")}
|
|
|
3246
3247
|
const imports = [];
|
|
3247
3248
|
const redirects = [];
|
|
3248
3249
|
const layouts = await getLayouts();
|
|
3249
|
-
imports.push(
|
|
3250
|
+
imports.push(
|
|
3251
|
+
`import { markRaw } from 'vue'`,
|
|
3252
|
+
`import __layout__end from '${layouts.end}'`
|
|
3253
|
+
);
|
|
3250
3254
|
let no = 1;
|
|
3251
3255
|
const routes = data.slides.map((i, idx) => {
|
|
3252
3256
|
imports.push(`import n${no} from '${slidePrefix}${idx + 1}.md'`);
|
|
@@ -3257,12 +3261,12 @@ ${Object.entries(layouts).map(([k, v]) => `"${k}": ${v}`).join(",\n")}
|
|
|
3257
3261
|
no += 1;
|
|
3258
3262
|
return route;
|
|
3259
3263
|
});
|
|
3260
|
-
const routesStr = `export
|
|
3264
|
+
const routesStr = `export const rawRoutes = [
|
|
3261
3265
|
${routes.join(",\n")}
|
|
3262
|
-
]`;
|
|
3266
|
+
].map(markRaw)`;
|
|
3263
3267
|
const redirectsStr = `export const redirects = [
|
|
3264
3268
|
${redirects.join(",\n")}
|
|
3265
|
-
]`;
|
|
3269
|
+
].map(markRaw)`;
|
|
3266
3270
|
return [...imports, routesStr, redirectsStr].join("\n");
|
|
3267
3271
|
}
|
|
3268
3272
|
function getTitle() {
|
package/dist/cli.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
resolveAddons,
|
|
6
6
|
resolveOptions,
|
|
7
7
|
resolveTheme
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DFSBG7Q2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
version
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7HWAUX7C.mjs";
|
|
12
12
|
import {
|
|
13
13
|
loadSetups
|
|
14
14
|
} from "./chunk-O6TYYGU6.mjs";
|
|
@@ -277,7 +277,7 @@ cli.command(
|
|
|
277
277
|
}).strict().help(),
|
|
278
278
|
async (args) => {
|
|
279
279
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
280
|
-
const { build } = await import("./build-
|
|
280
|
+
const { build } = await import("./build-DTVJA6KF.mjs");
|
|
281
281
|
for (const entryFile of entry) {
|
|
282
282
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
283
283
|
if (download && !options.data.config.download)
|
package/dist/index.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
createServer,
|
|
3
3
|
parser,
|
|
4
4
|
resolveOptions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DFSBG7Q2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ViteSlidevPlugin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7HWAUX7C.mjs";
|
|
9
9
|
import "./chunk-O6TYYGU6.mjs";
|
|
10
10
|
import "./chunk-7HOZGSL4.mjs";
|
|
11
11
|
import "./chunk-BXO7ZPPU.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.48.0-beta.
|
|
3
|
+
"version": "0.48.0-beta.11",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"vitefu": "^0.2.5",
|
|
105
105
|
"vue": "^3.4.19",
|
|
106
106
|
"yargs": "^17.7.2",
|
|
107
|
-
"@slidev/
|
|
108
|
-
"@slidev/
|
|
109
|
-
"@slidev/
|
|
107
|
+
"@slidev/parser": "0.48.0-beta.11",
|
|
108
|
+
"@slidev/client": "0.48.0-beta.11",
|
|
109
|
+
"@slidev/types": "0.48.0-beta.11"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|