@slidev/cli 0.45.0 → 0.46.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-YLYTHH42.mjs +124 -0
- package/dist/{chunk-CYLMMBRG.mjs → chunk-CTBVOVLQ.mjs} +1 -1
- package/dist/{chunk-A7WCFT3T.mjs → chunk-GLZC72RJ.mjs} +1 -1
- package/dist/{chunk-VHBBQ77F.mjs → chunk-HJK7CHXL.mjs} +201 -72
- package/dist/{chunk-G3XS4CNO.mjs → chunk-LJCKPP2I.mjs} +20 -17
- package/dist/cli.mjs +7 -11
- package/dist/index.mjs +4 -4
- package/dist/{unocss-GHP27KVT.mjs → unocss-6IVIFJMZ.mjs} +1 -1
- package/dist/{windicss-SDUK26CZ.mjs → windicss-V4JJMSQI.mjs} +2 -2
- package/package.json +22 -19
- package/template.md +0 -2
- package/dist/build-LX2GXXQG.mjs +0 -748
package/dist/cli.mjs
CHANGED
|
@@ -9,20 +9,15 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveThemeName,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import
|
|
14
|
-
require_fast_deep_equal
|
|
15
|
-
} from "./chunk-VHBBQ77F.mjs";
|
|
12
|
+
} from "./chunk-LJCKPP2I.mjs";
|
|
13
|
+
import "./chunk-HJK7CHXL.mjs";
|
|
16
14
|
import {
|
|
17
15
|
loadSetups
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CTBVOVLQ.mjs";
|
|
19
17
|
import "./chunk-5L3XKTHL.mjs";
|
|
20
|
-
import
|
|
21
|
-
__toESM
|
|
22
|
-
} from "./chunk-BXO7ZPPU.mjs";
|
|
18
|
+
import "./chunk-BXO7ZPPU.mjs";
|
|
23
19
|
|
|
24
20
|
// node/cli.ts
|
|
25
|
-
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
|
26
21
|
import path from "node:path";
|
|
27
22
|
import os from "node:os";
|
|
28
23
|
import { exec } from "node:child_process";
|
|
@@ -34,6 +29,7 @@ import yargs from "yargs";
|
|
|
34
29
|
import prompts from "prompts";
|
|
35
30
|
import { blue, bold, cyan, dim, gray, green, underline, yellow } from "kolorist";
|
|
36
31
|
import isInstalledGlobally from "is-installed-globally";
|
|
32
|
+
import equal from "fast-deep-equal";
|
|
37
33
|
import { verifyConfig } from "@slidev/parser";
|
|
38
34
|
import { injectPreparserExtensionLoader } from "@slidev/parser/fs";
|
|
39
35
|
import { checkPort } from "get-port-please";
|
|
@@ -139,7 +135,7 @@ cli.command(
|
|
|
139
135
|
if (!theme && resolveThemeName(newData.config.theme) !== resolveThemeName(data.config.theme)) {
|
|
140
136
|
console.log(yellow("\n restarting on theme change\n"));
|
|
141
137
|
initServer();
|
|
142
|
-
} else if (CONFIG_RESTART_FIELDS.some((i) => !(
|
|
138
|
+
} else if (CONFIG_RESTART_FIELDS.some((i) => !equal(newData.config[i], data.config[i]))) {
|
|
143
139
|
console.log(yellow("\n restarting on config change\n"));
|
|
144
140
|
initServer();
|
|
145
141
|
}
|
|
@@ -273,7 +269,7 @@ cli.command(
|
|
|
273
269
|
}).strict().help(),
|
|
274
270
|
async (args) => {
|
|
275
271
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
276
|
-
const { build } = await import("./build-
|
|
272
|
+
const { build } = await import("./build-YLYTHH42.mjs");
|
|
277
273
|
for (const entryFile of entry) {
|
|
278
274
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
279
275
|
if (download && !options.data.config.download)
|
package/dist/index.mjs
CHANGED
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
isPath,
|
|
10
10
|
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LJCKPP2I.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createWindiCSSPlugin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GLZC72RJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ViteSlidevPlugin
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-HJK7CHXL.mjs";
|
|
19
|
+
import "./chunk-CTBVOVLQ.mjs";
|
|
20
20
|
import "./chunk-5L3XKTHL.mjs";
|
|
21
21
|
import "./chunk-BXO7ZPPU.mjs";
|
|
22
22
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@antfu/utils": "^0.7.
|
|
46
|
-
"@
|
|
47
|
-
"@iconify-json/
|
|
48
|
-
"@iconify-json/ph": "^1.1.8",
|
|
45
|
+
"@antfu/utils": "^0.7.7",
|
|
46
|
+
"@iconify-json/carbon": "^1.1.26",
|
|
47
|
+
"@iconify-json/ph": "^1.1.9",
|
|
49
48
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
50
49
|
"@mrdrogdrog/optional": "^1.2.1",
|
|
51
50
|
"@unocss/extractor-mdc": "^0.58.0",
|
|
52
51
|
"@unocss/reset": "^0.58.0",
|
|
53
|
-
"@vitejs/plugin-vue": "^4.5.
|
|
52
|
+
"@vitejs/plugin-vue": "^4.5.2",
|
|
54
53
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
55
54
|
"@windicss/config": "^1.9.2",
|
|
56
55
|
"cli-progress": "^3.12.0",
|
|
57
56
|
"codemirror": "^5.65.5",
|
|
58
57
|
"connect": "^3.7.0",
|
|
59
58
|
"debug": "^4.3.4",
|
|
59
|
+
"fast-deep-equal": "^3.1.3",
|
|
60
60
|
"fast-glob": "^3.3.2",
|
|
61
61
|
"fs-extra": "^11.2.0",
|
|
62
62
|
"get-port-please": "^3.1.1",
|
|
@@ -68,11 +68,13 @@
|
|
|
68
68
|
"js-base64": "^3.7.5",
|
|
69
69
|
"katex": "^0.16.9",
|
|
70
70
|
"kolorist": "^1.8.0",
|
|
71
|
+
"local-pkg": "^0.5.0",
|
|
71
72
|
"localtunnel": "^2.0.2",
|
|
72
|
-
"markdown-it": "^
|
|
73
|
-
"markdown-it-footnote": "^
|
|
73
|
+
"markdown-it": "^14.0.0",
|
|
74
|
+
"markdown-it-footnote": "^4.0.0",
|
|
74
75
|
"markdown-it-link-attributes": "^4.0.1",
|
|
75
|
-
"markdown-it-mdc": "^0.1
|
|
76
|
+
"markdown-it-mdc": "^0.2.1",
|
|
77
|
+
"markdown-it-shikiji": "^0.8.7",
|
|
76
78
|
"monaco-editor": "^0.37.1",
|
|
77
79
|
"nanoid": "^5.0.4",
|
|
78
80
|
"open": "^9.1.0",
|
|
@@ -85,32 +87,33 @@
|
|
|
85
87
|
"resolve": "^1.22.8",
|
|
86
88
|
"resolve-from": "^5.0.0",
|
|
87
89
|
"resolve-global": "^2.0.0",
|
|
88
|
-
"shiki": "npm:shikiji-compat@^0.7
|
|
90
|
+
"shiki": "npm:shikiji-compat@^0.8.7",
|
|
91
|
+
"shikiji": "^0.8.7",
|
|
92
|
+
"shikiji-twoslash": "^0.8.7",
|
|
93
|
+
"sirv": "^2.0.3",
|
|
89
94
|
"unocss": "^0.58.0",
|
|
90
95
|
"unplugin-icons": "^0.18.1",
|
|
91
96
|
"unplugin-vue-components": "^0.26.0",
|
|
92
97
|
"unplugin-vue-markdown": "^0.25.2",
|
|
93
98
|
"uqr": "^0.1.2",
|
|
94
|
-
"vite": "^5.0.
|
|
99
|
+
"vite": "^5.0.8",
|
|
95
100
|
"vite-plugin-inspect": "^0.8.1",
|
|
96
101
|
"vite-plugin-remote-assets": "^0.4.0",
|
|
97
102
|
"vite-plugin-static-copy": "^1.0.0",
|
|
98
103
|
"vite-plugin-vue-server-ref": "^0.4.0",
|
|
99
104
|
"vite-plugin-windicss": "^1.9.2",
|
|
100
105
|
"vitefu": "^0.2.5",
|
|
101
|
-
"vue": "^3.3.
|
|
106
|
+
"vue": "^3.3.11",
|
|
102
107
|
"windicss": "^3.5.6",
|
|
103
108
|
"yargs": "^17.7.2",
|
|
104
|
-
"@slidev/client": "0.
|
|
105
|
-
"@slidev/parser": "0.
|
|
106
|
-
"@slidev/types": "0.
|
|
109
|
+
"@slidev/client": "0.46.0",
|
|
110
|
+
"@slidev/parser": "0.46.0",
|
|
111
|
+
"@slidev/types": "0.46.0"
|
|
107
112
|
},
|
|
108
113
|
"devDependencies": {
|
|
114
|
+
"@hedgedoc/markdown-it-plugins": "^2.1.4",
|
|
109
115
|
"@types/plantuml-encoder": "^1.4.2",
|
|
110
|
-
"
|
|
111
|
-
"local-pkg": "^0.5.0",
|
|
112
|
-
"semver": "^7.5.4",
|
|
113
|
-
"sirv": "^2.0.3"
|
|
116
|
+
"semver": "^7.5.4"
|
|
114
117
|
},
|
|
115
118
|
"scripts": {
|
|
116
119
|
"build": "rimraf dist && tsup node/index.ts node/cli.ts",
|
package/template.md
CHANGED
|
@@ -155,7 +155,6 @@ Check out [the guides](https://sli.dev/builtin/components.html) for more.
|
|
|
155
155
|
</div>
|
|
156
156
|
</div>
|
|
157
157
|
|
|
158
|
-
|
|
159
158
|
---
|
|
160
159
|
class: px-20
|
|
161
160
|
---
|
|
@@ -319,7 +318,6 @@ C -->|Two| E[Result 2]
|
|
|
319
318
|
|
|
320
319
|
[Learn More](https://sli.dev/guide/syntax.html#diagrams)
|
|
321
320
|
|
|
322
|
-
|
|
323
321
|
---
|
|
324
322
|
layout: center
|
|
325
323
|
class: text-center
|