@slidev/cli 0.42.0 → 0.42.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 +2 -2
- package/dist/{build-FWNZEWR3.js → build-24AF6H7C.js} +5 -5
- package/dist/{build-2HNZGPOJ.mjs → build-75SXK7LG.mjs} +1 -1
- package/dist/{chunk-F4LLVFU7.js → chunk-2HKFVCDQ.js} +3 -3
- package/dist/{chunk-DZKW5SLI.js → chunk-I4IJL2WL.js} +4 -4
- package/dist/{chunk-C5RFODBO.mjs → chunk-Q2GGXDNF.mjs} +3 -3
- package/dist/{chunk-7S3GFZIX.mjs → chunk-RW4YYS57.mjs} +2 -2
- package/dist/cli.js +27 -27
- package/dist/cli.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Presentation <b>slide</b>s for <b>dev</b>elopers 🧑💻👩💻👨
|
|
|
39
39
|
- 📝 [**Markdown-based**](https://sli.dev/guide/syntax.html) - use your favorite editors and workflow
|
|
40
40
|
- 🧑💻 [**Developer Friendly**](https://sli.dev/guide/syntax.html#code-blocks) - built-in syntax highlighting, live coding, etc.
|
|
41
41
|
- 🎨 [**Themable**](https://sli.dev/themes/gallery.html) - theme can be shared and used with npm packages.
|
|
42
|
-
- 🌈 [**Stylish**](https://sli.dev/guide/syntax.html#embedded-styles) - on-demand utilities via [
|
|
42
|
+
- 🌈 [**Stylish**](https://sli.dev/guide/syntax.html#embedded-styles) - on-demand utilities via [UnoCSS](https://github.com/unocss/unocss).
|
|
43
43
|
- 🤹 [**Interactive**](https://sli.dev/custom/directory-structure.html#components) - embedding Vue components seamlessly.
|
|
44
44
|
- 🎙 [**Presenter Mode**](https://sli.dev/guide/presenter-mode.html) - use another window, or even your phone to control your slides.
|
|
45
45
|
- 🧮 [**LaTeX**](https://sli.dev/guide/syntax.html#latex) - built-in LaTeX math equations support.
|
|
@@ -78,7 +78,7 @@ For a full example, you can check the [demo](https://github.com/slidevjs/slidev/
|
|
|
78
78
|
|
|
79
79
|
- [Vite](https://vitejs.dev) - An extremely fast frontend tooling
|
|
80
80
|
- [Vue 3](https://v3.vuejs.org/) powered [Markdown](https://daringfireball.net/projects/markdown/syntax) - Focus on the content while having the power of HTML and Vue components whenever needed
|
|
81
|
-
- [
|
|
81
|
+
- [UnoCSS](https://github.com/unocss/unocss) - On-demand utility-first CSS engine, style your slides at ease
|
|
82
82
|
- [Prism](https://github.com/PrismJS/prism), [Shiki](https://github.com/shikijs/shiki), [Monaco Editor](https://github.com/Microsoft/monaco-editor) - First-class code snippets support with live coding capability
|
|
83
83
|
- [RecordRTC](https://recordrtc.org) - Built-in recording and camera view
|
|
84
84
|
- [VueUse](https://vueuse.org) family - [`@vueuse/core`](https://github.com/vueuse/vueuse), [`@vueuse/head`](https://github.com/vueuse/head), [`@vueuse/motion`](https://github.com/vueuse/motion), etc.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2HKFVCDQjs = require('./chunk-2HKFVCDQ.js');
|
|
6
6
|
require('./chunk-KKGXM3XL.js');
|
|
7
7
|
require('./chunk-6ZL4B4HQ.js');
|
|
8
8
|
require('./chunk-MJQETB73.js');
|
|
@@ -651,16 +651,16 @@ async function build(options, viteConfig = {}, args) {
|
|
|
651
651
|
let originalIndexHTML;
|
|
652
652
|
if (_fsextra2.default.existsSync(indexPath))
|
|
653
653
|
originalIndexHTML = await _fsextra2.default.readFile(indexPath, "utf-8");
|
|
654
|
-
await _fsextra2.default.writeFile(indexPath, await
|
|
654
|
+
await _fsextra2.default.writeFile(indexPath, await _chunk2HKFVCDQjs.getIndexHtml.call(void 0, options), "utf-8");
|
|
655
655
|
let config = void 0;
|
|
656
656
|
try {
|
|
657
|
-
const inlineConfig = await
|
|
657
|
+
const inlineConfig = await _chunk2HKFVCDQjs.mergeViteConfigs.call(void 0,
|
|
658
658
|
options,
|
|
659
659
|
viteConfig,
|
|
660
660
|
{
|
|
661
661
|
root: options.userRoot,
|
|
662
662
|
plugins: [
|
|
663
|
-
await
|
|
663
|
+
await _chunk2HKFVCDQjs.ViteSlidevPlugin.call(void 0, options, pluginOptions),
|
|
664
664
|
{
|
|
665
665
|
name: "resolve-config",
|
|
666
666
|
configResolved(_config) {
|
|
@@ -681,7 +681,7 @@ async function build(options, viteConfig = {}, args) {
|
|
|
681
681
|
} else {
|
|
682
682
|
console.log(_kolorist.blue.call(void 0, " building for Monaco...\n"));
|
|
683
683
|
await _vite.build.call(void 0,
|
|
684
|
-
await
|
|
684
|
+
await _chunk2HKFVCDQjs.mergeViteConfigs.call(void 0,
|
|
685
685
|
options,
|
|
686
686
|
inlineConfig,
|
|
687
687
|
{
|
|
@@ -208,7 +208,7 @@ var dependencies = {
|
|
|
208
208
|
unocss: "^0.52.4",
|
|
209
209
|
"vite-plugin-windicss": "^1.9.0",
|
|
210
210
|
vue: "^3.3.4",
|
|
211
|
-
"vue-router": "^4.2.
|
|
211
|
+
"vue-router": "^4.2.2",
|
|
212
212
|
"vue-starport": "^0.3.0",
|
|
213
213
|
windicss: "^3.5.6"
|
|
214
214
|
};
|
|
@@ -1366,9 +1366,9 @@ function transformHighlighter(md2) {
|
|
|
1366
1366
|
return md2.replace(/^```(\w+?)(?:\s*{([\d\w*,\|-]+)}\s*?({.*?})?\s*?)?\n([\s\S]+?)^```/mg, (full, lang = "", rangeStr = "", options = "", code) => {
|
|
1367
1367
|
const ranges = rangeStr.split(/\|/g).map((i) => i.trim());
|
|
1368
1368
|
code = code.trimEnd();
|
|
1369
|
-
options = options.trim() ||
|
|
1369
|
+
options = options.trim() || void 0;
|
|
1370
1370
|
return `
|
|
1371
|
-
<CodeBlockWrapper
|
|
1371
|
+
<CodeBlockWrapper :options="${options}" :ranges='${JSON.stringify(ranges)}'>
|
|
1372
1372
|
|
|
1373
1373
|
\`\`\`${lang}
|
|
1374
1374
|
${code}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2HKFVCDQjs = require('./chunk-2HKFVCDQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -2431,7 +2431,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2431
2431
|
const pluginOptions = rawConfig.slidev || {};
|
|
2432
2432
|
process.env.EDITOR = process.env.EDITOR || "code";
|
|
2433
2433
|
const server = await _vite.createServer.call(void 0,
|
|
2434
|
-
await
|
|
2434
|
+
await _chunk2HKFVCDQjs.mergeViteConfigs.call(void 0,
|
|
2435
2435
|
options,
|
|
2436
2436
|
viteConfig,
|
|
2437
2437
|
{
|
|
@@ -2441,7 +2441,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2441
2441
|
]
|
|
2442
2442
|
},
|
|
2443
2443
|
plugins: [
|
|
2444
|
-
await
|
|
2444
|
+
await _chunk2HKFVCDQjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
2445
2445
|
]
|
|
2446
2446
|
},
|
|
2447
2447
|
"serve"
|
|
@@ -2454,7 +2454,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2454
2454
|
var _fs = require('@slidev/parser/fs'); var parser = _interopRequireWildcard(_fs);
|
|
2455
2455
|
|
|
2456
2456
|
// package.json
|
|
2457
|
-
var version = "0.42.
|
|
2457
|
+
var version = "0.42.2";
|
|
2458
2458
|
|
|
2459
2459
|
// node/themes.ts
|
|
2460
2460
|
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts);
|
|
@@ -208,7 +208,7 @@ var dependencies = {
|
|
|
208
208
|
unocss: "^0.52.4",
|
|
209
209
|
"vite-plugin-windicss": "^1.9.0",
|
|
210
210
|
vue: "^3.3.4",
|
|
211
|
-
"vue-router": "^4.2.
|
|
211
|
+
"vue-router": "^4.2.2",
|
|
212
212
|
"vue-starport": "^0.3.0",
|
|
213
213
|
windicss: "^3.5.6"
|
|
214
214
|
};
|
|
@@ -1366,9 +1366,9 @@ function transformHighlighter(md2) {
|
|
|
1366
1366
|
return md2.replace(/^```(\w+?)(?:\s*{([\d\w*,\|-]+)}\s*?({.*?})?\s*?)?\n([\s\S]+?)^```/mg, (full, lang = "", rangeStr = "", options = "", code) => {
|
|
1367
1367
|
const ranges = rangeStr.split(/\|/g).map((i) => i.trim());
|
|
1368
1368
|
code = code.trimEnd();
|
|
1369
|
-
options = options.trim() ||
|
|
1369
|
+
options = options.trim() || void 0;
|
|
1370
1370
|
return `
|
|
1371
|
-
<CodeBlockWrapper
|
|
1371
|
+
<CodeBlockWrapper :options="${options}" :ranges='${JSON.stringify(ranges)}'>
|
|
1372
1372
|
|
|
1373
1373
|
\`\`\`${lang}
|
|
1374
1374
|
${code}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ViteSlidevPlugin,
|
|
3
3
|
mergeViteConfigs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q2GGXDNF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
packageExists,
|
|
7
7
|
resolveImportPath
|
|
@@ -2454,7 +2454,7 @@ async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
|
2454
2454
|
import * as parser from "@slidev/parser/fs";
|
|
2455
2455
|
|
|
2456
2456
|
// package.json
|
|
2457
|
-
var version = "0.42.
|
|
2457
|
+
var version = "0.42.2";
|
|
2458
2458
|
|
|
2459
2459
|
// node/themes.ts
|
|
2460
2460
|
import prompts2 from "prompts";
|
package/dist/cli.js
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkI4IJL2WLjs = require('./chunk-I4IJL2WL.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2HKFVCDQjs = require('./chunk-2HKFVCDQ.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkKKGXM3XLjs = require('./chunk-KKGXM3XL.js');
|
|
@@ -22,7 +22,7 @@ require('./chunk-6ZL4B4HQ.js');
|
|
|
22
22
|
var _chunkMJQETB73js = require('./chunk-MJQETB73.js');
|
|
23
23
|
|
|
24
24
|
// node/cli.ts
|
|
25
|
-
var import_fast_deep_equal = _chunkMJQETB73js.__toESM.call(void 0,
|
|
25
|
+
var import_fast_deep_equal = _chunkMJQETB73js.__toESM.call(void 0, _chunk2HKFVCDQjs.require_fast_deep_equal.call(void 0, ));
|
|
26
26
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
27
27
|
var _os = require('os'); var _os2 = _interopRequireDefault(_os);
|
|
28
28
|
var _child_process = require('child_process');
|
|
@@ -48,15 +48,15 @@ _fs.injectPreparserExtensionLoader.call(void 0, async (headmatter, filepath) =>
|
|
|
48
48
|
const roots = (
|
|
49
49
|
/* uniq */
|
|
50
50
|
[
|
|
51
|
-
|
|
52
|
-
...
|
|
53
|
-
|
|
51
|
+
_chunkI4IJL2WLjs.getUserRoot.call(void 0, {}).userRoot,
|
|
52
|
+
..._chunkI4IJL2WLjs.getAddonRoots.call(void 0, addons, ""),
|
|
53
|
+
_chunkI4IJL2WLjs.getClientRoot.call(void 0, )
|
|
54
54
|
]
|
|
55
55
|
);
|
|
56
56
|
const mergeArrays = (a, b) => a.concat(b);
|
|
57
57
|
return await _chunkKKGXM3XLjs.loadSetups.call(void 0, roots, "preparser.ts", { filepath, headmatter }, [], false, mergeArrays);
|
|
58
58
|
});
|
|
59
|
-
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(
|
|
59
|
+
var cli = _yargs2.default.scriptName("slidev").usage("$0 [args]").version(_chunkI4IJL2WLjs.version).strict().showHelpOnFail(false).alias("h", "help").alias("v", "version");
|
|
60
60
|
cli.command(
|
|
61
61
|
"* [entry]",
|
|
62
62
|
"Start a local server for Slidev",
|
|
@@ -112,9 +112,9 @@ cli.command(
|
|
|
112
112
|
async function initServer() {
|
|
113
113
|
if (server)
|
|
114
114
|
await server.close();
|
|
115
|
-
const options = await
|
|
115
|
+
const options = await _chunkI4IJL2WLjs.resolveOptions.call(void 0, { entry, remote, theme, inspect }, "dev");
|
|
116
116
|
port = userPort || await findFreePort(3030);
|
|
117
|
-
server = await
|
|
117
|
+
server = await _chunkI4IJL2WLjs.createServer.call(void 0,
|
|
118
118
|
options,
|
|
119
119
|
{
|
|
120
120
|
server: {
|
|
@@ -128,7 +128,7 @@ cli.command(
|
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
onDataReload(newData, data) {
|
|
131
|
-
if (!theme &&
|
|
131
|
+
if (!theme && _chunkI4IJL2WLjs.resolveThemeName.call(void 0, newData.config.theme) !== _chunkI4IJL2WLjs.resolveThemeName.call(void 0, data.config.theme)) {
|
|
132
132
|
console.log(_kolorist.yellow.call(void 0, "\n restarting on theme change\n"));
|
|
133
133
|
initServer();
|
|
134
134
|
} else if (CONFIG_RESTART_FIELDS.some((i) => !(0, import_fast_deep_equal.default)(newData.config[i], data.config[i]))) {
|
|
@@ -246,9 +246,9 @@ cli.command(
|
|
|
246
246
|
}).strict().help(),
|
|
247
247
|
async (args) => {
|
|
248
248
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
249
|
-
const { build } = await Promise.resolve().then(() => require("./build-
|
|
249
|
+
const { build } = await Promise.resolve().then(() => require("./build-24AF6H7C.js"));
|
|
250
250
|
for (const entryFile of entry) {
|
|
251
|
-
const options = await
|
|
251
|
+
const options = await _chunkI4IJL2WLjs.resolveOptions.call(void 0, { entry: entryFile, theme, inspect }, "build");
|
|
252
252
|
if (download && !options.data.config.download)
|
|
253
253
|
options.data.config.download = download;
|
|
254
254
|
printInfo(options);
|
|
@@ -268,9 +268,9 @@ cli.command(
|
|
|
268
268
|
(args) => commonOptions(args).strict().help(),
|
|
269
269
|
async ({ entry }) => {
|
|
270
270
|
for (const entryFile of entry) {
|
|
271
|
-
const data = await
|
|
272
|
-
|
|
273
|
-
await
|
|
271
|
+
const data = await _chunkI4IJL2WLjs.parser.load(entryFile);
|
|
272
|
+
_chunkI4IJL2WLjs.parser.prettify(data);
|
|
273
|
+
await _chunkI4IJL2WLjs.parser.save(data);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
);
|
|
@@ -286,17 +286,17 @@ cli.command(
|
|
|
286
286
|
default: "theme"
|
|
287
287
|
}),
|
|
288
288
|
async ({ entry, dir, theme: themeInput }) => {
|
|
289
|
-
const data = await
|
|
290
|
-
const theme =
|
|
289
|
+
const data = await _chunkI4IJL2WLjs.parser.load(entry);
|
|
290
|
+
const theme = _chunkI4IJL2WLjs.resolveThemeName.call(void 0, themeInput || data.config.theme);
|
|
291
291
|
if (theme === "none") {
|
|
292
292
|
console.error('Cannot eject theme "none"');
|
|
293
293
|
process.exit(1);
|
|
294
294
|
}
|
|
295
|
-
if (
|
|
295
|
+
if (_chunkI4IJL2WLjs.isPath.call(void 0, theme)) {
|
|
296
296
|
console.error("Theme is already ejected");
|
|
297
297
|
process.exit(1);
|
|
298
298
|
}
|
|
299
|
-
const roots =
|
|
299
|
+
const roots = _chunkI4IJL2WLjs.getThemeRoots.call(void 0, theme, entry);
|
|
300
300
|
if (!roots.length) {
|
|
301
301
|
console.error(`Could not find theme "${theme}"`);
|
|
302
302
|
process.exit(1);
|
|
@@ -308,7 +308,7 @@ cli.command(
|
|
|
308
308
|
const dirPath = `./${dir}`;
|
|
309
309
|
data.slides[0].frontmatter.theme = dirPath;
|
|
310
310
|
data.slides[0].raw = null;
|
|
311
|
-
await
|
|
311
|
+
await _chunkI4IJL2WLjs.parser.save(data);
|
|
312
312
|
console.log(`Theme "${theme}" ejected successfully to "${dirPath}"`);
|
|
313
313
|
}
|
|
314
314
|
);
|
|
@@ -328,8 +328,8 @@ cli.command(
|
|
|
328
328
|
const { exportSlides, getExportOptions } = await Promise.resolve().then(() => require("./export-PN4EOI4Z.js"));
|
|
329
329
|
const port = await findFreePort(12445);
|
|
330
330
|
for (const entryFile of entry) {
|
|
331
|
-
const options = await
|
|
332
|
-
const server = await
|
|
331
|
+
const options = await _chunkI4IJL2WLjs.resolveOptions.call(void 0, { entry: entryFile, theme }, "export");
|
|
332
|
+
const server = await _chunkI4IJL2WLjs.createServer.call(void 0,
|
|
333
333
|
options,
|
|
334
334
|
{
|
|
335
335
|
server: { port },
|
|
@@ -338,7 +338,7 @@ cli.command(
|
|
|
338
338
|
);
|
|
339
339
|
await server.listen(port);
|
|
340
340
|
printInfo(options);
|
|
341
|
-
|
|
341
|
+
_chunkI4IJL2WLjs.parser.filterDisabled(options.data);
|
|
342
342
|
const result = await exportSlides({
|
|
343
343
|
port,
|
|
344
344
|
...getExportOptions({ ...args, entry: entryFile }, options)
|
|
@@ -374,8 +374,8 @@ cli.command(
|
|
|
374
374
|
const { exportNotes } = await Promise.resolve().then(() => require("./export-PN4EOI4Z.js"));
|
|
375
375
|
const port = await findFreePort(12445);
|
|
376
376
|
for (const entryFile of entry) {
|
|
377
|
-
const options = await
|
|
378
|
-
const server = await
|
|
377
|
+
const options = await _chunkI4IJL2WLjs.resolveOptions.call(void 0, { entry: entryFile }, "export");
|
|
378
|
+
const server = await _chunkI4IJL2WLjs.createServer.call(void 0,
|
|
379
379
|
options,
|
|
380
380
|
{
|
|
381
381
|
server: { port },
|
|
@@ -384,7 +384,7 @@ cli.command(
|
|
|
384
384
|
);
|
|
385
385
|
await server.listen(port);
|
|
386
386
|
printInfo(options);
|
|
387
|
-
|
|
387
|
+
_chunkI4IJL2WLjs.parser.filterDisabled(options.data);
|
|
388
388
|
const result = await exportNotes({
|
|
389
389
|
port,
|
|
390
390
|
output: output || (options.data.config.exportFilename ? `${options.data.config.exportFilename}-notes` : `${_path2.default.basename(entryFile, ".md")}-export-notes`),
|
|
@@ -445,7 +445,7 @@ function printInfo(options, port, remote, tunnelUrl) {
|
|
|
445
445
|
console.log();
|
|
446
446
|
console.log();
|
|
447
447
|
console.log(` ${_kolorist.cyan.call(void 0, "\u25CF") + _kolorist.blue.call(void 0, "\u25A0") + _kolorist.yellow.call(void 0, "\u25B2")}`);
|
|
448
|
-
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${
|
|
448
|
+
console.log(`${_kolorist.bold.call(void 0, " Slidev")} ${_kolorist.blue.call(void 0, `v${_chunkI4IJL2WLjs.version}`)} ${_isinstalledglobally2.default ? _kolorist.yellow.call(void 0, "(global)") : ""}`);
|
|
449
449
|
console.log();
|
|
450
450
|
_parser.verifyConfig.call(void 0, options.data.config, options.data.themeMeta, (v) => console.warn(_kolorist.yellow.call(void 0, ` ! ${v}`)));
|
|
451
451
|
console.log(_kolorist.dim.call(void 0, " theme ") + (options.theme ? _kolorist.green.call(void 0, options.theme) : _kolorist.gray.call(void 0, "none")));
|
package/dist/cli.mjs
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
resolveOptions,
|
|
10
10
|
resolveThemeName,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RW4YYS57.mjs";
|
|
13
13
|
import {
|
|
14
14
|
require_fast_deep_equal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q2GGXDNF.mjs";
|
|
16
16
|
import {
|
|
17
17
|
loadSetups
|
|
18
18
|
} from "./chunk-6XVZLT3I.mjs";
|
|
@@ -246,7 +246,7 @@ cli.command(
|
|
|
246
246
|
}).strict().help(),
|
|
247
247
|
async (args) => {
|
|
248
248
|
const { entry, theme, watch, base, download, out, inspect } = args;
|
|
249
|
-
const { build } = await import("./build-
|
|
249
|
+
const { build } = await import("./build-75SXK7LG.mjs");
|
|
250
250
|
for (const entryFile of entry) {
|
|
251
251
|
const options = await resolveOptions({ entry: entryFile, theme, inspect }, "build");
|
|
252
252
|
if (download && !options.data.config.download)
|
package/dist/index.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkI4IJL2WLjs = require('./chunk-I4IJL2WL.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkYI4ZV27Kjs = require('./chunk-YI4ZV27K.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk2HKFVCDQjs = require('./chunk-2HKFVCDQ.js');
|
|
19
19
|
require('./chunk-KKGXM3XL.js');
|
|
20
20
|
require('./chunk-6ZL4B4HQ.js');
|
|
21
21
|
require('./chunk-MJQETB73.js');
|
|
@@ -32,4 +32,4 @@ require('./chunk-MJQETB73.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
exports.ViteSlidevPlugin =
|
|
35
|
+
exports.ViteSlidevPlugin = _chunk2HKFVCDQjs.ViteSlidevPlugin; exports.createServer = _chunkI4IJL2WLjs.createServer; exports.createWindiCSSPlugin = _chunkYI4ZV27Kjs.createWindiCSSPlugin; exports.getAddonRoots = _chunkI4IJL2WLjs.getAddonRoots; exports.getCLIRoot = _chunkI4IJL2WLjs.getCLIRoot; exports.getClientRoot = _chunkI4IJL2WLjs.getClientRoot; exports.getRoot = _chunkI4IJL2WLjs.getRoot; exports.getThemeRoots = _chunkI4IJL2WLjs.getThemeRoots; exports.getUserRoot = _chunkI4IJL2WLjs.getUserRoot; exports.isPath = _chunkI4IJL2WLjs.isPath; exports.parser = _chunkI4IJL2WLjs.parser; exports.resolveOptions = _chunkI4IJL2WLjs.resolveOptions;
|
package/dist/index.mjs
CHANGED
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
isPath,
|
|
10
10
|
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RW4YYS57.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createWindiCSSPlugin
|
|
15
15
|
} from "./chunk-X7P5WRYP.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ViteSlidevPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q2GGXDNF.mjs";
|
|
19
19
|
import "./chunk-6XVZLT3I.mjs";
|
|
20
20
|
import "./chunk-CIUEQ4TI.mjs";
|
|
21
21
|
import "./chunk-L5QH2WZE.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.2",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@antfu/utils": "^0.7.2",
|
|
46
46
|
"@hedgedoc/markdown-it-plugins": "^2.0.0",
|
|
47
|
-
"@iconify-json/carbon": "^1.1.
|
|
47
|
+
"@iconify-json/carbon": "^1.1.17",
|
|
48
48
|
"@iconify-json/ph": "^1.1.5",
|
|
49
49
|
"@lillallol/outline-pdf": "^4.0.0",
|
|
50
50
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"vue": "^3.3.4",
|
|
95
95
|
"windicss": "^3.5.6",
|
|
96
96
|
"yargs": "^17.7.2",
|
|
97
|
-
"@slidev/client": "0.42.
|
|
98
|
-
"@slidev/parser": "0.42.
|
|
99
|
-
"@slidev/types": "0.42.
|
|
97
|
+
"@slidev/client": "0.42.2",
|
|
98
|
+
"@slidev/parser": "0.42.2",
|
|
99
|
+
"@slidev/types": "0.42.2"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@types/plantuml-encoder": "^1.4.0",
|