@slidev/cli 52.14.0 → 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 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 >=18](https://nodejs.org/) and run the following command:
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-DA_39LFQ.mjs";
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-DA_39LFQ.mjs";
3
- import { t as createServer } from "./serve-BLr_JRSb.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-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-BjxavfkV.mjs");
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-DA_39LFQ.mjs";
3
- import { t as createServer } from "./serve-BLr_JRSb.mjs";
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 };
@@ -1,4 +1,4 @@
1
- import { t as resolveViteConfigs } from "./shared-DA_39LFQ.mjs";
1
+ import { t as resolveViteConfigs } from "./shared-ZIXcnTKJ.mjs";
2
2
  import { join } from "node:path";
3
3
  import process from "node:process";
4
4
  import { createServer } from "vite";
@@ -503,7 +503,7 @@ function createLayoutWrapperPlugin({ data, utils }) {
503
503
 
504
504
  //#endregion
505
505
  //#region package.json
506
- var version = "52.14.0";
506
+ var version = "52.14.2";
507
507
 
508
508
  //#endregion
509
509
  //#region node/integrations/addons.ts
@@ -1186,7 +1186,11 @@ const templateMonacoRunDeps = {
1186
1186
  id: "/@slidev/monaco-run-deps",
1187
1187
  async getContent({ userRoot, data }) {
1188
1188
  if (!data.features.monaco) return "";
1189
- const deps = uniq(data.features.monaco.deps.concat(data.config.monacoTypesAdditionalPackages));
1189
+ const deps = uniq([
1190
+ ...data.features.monaco.deps,
1191
+ ...data.config.monacoTypesAdditionalPackages || [],
1192
+ ...data.config.monacoRunAdditionalDeps || []
1193
+ ]);
1190
1194
  const importerPath = resolve(userRoot, "./snippets/__importer__.ts");
1191
1195
  let result = "";
1192
1196
  for (let i = 0; i < deps.length; i++) {
@@ -1272,6 +1276,7 @@ const setupModules = [
1272
1276
  "code-runners",
1273
1277
  "monaco",
1274
1278
  "mermaid",
1279
+ "mermaid-renderer",
1275
1280
  "main",
1276
1281
  "root",
1277
1282
  "routes",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "52.14.0",
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": ">=18.0.0"
35
+ "node": ">=20.12.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "playwright-chromium": "^1.10.0"
@@ -46,15 +46,15 @@
46
46
  "@antfu/ni": "^28.2.0",
47
47
  "@antfu/utils": "^9.3.0",
48
48
  "@comark/markdown-it": "^0.3.0",
49
- "@iconify-json/carbon": "^1.2.18",
49
+ "@iconify-json/carbon": "^1.2.19",
50
50
  "@iconify-json/ph": "^1.2.2",
51
51
  "@iconify-json/svg-spinners": "^1.2.4",
52
52
  "@lillallol/outline-pdf": "^4.0.0",
53
- "@shikijs/markdown-it": "^4.0.0",
54
- "@shikijs/twoslash": "^4.0.0",
55
- "@shikijs/vitepress-twoslash": "^4.0.0",
56
- "@unocss/extractor-mdc": "^66.6.2",
57
- "@unocss/reset": "^66.6.2",
53
+ "@shikijs/markdown-it": "^4.0.1",
54
+ "@shikijs/twoslash": "^4.0.1",
55
+ "@shikijs/vitepress-twoslash": "^4.0.1",
56
+ "@unocss/extractor-mdc": "^66.6.3",
57
+ "@unocss/reset": "^66.6.3",
58
58
  "@vitejs/plugin-vue": "^6.0.4",
59
59
  "@vitejs/plugin-vue-jsx": "^5.1.4",
60
60
  "ansis": "^4.2.0",
@@ -89,12 +89,12 @@
89
89
  "resolve-from": "^5.0.0",
90
90
  "resolve-global": "^2.0.0",
91
91
  "semver": "^7.7.4",
92
- "shiki": "^4.0.0",
92
+ "shiki": "^4.0.1",
93
93
  "shiki-magic-move": "^1.2.1",
94
94
  "sirv": "^3.0.2",
95
95
  "source-map-js": "^1.2.1",
96
96
  "typescript": "^5.9.3",
97
- "unhead": "^2.1.9",
97
+ "unhead": "^2.1.10",
98
98
  "unocss": "^66.6.2",
99
99
  "unplugin-icons": "^23.0.1",
100
100
  "unplugin-vue-components": "^31.0.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/client": "52.14.0",
114
- "@slidev/parser": "52.14.0",
115
- "@slidev/types": "52.14.0"
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",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: slidev
3
- description: Create and present web-based slides for developers using Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, or teaching materials.
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 export # Export to PDF
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 |