@keyblade/vite-plugin-vue-pro 1.0.0 → 1.0.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/es/index.d.ts +11 -17
- package/es/index.js +26 -29
- package/package.json +5 -5
package/es/index.d.ts
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/** vue开发者工具 配置 */
|
|
13
|
-
vueDevTools?: VitePluginVueDevToolsOptions;
|
|
14
|
-
/** 打包分析 配置 */
|
|
15
|
-
visualizer?: Parameters<typeof visualizer>[0];
|
|
1
|
+
import { PluginOption } from 'vite';
|
|
2
|
+
import { Options as VueOptions } from '@vitejs/plugin-vue';
|
|
3
|
+
import { VitePluginVueDevToolsOptions } from 'vite-plugin-vue-devtools';
|
|
4
|
+
import { visualizer } from 'rollup-plugin-visualizer';
|
|
5
|
+
export default function framework(options?: {
|
|
6
|
+
/** vue 配置 */
|
|
7
|
+
vue?: VueOptions;
|
|
8
|
+
/** vue开发者工具 配置 */
|
|
9
|
+
vueDevTools?: VitePluginVueDevToolsOptions;
|
|
10
|
+
/** 打包分析 配置 */
|
|
11
|
+
visualizer?: Parameters<typeof visualizer>[0];
|
|
16
12
|
}): PluginOption[];
|
|
17
|
-
//#endregion
|
|
18
|
-
export { framework as default };
|
package/es/index.js
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { monitorUsage } from "@foundbyte/security-monitor-usage";
|
|
5
|
-
import { visualizer } from "rollup-plugin-visualizer";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
};
|
|
1
|
+
import "vite";
|
|
2
|
+
import e from "@vitejs/plugin-vue";
|
|
3
|
+
import u from "vite-plugin-vue-devtools";
|
|
4
|
+
import { monitorUsage as m } from "@foundbyte/security-monitor-usage";
|
|
5
|
+
import { visualizer as a } from "rollup-plugin-visualizer";
|
|
6
|
+
function f() {
|
|
7
|
+
return {
|
|
8
|
+
/** 名称 */
|
|
9
|
+
name: "keyblade-pro-security-monitor",
|
|
10
|
+
/** 顺序 */
|
|
11
|
+
enforce: "post",
|
|
12
|
+
/** 启动时执行 */
|
|
13
|
+
async buildStart() {
|
|
14
|
+
await m("未知");
|
|
15
|
+
}
|
|
16
|
+
};
|
|
19
17
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
];
|
|
18
|
+
function y(r) {
|
|
19
|
+
return [
|
|
20
|
+
e(r == null ? void 0 : r.vue),
|
|
21
|
+
u(r == null ? void 0 : r.vueDevTools),
|
|
22
|
+
a(r == null ? void 0 : r.visualizer),
|
|
23
|
+
f()
|
|
24
|
+
];
|
|
28
25
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
export {
|
|
27
|
+
y as default
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@keyblade/vite-plugin-vue-pro",
|
|
3
3
|
"description": "KeyBlade Vite Plugin Vue Pro",
|
|
4
4
|
"author": "yangshuai <704807396@qq.com>",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "es/index.js",
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"sideEffects": false,
|
|
20
|
-
"
|
|
20
|
+
"devDependencies": {
|
|
21
21
|
"@foundbyte/security-monitor-usage": "^1.0.1",
|
|
22
22
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
23
|
-
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
24
23
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
25
24
|
"vite-plugin-vue-devtools": "^8.0.1"
|
|
26
25
|
},
|
|
@@ -28,8 +27,9 @@
|
|
|
28
27
|
"vite": ">=6.0.0"
|
|
29
28
|
},
|
|
30
29
|
"scripts": {
|
|
31
|
-
"build": "
|
|
32
|
-
"publish:npm": "pnpm publish"
|
|
30
|
+
"build": "vite build",
|
|
31
|
+
"publish:npm": "pnpm publish",
|
|
32
|
+
"sync:sync": "cnpm sync @keyblade/vite-plugin-vue-pro"
|
|
33
33
|
},
|
|
34
34
|
"typings": "es/index.d.ts"
|
|
35
35
|
}
|