@varlet/vite-plugins 3.6.5 → 3.7.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/lib/index.d.ts +30 -0
- package/package.json +3 -3
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
|
|
3
|
+
interface MarkdownOptions {
|
|
4
|
+
style?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function markdown(options: MarkdownOptions): Plugin;
|
|
7
|
+
|
|
8
|
+
interface HtmlOptions {
|
|
9
|
+
data?: Record<string, string | string[] | Record<string, any>>;
|
|
10
|
+
}
|
|
11
|
+
declare function html(options: HtmlOptions): Plugin;
|
|
12
|
+
|
|
13
|
+
interface InlineCssOptions {
|
|
14
|
+
cssFile: string;
|
|
15
|
+
jsFile: string;
|
|
16
|
+
onEnd?(): void;
|
|
17
|
+
}
|
|
18
|
+
declare function inlineCss(options: InlineCssOptions): Plugin;
|
|
19
|
+
|
|
20
|
+
interface CopyPath {
|
|
21
|
+
from: string;
|
|
22
|
+
to: string;
|
|
23
|
+
type: 'folder' | 'file';
|
|
24
|
+
}
|
|
25
|
+
interface CopyOptions {
|
|
26
|
+
paths: CopyPath[];
|
|
27
|
+
}
|
|
28
|
+
declare function copy(options: CopyOptions): Plugin;
|
|
29
|
+
|
|
30
|
+
export { CopyOptions, CopyPath, HtmlOptions, InlineCssOptions, MarkdownOptions, copy, html, inlineCss, markdown };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/vite-plugins",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "vite plugins of varlet",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"highlight.js": "^10.7.2",
|
|
27
27
|
"markdown-it": "^12.2.3",
|
|
28
28
|
"pinyin-pro": "3.17.0",
|
|
29
|
-
"@varlet/shared": "3.
|
|
29
|
+
"@varlet/shared": "3.7.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/ejs": "^3.1.1",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/markdown-it": "^12.2.3",
|
|
35
35
|
"@types/node": "^18.7.20",
|
|
36
36
|
"tsup": "7.2.0",
|
|
37
|
-
"typescript": "5.
|
|
37
|
+
"typescript": "5.3.3",
|
|
38
38
|
"vite": "5.4.6"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|