@slidev/cli 52.4.0 → 52.6.0
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/{build-C0y3jflF.js → build-BebQXF0N.js} +6 -5
- package/dist/cli.js +6 -6
- package/dist/{export-DxrcqKLf.js → export-KSfPJ_za.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{resolver-BVx3X6zp.js → resolver-VcRws4SK.js} +1 -1
- package/dist/{serve-DmyF8x-T.js → serve-AMxCE-eO.js} +2 -2
- package/dist/{shared-Dgsw_Krn.js → shared-BQQJCtZ8.js} +10 -4
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveViteConfigs } from "./shared-
|
|
2
|
-
import "./resolver-
|
|
1
|
+
import { t as resolveViteConfigs } from "./shared-BQQJCtZ8.js";
|
|
2
|
+
import "./resolver-VcRws4SK.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
5
|
import { build as build$1 } from "vite";
|
|
@@ -45,7 +45,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
45
45
|
dev: true
|
|
46
46
|
}));
|
|
47
47
|
server.listen(port);
|
|
48
|
-
const { exportSlides } = await import("./export-
|
|
48
|
+
const { exportSlides } = await import("./export-KSfPJ_za.js");
|
|
49
49
|
const tempDir = resolve(outDir, "temp");
|
|
50
50
|
await fs.mkdir(tempDir, { recursive: true });
|
|
51
51
|
await exportSlides({
|
|
@@ -86,7 +86,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
86
86
|
"true",
|
|
87
87
|
"auto"
|
|
88
88
|
].includes(options.data.config.download)) {
|
|
89
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
89
|
+
const { exportSlides, getExportOptions } = await import("./export-KSfPJ_za.js");
|
|
90
90
|
const port = 12445;
|
|
91
91
|
const app = connect();
|
|
92
92
|
const server = http.createServer(app);
|
|
@@ -96,10 +96,11 @@ async function build(options, viteConfig = {}, args) {
|
|
|
96
96
|
dev: true
|
|
97
97
|
}));
|
|
98
98
|
server.listen(port);
|
|
99
|
+
const filename = options.data.config.exportFilename || "slidev-exported";
|
|
99
100
|
await exportSlides({
|
|
100
101
|
port,
|
|
101
102
|
base: config.base,
|
|
102
|
-
...getExportOptions(args, options, join(outDir,
|
|
103
|
+
...getExportOptions(args, options, join(outDir, `${filename}.pdf`))
|
|
103
104
|
});
|
|
104
105
|
server.close();
|
|
105
106
|
}
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getRoots, isInstalledGlobally
|
|
3
|
-
import { createServer } from "./serve-
|
|
1
|
+
import { a as loadSetups, c as resolveTheme, d as version, i as resolveOptions, l as resolveAddons, o as parser, s as getThemeMeta, u as updateFrontmatterPatch } from "./shared-BQQJCtZ8.js";
|
|
2
|
+
import { i as resolveEntry, n as getRoots, r as isInstalledGlobally } from "./resolver-VcRws4SK.js";
|
|
3
|
+
import { t as createServer } from "./serve-AMxCE-eO.js";
|
|
4
4
|
import { exec } from "node:child_process";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import os from "node:os";
|
|
@@ -292,7 +292,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
|
|
|
292
292
|
describe: "enable the inspect plugin for debugging"
|
|
293
293
|
}).strict().help(), async (args) => {
|
|
294
294
|
const { entry, theme, base, download, out, inspect } = args;
|
|
295
|
-
const { build } = await import("./build-
|
|
295
|
+
const { build } = await import("./build-BebQXF0N.js");
|
|
296
296
|
for (const entryFile of entry) {
|
|
297
297
|
const options = await resolveOptions({
|
|
298
298
|
entry: entryFile,
|
|
@@ -355,7 +355,7 @@ cli.command("theme [subcommand]", "Theme related operations", (command) => {
|
|
|
355
355
|
});
|
|
356
356
|
cli.command("export [entry..]", "Export slides to PDF", (args) => exportOptions(commonOptions(args)).strict().help(), async (args) => {
|
|
357
357
|
const { entry, theme } = args;
|
|
358
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
358
|
+
const { exportSlides, getExportOptions } = await import("./export-KSfPJ_za.js");
|
|
359
359
|
const port = await getPort(12445);
|
|
360
360
|
let warned = false;
|
|
361
361
|
for (const entryFile of entry) {
|
|
@@ -402,7 +402,7 @@ cli.command("export-notes [entry..]", "Export slide notes to PDF", (args) => arg
|
|
|
402
402
|
type: "number",
|
|
403
403
|
describe: "wait for the specified ms before exporting"
|
|
404
404
|
}).strict().help(), async ({ entry, output, timeout, wait }) => {
|
|
405
|
-
const { exportNotes } = await import("./export-
|
|
405
|
+
const { exportNotes } = await import("./export-KSfPJ_za.js");
|
|
406
406
|
const port = await getPort(12445);
|
|
407
407
|
for (const entryFile of entry) {
|
|
408
408
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getRoots } from "./resolver-
|
|
1
|
+
import { n as getRoots } from "./resolver-VcRws4SK.js";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path, { dirname, relative } from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
@@ -375,7 +375,7 @@ function getExportOptions(args, options, outFilename) {
|
|
|
375
375
|
omitBackground: args["omit-background"]
|
|
376
376
|
})
|
|
377
377
|
};
|
|
378
|
-
outFilename = output || options.data.config.exportFilename ||
|
|
378
|
+
outFilename = output || outFilename || options.data.config.exportFilename || `${path.basename(entry, ".md")}-export`;
|
|
379
379
|
return {
|
|
380
380
|
output: outFilename,
|
|
381
381
|
slides: options.data.slides,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./resolver-
|
|
3
|
-
import { createServer } from "./serve-
|
|
1
|
+
import { i as resolveOptions, n as ViteSlidevPlugin, o as parser, r as createDataUtils } from "./shared-BQQJCtZ8.js";
|
|
2
|
+
import "./resolver-VcRws4SK.js";
|
|
3
|
+
import { t as createServer } from "./serve-AMxCE-eO.js";
|
|
4
4
|
|
|
5
5
|
export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
|
|
@@ -147,4 +147,4 @@ async function getRoots(entry) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
//#endregion
|
|
150
|
-
export {
|
|
150
|
+
export { resolveImportPath as a, resolveEntry as i, getRoots as n, resolveImportUrl as o, isInstalledGlobally as r, toAtFS as s, createResolver as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveViteConfigs } from "./shared-
|
|
1
|
+
import { t as resolveViteConfigs } from "./shared-BQQJCtZ8.js";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { createServer } from "vite";
|
|
@@ -10,4 +10,4 @@ async function createServer$1(options, viteConfig = {}, serverOptions) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { createServer$1 as
|
|
13
|
+
export { createServer$1 as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as resolveImportPath, i as resolveEntry, n as getRoots, o as resolveImportUrl, r as isInstalledGlobally, s as toAtFS, t as createResolver } from "./resolver-VcRws4SK.js";
|
|
2
2
|
import { builtinModules } from "node:module";
|
|
3
3
|
import fs, { readFile } from "node:fs/promises";
|
|
4
4
|
import path, { basename, dirname, join, resolve } from "node:path";
|
|
@@ -42,7 +42,7 @@ import Vue from "@vitejs/plugin-vue";
|
|
|
42
42
|
import VueJsx from "@vitejs/plugin-vue-jsx";
|
|
43
43
|
|
|
44
44
|
//#region package.json
|
|
45
|
-
var version = "52.
|
|
45
|
+
var version = "52.6.0";
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region node/syntax/markdown-it/markdown-it-link.ts
|
|
@@ -2283,7 +2283,13 @@ async function createServerRefPlugin(options, pluginOptions) {
|
|
|
2283
2283
|
sync: false,
|
|
2284
2284
|
nav: {
|
|
2285
2285
|
page: 0,
|
|
2286
|
-
clicks: 0
|
|
2286
|
+
clicks: 0,
|
|
2287
|
+
timer: {
|
|
2288
|
+
status: "stopped",
|
|
2289
|
+
slides: {},
|
|
2290
|
+
startedAt: 0,
|
|
2291
|
+
pausedAt: 0
|
|
2292
|
+
}
|
|
2287
2293
|
},
|
|
2288
2294
|
drawings: await loadDrawings(options),
|
|
2289
2295
|
snapshots: await loadSnapshots(options),
|
|
@@ -2478,4 +2484,4 @@ async function resolveViteConfigs(options, baseConfig, overrideConfigs, command,
|
|
|
2478
2484
|
}
|
|
2479
2485
|
|
|
2480
2486
|
//#endregion
|
|
2481
|
-
export {
|
|
2487
|
+
export { loadSetups as a, resolveTheme as c, version as d, resolveOptions as i, resolveAddons as l, ViteSlidevPlugin as n, parser as o, createDataUtils as r, getThemeMeta as s, resolveViteConfigs as t, updateFrontmatterPatch as u };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "52.
|
|
4
|
+
"version": "52.6.0",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"katex": "^0.16.25",
|
|
71
71
|
"local-pkg": "^1.1.2",
|
|
72
72
|
"lz-string": "^1.5.0",
|
|
73
|
-
"magic-string": "^0.30.
|
|
73
|
+
"magic-string": "^0.30.21",
|
|
74
74
|
"magic-string-stack": "^1.1.0",
|
|
75
75
|
"markdown-it": "^14.1.0",
|
|
76
76
|
"markdown-it-footnote": "^4.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"unplugin-vue-markdown": "^29.2.0",
|
|
101
101
|
"untun": "^0.1.3",
|
|
102
102
|
"uqr": "^0.1.2",
|
|
103
|
-
"vite": "^7.1.
|
|
103
|
+
"vite": "^7.1.12",
|
|
104
104
|
"vite-plugin-inspect": "^11.3.3",
|
|
105
105
|
"vite-plugin-remote-assets": "^2.1.0",
|
|
106
106
|
"vite-plugin-static-copy": "^3.1.4",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"vue": "^3.5.22",
|
|
110
110
|
"yaml": "^2.8.1",
|
|
111
111
|
"yargs": "^18.0.0",
|
|
112
|
-
"@slidev/client": "52.
|
|
113
|
-
"@slidev/
|
|
114
|
-
"@slidev/
|
|
112
|
+
"@slidev/client": "52.6.0",
|
|
113
|
+
"@slidev/types": "52.6.0",
|
|
114
|
+
"@slidev/parser": "52.6.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|