@slidev/cli 0.48.3 → 0.48.4
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.
|
@@ -62,7 +62,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
62
62
|
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
63
63
|
`, "utf-8");
|
|
64
64
|
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
65
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
65
|
+
const { exportSlides, getExportOptions } = await import("./export-7BCUWALW.mjs");
|
|
66
66
|
const port = 12445;
|
|
67
67
|
const app = connect();
|
|
68
68
|
const server = http.createServer(app);
|
|
@@ -48,7 +48,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
48
48
|
import * as parser from "@slidev/parser/fs";
|
|
49
49
|
|
|
50
50
|
// package.json
|
|
51
|
-
var version = "0.48.
|
|
51
|
+
var version = "0.48.4";
|
|
52
52
|
|
|
53
53
|
// node/integrations/themes.ts
|
|
54
54
|
import { join as join2 } from "node:path";
|
package/dist/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveOptions,
|
|
7
7
|
resolveTheme,
|
|
8
8
|
version
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MMPK7EAS.mjs";
|
|
10
10
|
import "./chunk-M3AHQMLP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
loadSetups
|
|
@@ -325,7 +325,7 @@ cli.command(
|
|
|
325
325
|
}).strict().help(),
|
|
326
326
|
async (args) => {
|
|
327
327
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
328
|
-
const { build } = await import("./build-
|
|
328
|
+
const { build } = await import("./build-6DZCUTHS.mjs");
|
|
329
329
|
for (const entryFile of entry) {
|
|
330
330
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
331
331
|
if (download && !options.data.config.download)
|
|
@@ -406,7 +406,7 @@ cli.command(
|
|
|
406
406
|
(args) => exportOptions(commonOptions(args)).strict().help(),
|
|
407
407
|
async (args) => {
|
|
408
408
|
const { entry, theme } = args;
|
|
409
|
-
const { exportSlides, getExportOptions } = await import("./export-
|
|
409
|
+
const { exportSlides, getExportOptions } = await import("./export-7BCUWALW.mjs");
|
|
410
410
|
const port = await getPort(12445);
|
|
411
411
|
for (const entryFile of entry) {
|
|
412
412
|
const options = await resolveOptions({ entry: entryFile, theme }, "export");
|
|
@@ -450,7 +450,7 @@ cli.command(
|
|
|
450
450
|
output,
|
|
451
451
|
timeout
|
|
452
452
|
}) => {
|
|
453
|
-
const { exportNotes } = await import("./export-
|
|
453
|
+
const { exportNotes } = await import("./export-7BCUWALW.mjs");
|
|
454
454
|
const port = await getPort(12445);
|
|
455
455
|
for (const entryFile of entry) {
|
|
456
456
|
const options = await resolveOptions({ entry: entryFile }, "export");
|
|
@@ -8,6 +8,7 @@ import { Buffer } from "node:buffer";
|
|
|
8
8
|
import fs from "fs-extra";
|
|
9
9
|
import { blue, cyan, dim, green, yellow } from "kolorist";
|
|
10
10
|
import { Presets, SingleBar } from "cli-progress";
|
|
11
|
+
import { clearUndefined } from "@antfu/utils";
|
|
11
12
|
import { parseRangeString } from "@slidev/parser/core";
|
|
12
13
|
import { outlinePdfFactory } from "@lillallol/outline-pdf";
|
|
13
14
|
import * as pdfLib from "pdf-lib";
|
|
@@ -371,10 +372,12 @@ function getExportOptions(args, options, outDir, outFilename) {
|
|
|
371
372
|
const config = {
|
|
372
373
|
...options.data.config.export,
|
|
373
374
|
...args,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
...clearUndefined({
|
|
376
|
+
withClicks: args["with-clicks"],
|
|
377
|
+
executablePath: args["executable-path"],
|
|
378
|
+
withToc: args["with-toc"],
|
|
379
|
+
perSlide: args["per-slide"]
|
|
380
|
+
})
|
|
378
381
|
};
|
|
379
382
|
const {
|
|
380
383
|
entry,
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.4",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vitefu": "^0.2.5",
|
|
107
107
|
"vue": "^3.4.21",
|
|
108
108
|
"yargs": "^17.7.2",
|
|
109
|
-
"@slidev/client": "0.48.
|
|
110
|
-
"@slidev/
|
|
111
|
-
"@slidev/
|
|
109
|
+
"@slidev/client": "0.48.4",
|
|
110
|
+
"@slidev/types": "0.48.4",
|
|
111
|
+
"@slidev/parser": "0.48.4"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|