@slidev/cli 0.33.0 → 0.33.1
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-P4Q57V2J.mjs → build-JAORN7ES.mjs} +3 -3
- package/dist/{build-JMQRM5SA.js → build-OWDFSW6Q.js} +13 -13
- package/dist/{chunk-C7GPMAIX.mjs → chunk-DGFMEJWT.mjs} +10 -10
- package/dist/{chunk-FFZLS6QK.js → chunk-IP7ZGKHI.js} +2 -2
- package/dist/{chunk-ZWCVPYOA.mjs → chunk-IWKTUAXD.mjs} +2 -2
- package/dist/{chunk-JQEMHC65.js → chunk-LIMOCTLS.js} +154 -154
- package/dist/{chunk-ORQ3SHUX.mjs → chunk-MVE4F2AE.mjs} +3 -3
- package/dist/{chunk-UNBXPUSG.js → chunk-WGEHDK3K.js} +66 -66
- package/dist/cli.js +24 -24
- package/dist/cli.mjs +5 -5
- package/dist/{export-LOKLMK66.js → export-JHIU6OQI.js} +4 -4
- package/dist/{export-5R6FV775.mjs → export-Z44PM4CT.mjs} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/package.json +12 -12
package/dist/cli.mjs
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
resolveOptions,
|
|
7
7
|
resolveThemeName,
|
|
8
8
|
version
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MVE4F2AE.mjs";
|
|
10
10
|
import {
|
|
11
11
|
require_fast_deep_equal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DGFMEJWT.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__dirname,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM,
|
|
17
17
|
init_esm_shims
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IWKTUAXD.mjs";
|
|
19
19
|
|
|
20
20
|
// node/cli.ts
|
|
21
21
|
init_esm_shims();
|
|
@@ -169,7 +169,7 @@ cli.command("build [entry]", "Build hostable SPA", (args) => commonOptions(args)
|
|
|
169
169
|
type: "boolean",
|
|
170
170
|
describe: "allow download as PDF"
|
|
171
171
|
}).strict().help(), async ({ entry, theme, watch, base, download, out }) => {
|
|
172
|
-
const { build } = await Promise.resolve().then(() => __toESM(__require("./build-
|
|
172
|
+
const { build } = await Promise.resolve().then(() => __toESM(__require("./build-JAORN7ES.mjs")));
|
|
173
173
|
const options = await resolveOptions({ entry, theme }, "build");
|
|
174
174
|
if (download && !options.data.config.download)
|
|
175
175
|
options.data.config.download = download;
|
|
@@ -256,7 +256,7 @@ cli.command("export [entry]", "Export slides to PDF", (args) => commonOptions(ar
|
|
|
256
256
|
"with-clicks": withClicks
|
|
257
257
|
}) => {
|
|
258
258
|
process.env.NODE_ENV = "production";
|
|
259
|
-
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-
|
|
259
|
+
const { exportSlides } = await Promise.resolve().then(() => __toESM(__require("./export-Z44PM4CT.mjs")));
|
|
260
260
|
const port = await findFreePort(12445);
|
|
261
261
|
const options = await resolveOptions({ entry, theme }, "build");
|
|
262
262
|
output = output || options.data.config.exportFilename || `${path.basename(entry, ".md")}-export`;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIP7ZGKHIjs = require('./chunk-IP7ZGKHI.js');
|
|
7
7
|
|
|
8
8
|
// node/export.ts
|
|
9
|
-
|
|
9
|
+
_chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
11
11
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
12
12
|
var _kolorist = require('kolorist');
|
|
@@ -60,10 +60,10 @@ async function exportSlides({
|
|
|
60
60
|
height = 1080,
|
|
61
61
|
withClicks = false
|
|
62
62
|
}) {
|
|
63
|
-
if (!
|
|
63
|
+
if (!_chunkIP7ZGKHIjs.packageExists.call(void 0, "playwright-chromium"))
|
|
64
64
|
throw new Error("The exporting for Slidev is powered by Playwright, please installed it via `npm i -D playwright-chromium`");
|
|
65
65
|
const pages = _core.parseRangeString.call(void 0, total, range);
|
|
66
|
-
const { chromium } = await Promise.resolve().then(() =>
|
|
66
|
+
const { chromium } = await Promise.resolve().then(() => _chunkIP7ZGKHIjs.__toESM.call(void 0, _chunkIP7ZGKHIjs.__require.call(void 0, "playwright-chromium")));
|
|
67
67
|
const browser = await chromium.launch();
|
|
68
68
|
const context = await browser.newContext({
|
|
69
69
|
viewport: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Vue from '@vitejs/plugin-vue';
|
|
2
2
|
import Icons from 'unplugin-icons/vite';
|
|
3
3
|
import Components from 'unplugin-vue-components/vite';
|
|
4
|
-
import Markdown from 'vite-plugin-
|
|
4
|
+
import Markdown from 'vite-plugin-vue-markdown';
|
|
5
5
|
import WindiCSS from 'vite-plugin-windicss';
|
|
6
6
|
import RemoteAssets from 'vite-plugin-remote-assets';
|
|
7
7
|
import ServerRef from 'vite-plugin-vue-server-ref';
|
package/dist/index.js
CHANGED
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkLIMOCTLSjs = require('./chunk-LIMOCTLS.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWGEHDK3Kjs = require('./chunk-WGEHDK3K.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkIP7ZGKHIjs = require('./chunk-IP7ZGKHI.js');
|
|
20
20
|
|
|
21
21
|
// node/index.ts
|
|
22
|
-
|
|
22
|
+
_chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
|
|
24
24
|
// node/declare.ts
|
|
25
|
-
|
|
25
|
+
_chunkIP7ZGKHIjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -36,4 +36,4 @@ _chunkFFZLS6QKjs.init_cjs_shims.call(void 0, );
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
exports.ViteSlidevPlugin =
|
|
39
|
+
exports.ViteSlidevPlugin = _chunkWGEHDK3Kjs.ViteSlidevPlugin; exports.createServer = _chunkLIMOCTLSjs.createServer; exports.createWindiCSSPlugin = _chunkWGEHDK3Kjs.createWindiCSSPlugin; exports.getAddonRoots = _chunkLIMOCTLSjs.getAddonRoots; exports.getCLIRoot = _chunkLIMOCTLSjs.getCLIRoot; exports.getClientRoot = _chunkLIMOCTLSjs.getClientRoot; exports.getRoot = _chunkLIMOCTLSjs.getRoot; exports.getThemeRoots = _chunkLIMOCTLSjs.getThemeRoots; exports.getUserRoot = _chunkLIMOCTLSjs.getUserRoot; exports.isPath = _chunkLIMOCTLSjs.isPath; exports.parser = _chunkLIMOCTLSjs.parser; exports.resolveOptions = _chunkLIMOCTLSjs.resolveOptions;
|
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-MVE4F2AE.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ViteSlidevPlugin,
|
|
15
15
|
createWindiCSSPlugin
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DGFMEJWT.mjs";
|
|
17
17
|
import {
|
|
18
18
|
init_esm_shims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IWKTUAXD.mjs";
|
|
20
20
|
|
|
21
21
|
// node/index.ts
|
|
22
22
|
init_esm_shims();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@antfu/utils": "^0.5.2",
|
|
46
46
|
"@iconify-json/carbon": "^1.1.5",
|
|
47
47
|
"@iconify-json/ph": "^1.1.1",
|
|
48
|
-
"@slidev/client": "0.33.
|
|
49
|
-
"@slidev/parser": "0.33.
|
|
50
|
-
"@slidev/types": "0.33.
|
|
48
|
+
"@slidev/client": "0.33.1",
|
|
49
|
+
"@slidev/parser": "0.33.1",
|
|
50
|
+
"@slidev/types": "0.33.1",
|
|
51
51
|
"@vitejs/plugin-vue": "^2.3.3",
|
|
52
|
-
"@vue/compiler-sfc": "^3.2.
|
|
52
|
+
"@vue/compiler-sfc": "^3.2.37",
|
|
53
53
|
"cli-progress": "^3.11.1",
|
|
54
54
|
"codemirror": "^5.65.5",
|
|
55
55
|
"connect": "^3.7.0",
|
|
@@ -61,29 +61,29 @@
|
|
|
61
61
|
"is-installed-globally": "^0.4.0",
|
|
62
62
|
"jiti": "^1.13.0",
|
|
63
63
|
"js-base64": "^3.7.2",
|
|
64
|
-
"katex": "^0.
|
|
64
|
+
"katex": "^0.16.0",
|
|
65
65
|
"kolorist": "^1.5.1",
|
|
66
66
|
"markdown-it": "^13.0.1",
|
|
67
67
|
"markdown-it-footnote": "^3.0.3",
|
|
68
68
|
"markdown-it-link-attributes": "^4.0.0",
|
|
69
69
|
"monaco-editor": "^0.33.0",
|
|
70
|
-
"nanoid": "^
|
|
70
|
+
"nanoid": "^4.0.0",
|
|
71
71
|
"open": "^8.4.0",
|
|
72
72
|
"plantuml-encoder": "^1.4.0",
|
|
73
73
|
"prismjs": "^1.28.0",
|
|
74
74
|
"prompts": "^2.4.2",
|
|
75
|
-
"resolve": "^1.22.
|
|
75
|
+
"resolve": "^1.22.1",
|
|
76
76
|
"resolve-from": "^5.0.0",
|
|
77
77
|
"resolve-global": "^1.0.0",
|
|
78
78
|
"shiki": "^0.10.1",
|
|
79
|
-
"unplugin-icons": "^0.14.
|
|
79
|
+
"unplugin-icons": "^0.14.5",
|
|
80
80
|
"unplugin-vue-components": "^0.19.6",
|
|
81
|
-
"vite": "^2.9.
|
|
82
|
-
"vite-plugin-md": "^0.13.1",
|
|
81
|
+
"vite": "^2.9.12",
|
|
83
82
|
"vite-plugin-remote-assets": "^0.2.2",
|
|
83
|
+
"vite-plugin-vue-markdown": "^0.1.0",
|
|
84
84
|
"vite-plugin-vue-server-ref": "^0.2.4",
|
|
85
85
|
"vite-plugin-windicss": "^1.8.4",
|
|
86
|
-
"vue": "^3.2.
|
|
86
|
+
"vue": "^3.2.37",
|
|
87
87
|
"windicss": "^3.5.4",
|
|
88
88
|
"yargs": "^17.5.1"
|
|
89
89
|
},
|