@slidev/cli 51.5.0 → 51.6.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-oRYT3yXD.js +62 -0
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +518 -594
- package/dist/export-D1Zqc-n1.js +433 -0
- package/dist/index.d.ts +12 -7
- package/dist/index.js +5 -17
- package/dist/resolver-BShaA6qw.js +155 -0
- package/dist/serve-D6FyjIir.js +14 -0
- package/dist/shared-D3tuRsUE.js +2475 -0
- package/package.json +30 -30
- package/dist/build-C2XVOCCA.js +0 -77
- package/dist/chunk-7TKX73CW.js +0 -2761
- package/dist/chunk-HD7KRKPM.js +0 -29
- package/dist/chunk-TJFRPB4N.js +0 -190
- package/dist/export-5TR5BGLG.js +0 -520
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "51.
|
|
4
|
+
"version": "51.6.2",
|
|
5
5
|
"description": "Presentation slides for developers",
|
|
6
|
-
"author": "
|
|
6
|
+
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/antfu",
|
|
9
9
|
"homepage": "https://sli.dev",
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/ni": "^24.3.0",
|
|
46
|
-
"@antfu/utils": "^9.
|
|
46
|
+
"@antfu/utils": "^9.2.0",
|
|
47
47
|
"@iconify-json/carbon": "^1.2.8",
|
|
48
48
|
"@iconify-json/ph": "^1.2.2",
|
|
49
49
|
"@iconify-json/svg-spinners": "^1.2.2",
|
|
50
50
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
51
|
-
"@shikijs/markdown-it": "^3.2
|
|
52
|
-
"@shikijs/twoslash": "^3.2
|
|
53
|
-
"@shikijs/vitepress-twoslash": "^3.2
|
|
54
|
-
"@unocss/extractor-mdc": "^66.
|
|
55
|
-
"@unocss/reset": "^66.
|
|
56
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
51
|
+
"@shikijs/markdown-it": "^3.4.2",
|
|
52
|
+
"@shikijs/twoslash": "^3.4.2",
|
|
53
|
+
"@shikijs/vitepress-twoslash": "^3.4.2",
|
|
54
|
+
"@unocss/extractor-mdc": "^66.1.2",
|
|
55
|
+
"@unocss/reset": "^66.1.2",
|
|
56
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
57
57
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
58
|
-
"ansis": "^
|
|
58
|
+
"ansis": "^4.0.0",
|
|
59
59
|
"chokidar": "^4.0.3",
|
|
60
60
|
"cli-progress": "^3.12.0",
|
|
61
61
|
"connect": "^3.7.0",
|
|
62
|
-
"debug": "^4.4.
|
|
62
|
+
"debug": "^4.4.1",
|
|
63
63
|
"fast-deep-equal": "^3.1.3",
|
|
64
64
|
"fast-glob": "^3.3.3",
|
|
65
65
|
"get-port-please": "^3.1.2",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"htmlparser2": "^10.0.0",
|
|
68
68
|
"is-installed-globally": "^1.0.0",
|
|
69
69
|
"jiti": "^2.4.2",
|
|
70
|
-
"katex": "^0.16.
|
|
70
|
+
"katex": "^0.16.22",
|
|
71
71
|
"local-pkg": "^1.1.1",
|
|
72
72
|
"lz-string": "^1.5.0",
|
|
73
73
|
"magic-string": "^0.30.17",
|
|
@@ -77,49 +77,49 @@
|
|
|
77
77
|
"markdown-it-mdc": "^0.2.5",
|
|
78
78
|
"mlly": "^1.7.4",
|
|
79
79
|
"monaco-editor": "0.51.0",
|
|
80
|
-
"open": "^10.1.
|
|
80
|
+
"open": "^10.1.2",
|
|
81
81
|
"pdf-lib": "^1.17.1",
|
|
82
82
|
"picomatch": "^4.0.2",
|
|
83
83
|
"plantuml-encoder": "^1.4.0",
|
|
84
84
|
"postcss-nested": "^7.0.2",
|
|
85
|
-
"pptxgenjs": "^
|
|
85
|
+
"pptxgenjs": "^4.0.0",
|
|
86
86
|
"prompts": "^2.4.2",
|
|
87
87
|
"public-ip": "^7.0.1",
|
|
88
88
|
"resolve-from": "^5.0.0",
|
|
89
89
|
"resolve-global": "^2.0.0",
|
|
90
|
-
"semver": "^7.7.
|
|
91
|
-
"shiki": "^3.2
|
|
90
|
+
"semver": "^7.7.2",
|
|
91
|
+
"shiki": "^3.4.2",
|
|
92
92
|
"shiki-magic-move": "^1.1.0",
|
|
93
93
|
"sirv": "^3.0.1",
|
|
94
94
|
"source-map-js": "^1.2.1",
|
|
95
|
-
"typescript": "^5.8.
|
|
96
|
-
"unhead": "^2.0.
|
|
97
|
-
"unocss": "^66.
|
|
95
|
+
"typescript": "^5.8.3",
|
|
96
|
+
"unhead": "^2.0.8",
|
|
97
|
+
"unocss": "^66.1.2",
|
|
98
98
|
"unplugin-icons": "^22.1.0",
|
|
99
|
-
"unplugin-vue-components": "^28.
|
|
99
|
+
"unplugin-vue-components": "^28.5.0",
|
|
100
100
|
"unplugin-vue-markdown": "^28.3.1",
|
|
101
101
|
"untun": "^0.1.3",
|
|
102
102
|
"uqr": "^0.1.2",
|
|
103
|
-
"vite": "^6.
|
|
104
|
-
"vite-plugin-inspect": "^11.0.
|
|
103
|
+
"vite": "^6.3.5",
|
|
104
|
+
"vite-plugin-inspect": "^11.0.1",
|
|
105
105
|
"vite-plugin-remote-assets": "^2.0.0",
|
|
106
|
-
"vite-plugin-static-copy": "^
|
|
106
|
+
"vite-plugin-static-copy": "^3.0.0",
|
|
107
107
|
"vite-plugin-vue-server-ref": "^1.0.0",
|
|
108
108
|
"vitefu": "^1.0.6",
|
|
109
|
-
"vue": "^3.5.
|
|
110
|
-
"yaml": "^2.
|
|
109
|
+
"vue": "^3.5.14",
|
|
110
|
+
"yaml": "^2.8.0",
|
|
111
111
|
"yargs": "^17.7.2",
|
|
112
|
-
"@slidev/client": "51.
|
|
113
|
-
"@slidev/parser": "51.
|
|
114
|
-
"@slidev/types": "51.
|
|
112
|
+
"@slidev/client": "51.6.2",
|
|
113
|
+
"@slidev/parser": "51.6.2",
|
|
114
|
+
"@slidev/types": "51.6.2"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|
|
118
|
-
"@types/picomatch": "^
|
|
118
|
+
"@types/picomatch": "^4.0.0",
|
|
119
119
|
"@types/plantuml-encoder": "^1.4.2"
|
|
120
120
|
},
|
|
121
121
|
"scripts": {
|
|
122
|
-
"build": "
|
|
122
|
+
"build": "tsdown node/index.ts node/cli.ts",
|
|
123
123
|
"dev": "nr build --watch",
|
|
124
124
|
"start": "tsx node/cli.ts"
|
|
125
125
|
}
|
package/dist/build-C2XVOCCA.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveViteConfigs
|
|
3
|
-
} from "./chunk-7TKX73CW.js";
|
|
4
|
-
import "./chunk-TJFRPB4N.js";
|
|
5
|
-
|
|
6
|
-
// node/commands/build.ts
|
|
7
|
-
import { existsSync } from "node:fs";
|
|
8
|
-
import fs from "node:fs/promises";
|
|
9
|
-
import http from "node:http";
|
|
10
|
-
import { join, resolve } from "node:path";
|
|
11
|
-
import connect from "connect";
|
|
12
|
-
import sirv from "sirv";
|
|
13
|
-
import { build as viteBuild } from "vite";
|
|
14
|
-
async function build(options, viteConfig = {}, args) {
|
|
15
|
-
const indexPath = resolve(options.userRoot, "index.html");
|
|
16
|
-
let originalIndexHTML;
|
|
17
|
-
if (existsSync(indexPath))
|
|
18
|
-
originalIndexHTML = await fs.readFile(indexPath, "utf-8");
|
|
19
|
-
await fs.writeFile(indexPath, options.utils.indexHtml, "utf-8");
|
|
20
|
-
let config = void 0;
|
|
21
|
-
try {
|
|
22
|
-
const inlineConfig = await resolveViteConfigs(
|
|
23
|
-
options,
|
|
24
|
-
{
|
|
25
|
-
plugins: [
|
|
26
|
-
{
|
|
27
|
-
name: "resolve-config",
|
|
28
|
-
configResolved(_config) {
|
|
29
|
-
config = _config;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
build: {
|
|
34
|
-
chunkSizeWarningLimit: 2e3
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
viteConfig,
|
|
38
|
-
"build"
|
|
39
|
-
);
|
|
40
|
-
await viteBuild(inlineConfig);
|
|
41
|
-
} finally {
|
|
42
|
-
if (originalIndexHTML != null)
|
|
43
|
-
await fs.writeFile(indexPath, originalIndexHTML, "utf-8");
|
|
44
|
-
else
|
|
45
|
-
await fs.unlink(indexPath);
|
|
46
|
-
}
|
|
47
|
-
const outDir = resolve(options.userRoot, config.build.outDir);
|
|
48
|
-
await fs.copyFile(resolve(outDir, "index.html"), resolve(outDir, "404.html"));
|
|
49
|
-
const redirectsPath = resolve(outDir, "_redirects");
|
|
50
|
-
if (!existsSync(redirectsPath))
|
|
51
|
-
await fs.writeFile(redirectsPath, `${config.base}* ${config.base}index.html 200
|
|
52
|
-
`, "utf-8");
|
|
53
|
-
if ([true, "true", "auto"].includes(options.data.config.download)) {
|
|
54
|
-
const { exportSlides, getExportOptions } = await import("./export-5TR5BGLG.js");
|
|
55
|
-
const port = 12445;
|
|
56
|
-
const app = connect();
|
|
57
|
-
const server = http.createServer(app);
|
|
58
|
-
app.use(
|
|
59
|
-
config.base,
|
|
60
|
-
sirv(outDir, {
|
|
61
|
-
etag: true,
|
|
62
|
-
single: true,
|
|
63
|
-
dev: true
|
|
64
|
-
})
|
|
65
|
-
);
|
|
66
|
-
server.listen(port);
|
|
67
|
-
await exportSlides({
|
|
68
|
-
port,
|
|
69
|
-
base: config.base,
|
|
70
|
-
...getExportOptions(args, options, join(outDir, "slidev-exported.pdf"))
|
|
71
|
-
});
|
|
72
|
-
server.close();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
build
|
|
77
|
-
};
|