@slidev/cli 52.14.1 → 52.14.2
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 +1 -1
- package/dist/{build-XXSytKPK.mjs → build-DvtR2mFf.mjs} +1 -1
- package/dist/cli.mjs +4 -3
- package/dist/index.mjs +2 -2
- package/dist/{serve-BFKmdoYb.mjs → serve-D_ugeQhq.mjs} +1 -1
- package/dist/{shared-CjLi-sXO.mjs → shared-ZIXcnTKJ.mjs} +1 -1
- package/package.json +5 -5
- package/skills/slidev/SKILL.md +10 -4
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ Presentation <b>slide</b>s for <b>dev</b>elopers 🧑💻👩💻👨
|
|
|
62
62
|
|
|
63
63
|
### Init Project Locally
|
|
64
64
|
|
|
65
|
-
Install [Node.js >=
|
|
65
|
+
Install [Node.js >= 20.12.0](https://nodejs.org/) and run the following command:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
npm init slidev
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./resolver-B4CxEjJF.mjs";
|
|
2
|
-
import { t as resolveViteConfigs } from "./shared-
|
|
2
|
+
import { t as resolveViteConfigs } from "./shared-ZIXcnTKJ.mjs";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { build as build$1 } from "vite";
|
|
5
5
|
import { existsSync } from "node:fs";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as resolveEntry, n as getRoots, r as isInstalledGlobally } from "./resolver-B4CxEjJF.mjs";
|
|
2
|
-
import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-
|
|
3
|
-
import { t as createServer } from "./serve-
|
|
2
|
+
import { a as parser, c as resolveAddons, d as updateFrontmatterPatch, i as resolveOptions, l as version, o as getThemeMeta, s as resolveTheme, u as loadSetups } from "./shared-ZIXcnTKJ.mjs";
|
|
3
|
+
import { t as createServer } from "./serve-D_ugeQhq.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
@@ -229,6 +229,7 @@ cli.command("* [entry]", "Start a local server for Slidev", (args) => commonOpti
|
|
|
229
229
|
}
|
|
230
230
|
];
|
|
231
231
|
function bindShortcut() {
|
|
232
|
+
if (!process.stdin.isTTY) return;
|
|
232
233
|
process.stdin.resume();
|
|
233
234
|
process.stdin.setEncoding("utf8");
|
|
234
235
|
readline.emitKeypressEvents(process.stdin);
|
|
@@ -288,7 +289,7 @@ cli.command("build [entry..]", "Build hostable SPA", (args) => exportOptions(com
|
|
|
288
289
|
describe: "enable the inspect plugin for debugging"
|
|
289
290
|
}).strict().help(), async (args) => {
|
|
290
291
|
const { entry, theme, base, download, out, inspect, "without-notes": withoutNotes } = args;
|
|
291
|
-
const { build } = await import("./build-
|
|
292
|
+
const { build } = await import("./build-DvtR2mFf.mjs");
|
|
292
293
|
for (const entryFile of entry) {
|
|
293
294
|
const options = await resolveOptions({
|
|
294
295
|
entry: entryFile,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./resolver-B4CxEjJF.mjs";
|
|
2
|
-
import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-
|
|
3
|
-
import { t as createServer } from "./serve-
|
|
2
|
+
import { a as parser, i as resolveOptions, n as ViteSlidevPlugin, r as createDataUtils } from "./shared-ZIXcnTKJ.mjs";
|
|
3
|
+
import { t as createServer } from "./serve-D_ugeQhq.mjs";
|
|
4
4
|
|
|
5
5
|
export { ViteSlidevPlugin, createDataUtils, createServer, parser, resolveOptions };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "52.14.
|
|
4
|
+
"version": "52.14.2",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"template.md"
|
|
33
33
|
],
|
|
34
34
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
35
|
+
"node": ">=20.12.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"playwright-chromium": "^1.10.0"
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
"vue": "^3.5.29",
|
|
111
111
|
"yaml": "^2.8.2",
|
|
112
112
|
"yargs": "^18.0.0",
|
|
113
|
-
"@slidev/
|
|
114
|
-
"@slidev/
|
|
115
|
-
"@slidev/
|
|
113
|
+
"@slidev/client": "52.14.2",
|
|
114
|
+
"@slidev/parser": "52.14.2",
|
|
115
|
+
"@slidev/types": "52.14.2"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
118
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|
package/skills/slidev/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: slidev
|
|
3
|
-
description: Create and present web-based
|
|
3
|
+
description: Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Slidev - Presentation Slides for Developers
|
|
@@ -9,21 +9,25 @@ Web-based slides maker built on Vite, Vue, and Markdown.
|
|
|
9
9
|
|
|
10
10
|
## When to Use
|
|
11
11
|
|
|
12
|
-
- Technical presentations with live code examples
|
|
12
|
+
- Technical presentations or slidedecks with live code examples
|
|
13
13
|
- Syntax-highlighted code snippets with animations
|
|
14
14
|
- Interactive demos (Monaco editor, runnable code)
|
|
15
15
|
- Mathematical equations (LaTeX) or diagrams (Mermaid, PlantUML)
|
|
16
16
|
- Record presentations with presenter notes
|
|
17
17
|
- Export to PDF, PPTX, or host as SPA
|
|
18
|
+
- Code walkthroughs for developer talks or workshops
|
|
18
19
|
|
|
19
20
|
## Quick Start
|
|
20
21
|
|
|
21
22
|
```bash
|
|
22
23
|
pnpm create slidev # Create project
|
|
23
|
-
pnpm run dev # Start dev server
|
|
24
|
-
pnpm run
|
|
24
|
+
pnpm run dev # Start dev server (opens http://localhost:3030)
|
|
25
|
+
pnpm run build # Build static SPA
|
|
26
|
+
pnpm run export # Export to PDF (requires playwright-chromium)
|
|
25
27
|
```
|
|
26
28
|
|
|
29
|
+
**Verify**: After `pnpm run dev`, confirm slides load at `http://localhost:3030`. After `pnpm run export`, check the output PDF exists in the project root.
|
|
30
|
+
|
|
27
31
|
## Basic Syntax
|
|
28
32
|
|
|
29
33
|
```md
|
|
@@ -144,6 +148,8 @@ Presenter notes go here
|
|
|
144
148
|
| OG image | `seoMeta.ogImage` or `og-image.png` | [build-og-image](references/build-og-image.md) |
|
|
145
149
|
| SEO tags | `seoMeta:` | [build-seo-meta](references/build-seo-meta.md) |
|
|
146
150
|
|
|
151
|
+
**Export prerequisite**: `pnpm add -D playwright-chromium` is required for PDF/PPTX/PNG export. If export fails with a browser error, install this dependency first.
|
|
152
|
+
|
|
147
153
|
### Editor & Tools
|
|
148
154
|
|
|
149
155
|
| Feature | Usage | Reference |
|