@slidev/cli 0.31.2 → 0.32.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-DHS7EAI7.js → build-OV5R3MX7.js} +11 -11
- package/dist/{build-HKOWIJTJ.mjs → build-RKDPZPJ4.mjs} +3 -3
- package/dist/{chunk-55JD2XFU.mjs → chunk-2OKC6HYP.mjs} +39 -31
- package/dist/{chunk-U4YYUHKV.mjs → chunk-36AQIIEM.mjs} +441 -3428
- package/dist/{chunk-N6ENRMDM.js → chunk-64ARPHPA.js} +93 -85
- package/dist/{chunk-ZN6VJBWP.js → chunk-ALT27UGE.js} +577 -3564
- package/dist/{chunk-OVW2G2MH.js → chunk-JWGORJY6.js} +6 -5
- package/dist/{chunk-D6ZT4BYV.mjs → chunk-NOFZO6W4.mjs} +7 -6
- package/dist/cli.js +37 -37
- package/dist/cli.mjs +27 -27
- package/dist/{export-HA4VXV3M.mjs → export-GIPHUNUX.mjs} +3 -5
- package/dist/{export-JHHUB6BA.js → export-M6HJUIFY.js} +4 -6
- package/dist/index.d.ts +13 -69
- package/dist/index.js +9 -7
- package/dist/index.mjs +10 -8
- package/package.json +15 -15
- package/dist/chunk-MRYU4L7C.mjs +0 -31
- package/dist/chunk-UGIPPIZX.js +0 -31
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createServer
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
fs_exports,
|
|
2
|
+
createServer,
|
|
3
|
+
getAddonRoots,
|
|
6
4
|
getCLIRoot,
|
|
7
5
|
getClientRoot,
|
|
6
|
+
getRoot,
|
|
8
7
|
getThemeRoots,
|
|
9
8
|
getUserRoot,
|
|
10
9
|
isPath,
|
|
10
|
+
parser,
|
|
11
11
|
resolveOptions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-36AQIIEM.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ViteSlidevPlugin,
|
|
15
15
|
createWindiCSSPlugin
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2OKC6HYP.mjs";
|
|
17
17
|
import {
|
|
18
18
|
init_esm_shims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NOFZO6W4.mjs";
|
|
20
20
|
|
|
21
21
|
// node/index.ts
|
|
22
22
|
init_esm_shims();
|
|
@@ -27,11 +27,13 @@ export {
|
|
|
27
27
|
ViteSlidevPlugin,
|
|
28
28
|
createServer,
|
|
29
29
|
createWindiCSSPlugin,
|
|
30
|
+
getAddonRoots,
|
|
30
31
|
getCLIRoot,
|
|
31
32
|
getClientRoot,
|
|
33
|
+
getRoot,
|
|
32
34
|
getThemeRoots,
|
|
33
35
|
getUserRoot,
|
|
34
36
|
isPath,
|
|
35
|
-
|
|
37
|
+
parser,
|
|
36
38
|
resolveOptions
|
|
37
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"homepage": "https://sli.dev",
|
|
6
6
|
"bugs": "https://github.com/slidevjs/slidev/issues",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@antfu/utils": "^0.5.
|
|
43
|
-
"@iconify-json/carbon": "^1.1.
|
|
42
|
+
"@antfu/utils": "^0.5.2",
|
|
43
|
+
"@iconify-json/carbon": "^1.1.5",
|
|
44
44
|
"@iconify-json/ph": "^1.1.1",
|
|
45
|
-
"@slidev/client": "0.
|
|
46
|
-
"@slidev/parser": "0.
|
|
47
|
-
"@slidev/types": "0.
|
|
48
|
-
"@vitejs/plugin-vue": "^2.3.
|
|
49
|
-
"@vue/compiler-sfc": "^3.2.
|
|
50
|
-
"cli-progress": "^3.11.
|
|
45
|
+
"@slidev/client": "0.32.1",
|
|
46
|
+
"@slidev/parser": "0.32.1",
|
|
47
|
+
"@slidev/types": "0.32.1",
|
|
48
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
49
|
+
"@vue/compiler-sfc": "^3.2.34",
|
|
50
|
+
"cli-progress": "^3.11.1",
|
|
51
51
|
"codemirror": "^5.65.3",
|
|
52
52
|
"connect": "^3.7.0",
|
|
53
53
|
"debug": "^4.3.4",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"resolve-global": "^1.0.0",
|
|
75
75
|
"shiki": "^0.10.1",
|
|
76
76
|
"unplugin-icons": "^0.14.3",
|
|
77
|
-
"unplugin-vue-components": "^0.19.
|
|
78
|
-
"vite": "^2.9.
|
|
79
|
-
"vite-plugin-md": "^0.13.
|
|
77
|
+
"unplugin-vue-components": "^0.19.5",
|
|
78
|
+
"vite": "^2.9.9",
|
|
79
|
+
"vite-plugin-md": "^0.13.1",
|
|
80
80
|
"vite-plugin-remote-assets": "^0.2.2",
|
|
81
81
|
"vite-plugin-vue-server-ref": "^0.2.4",
|
|
82
82
|
"vite-plugin-windicss": "^1.8.4",
|
|
83
|
-
"vue": "^3.2.
|
|
84
|
-
"windicss": "^3.5.
|
|
85
|
-
"yargs": "^17.
|
|
83
|
+
"vue": "^3.2.34",
|
|
84
|
+
"windicss": "^3.5.4",
|
|
85
|
+
"yargs": "^17.5.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@types/plantuml-encoder": "^1.4.0",
|
package/dist/chunk-MRYU4L7C.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ViteSlidevPlugin
|
|
3
|
-
} from "./chunk-55JD2XFU.mjs";
|
|
4
|
-
import {
|
|
5
|
-
init_esm_shims
|
|
6
|
-
} from "./chunk-D6ZT4BYV.mjs";
|
|
7
|
-
|
|
8
|
-
// node/server.ts
|
|
9
|
-
init_esm_shims();
|
|
10
|
-
import { join } from "path";
|
|
11
|
-
import { createServer as createViteServer, mergeConfig, resolveConfig } from "vite";
|
|
12
|
-
async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
13
|
-
const rawConfig = await resolveConfig({}, "serve");
|
|
14
|
-
const pluginOptions = rawConfig.slidev || {};
|
|
15
|
-
process.env.EDITOR = process.env.EDITOR || "code";
|
|
16
|
-
const server = await createViteServer(mergeConfig(viteConfig, {
|
|
17
|
-
optimizeDeps: {
|
|
18
|
-
entries: [
|
|
19
|
-
join(options.clientRoot, "main.ts")
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
plugins: [
|
|
23
|
-
await ViteSlidevPlugin(options, pluginOptions, serverOptions)
|
|
24
|
-
]
|
|
25
|
-
}));
|
|
26
|
-
return server;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
createServer
|
|
31
|
-
};
|
package/dist/chunk-UGIPPIZX.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkN6ENRMDMjs = require('./chunk-N6ENRMDM.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkOVW2G2MHjs = require('./chunk-OVW2G2MH.js');
|
|
7
|
-
|
|
8
|
-
// node/server.ts
|
|
9
|
-
_chunkOVW2G2MHjs.init_cjs_shims.call(void 0, );
|
|
10
|
-
var _path = require('path');
|
|
11
|
-
var _vite = require('vite');
|
|
12
|
-
async function createServer(options, viteConfig = {}, serverOptions = {}) {
|
|
13
|
-
const rawConfig = await _vite.resolveConfig.call(void 0, {}, "serve");
|
|
14
|
-
const pluginOptions = rawConfig.slidev || {};
|
|
15
|
-
process.env.EDITOR = process.env.EDITOR || "code";
|
|
16
|
-
const server = await _vite.createServer.call(void 0, _vite.mergeConfig.call(void 0, viteConfig, {
|
|
17
|
-
optimizeDeps: {
|
|
18
|
-
entries: [
|
|
19
|
-
_path.join.call(void 0, options.clientRoot, "main.ts")
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
plugins: [
|
|
23
|
-
await _chunkN6ENRMDMjs.ViteSlidevPlugin.call(void 0, options, pluginOptions, serverOptions)
|
|
24
|
-
]
|
|
25
|
-
}));
|
|
26
|
-
return server;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.createServer = createServer;
|