@vixt/vue 0.5.16 → 0.6.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/dist/client/App.d.ts +8 -0
- package/dist/client/App.js +8 -0
- package/dist/client/entry.d.ts +8 -0
- package/dist/client/entry.js +28 -0
- package/dist/client/plugins/pinia.d.ts +6 -0
- package/dist/client/plugins/pinia.js +18 -0
- package/dist/client/plugins/router.d.ts +6 -0
- package/dist/client/plugins/router.js +23 -0
- package/dist/index.d.mts +6 -63
- package/dist/index.mjs +8805 -205
- package/dist/types/client.d.ts +20 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/node.d.ts +28 -0
- package/package.json +15 -19
- package/dist/index.d.ts +0 -64
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Pinia } from 'pinia'
|
|
2
|
+
import type { PluginOptions as PersistedStateOptions } from 'pinia-plugin-persistedstate'
|
|
3
|
+
import type { App } from 'vue'
|
|
4
|
+
import type { Router, RouteRecord, RouterOptions } from 'vue-router'
|
|
5
|
+
|
|
6
|
+
declare module '@vixt/core/client' {
|
|
7
|
+
interface VixtAppConfig {
|
|
8
|
+
router?: Partial<RouterOptions>
|
|
9
|
+
/** https://github.com/prazdevs/pinia-plugin-persistedstate */
|
|
10
|
+
piniaPersistedState?: PersistedStateOptions
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface VixtApp {
|
|
14
|
+
app: App
|
|
15
|
+
router: Router
|
|
16
|
+
routes: RouteRecord[]
|
|
17
|
+
pinia: Pinia
|
|
18
|
+
appConfig: VixtAppConfig
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type Vue from '@vitejs/plugin-vue'
|
|
2
|
+
import type VueJsx from '@vitejs/plugin-vue-jsx'
|
|
3
|
+
import type { ExtractPluginOptions } from '@vixt/core'
|
|
4
|
+
import type UnoCSS from 'unocss/vite'
|
|
5
|
+
import type AutoImport from 'unplugin-auto-import/vite'
|
|
6
|
+
import type Components from 'unplugin-vue-components/vite'
|
|
7
|
+
import type VueRouter from 'unplugin-vue-router/vite'
|
|
8
|
+
import type VueDevTools from 'vite-plugin-vue-devtools'
|
|
9
|
+
import type Layouts from 'vite-plugin-vue-layouts'
|
|
10
|
+
|
|
11
|
+
declare module '@vixt/core' {
|
|
12
|
+
interface VixtOptions {
|
|
13
|
+
vue?: ExtractPluginOptions<typeof Vue>
|
|
14
|
+
vueJsx?: ExtractPluginOptions<typeof VueJsx>
|
|
15
|
+
/** https://github.com/posva/unplugin-vue-router */
|
|
16
|
+
router?: ExtractPluginOptions<typeof VueRouter>
|
|
17
|
+
/** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
|
|
18
|
+
layouts?: ExtractPluginOptions<typeof Layouts>
|
|
19
|
+
/** https://github.com/unplugin/unplugin-vue-components */
|
|
20
|
+
components?: ExtractPluginOptions<typeof Components>
|
|
21
|
+
/** https://github.com/unplugin/unplugin-auto-import */
|
|
22
|
+
imports?: ExtractPluginOptions<typeof AutoImport>
|
|
23
|
+
/** https://github.com/unocss/unocss */
|
|
24
|
+
unocss?: ExtractPluginOptions<typeof UnoCSS>
|
|
25
|
+
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
26
|
+
devtools?: ExtractPluginOptions<typeof VueDevTools> & { enabled?: boolean }
|
|
27
|
+
}
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -12,35 +12,31 @@
|
|
|
12
12
|
"vue"
|
|
13
13
|
],
|
|
14
14
|
"exports": {
|
|
15
|
-
".":
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
".": "./dist/index.mjs",
|
|
16
|
+
"./client/*": "./dist/client/*.js",
|
|
17
|
+
"./types": "./dist/types/index.d.ts",
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
19
|
},
|
|
20
|
-
"main": "dist/index.mjs",
|
|
21
|
-
"types": "dist/index.d.ts",
|
|
20
|
+
"main": "./dist/index.mjs",
|
|
21
|
+
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"files": [
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
27
|
-
"@vitejs/plugin-vue-jsx": "^5.1.
|
|
26
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
27
|
+
"@vitejs/plugin-vue-jsx": "^5.1.3",
|
|
28
28
|
"@vueuse/core": "^13.9.0",
|
|
29
29
|
"pinia": "^3.0.4",
|
|
30
30
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
31
|
-
"unocss": "^66.5.
|
|
31
|
+
"unocss": "^66.5.11",
|
|
32
32
|
"unplugin-auto-import": "^20.3.0",
|
|
33
33
|
"unplugin-vue-components": "28.0.0",
|
|
34
|
-
"unplugin-vue-router": "^0.
|
|
34
|
+
"unplugin-vue-router": "^0.19.1",
|
|
35
35
|
"vite-plugin-vue-devtools": "^8.0.5",
|
|
36
36
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
37
|
-
"vue": "^3.5.
|
|
38
|
-
"vue-router": "^4.6.
|
|
39
|
-
"vue-tsc": "^3.1
|
|
40
|
-
"@vixt/core": "0.
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "unbuild",
|
|
44
|
-
"dev": "unbuild --stub"
|
|
37
|
+
"vue": "^3.5.26",
|
|
38
|
+
"vue-router": "^4.6.4",
|
|
39
|
+
"vue-tsc": "^3.2.1",
|
|
40
|
+
"@vixt/core": "0.6.0"
|
|
45
41
|
}
|
|
46
42
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as vite from 'vite';
|
|
2
|
-
import * as _vixt_core from '@vixt/core';
|
|
3
|
-
import { AppOptions, Vixt, PluginOptions as PluginOptions$1, VixtOptions } from '@vixt/core';
|
|
4
|
-
import { Pinia } from 'pinia';
|
|
5
|
-
import { PluginOptions } from 'pinia-plugin-persistedstate';
|
|
6
|
-
import { App } from 'vue';
|
|
7
|
-
import { RouterOptions, Router, RouteRecord } from 'vue-router';
|
|
8
|
-
import Vue from '@vitejs/plugin-vue';
|
|
9
|
-
import VueJsx from '@vitejs/plugin-vue-jsx';
|
|
10
|
-
import UnoCSS from 'unocss/vite';
|
|
11
|
-
import AutoImport from 'unplugin-auto-import/vite';
|
|
12
|
-
import Components from 'unplugin-vue-components/vite';
|
|
13
|
-
import VueRouter from 'unplugin-vue-router/vite';
|
|
14
|
-
import VueDevTools from 'vite-plugin-vue-devtools';
|
|
15
|
-
import Layouts from 'vite-plugin-vue-layouts';
|
|
16
|
-
|
|
17
|
-
declare module '@vixt/core/client' {
|
|
18
|
-
interface VixtAppConfig {
|
|
19
|
-
router?: Partial<RouterOptions>
|
|
20
|
-
/** https://github.com/prazdevs/pinia-plugin-persistedstate */
|
|
21
|
-
piniaPersistedState?: PluginOptions
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface VixtApp {
|
|
25
|
-
app: App
|
|
26
|
-
router: Router
|
|
27
|
-
routes: RouteRecord[]
|
|
28
|
-
pinia: Pinia
|
|
29
|
-
appConfig: VixtAppConfig
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
declare const appVue: _vixt_core.VixtModule<AppOptions>;
|
|
34
|
-
|
|
35
|
-
declare function getAppComponentPath(vixt: Vixt): string | undefined;
|
|
36
|
-
declare function genarateAppComponent(vixt: Vixt): string;
|
|
37
|
-
|
|
38
|
-
declare function generateMainTs(options: AppOptions, vixt: Vixt): string;
|
|
39
|
-
|
|
40
|
-
declare module '@vixt/core' {
|
|
41
|
-
interface VixtOptions {
|
|
42
|
-
vue?: PluginOptions$1<typeof Vue>;
|
|
43
|
-
vueJsx?: PluginOptions$1<typeof VueJsx>;
|
|
44
|
-
/** https://github.com/posva/unplugin-vue-router */
|
|
45
|
-
router?: PluginOptions$1<typeof VueRouter>;
|
|
46
|
-
/** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
|
|
47
|
-
layouts?: PluginOptions$1<typeof Layouts>;
|
|
48
|
-
/** https://github.com/unplugin/unplugin-vue-components */
|
|
49
|
-
components?: PluginOptions$1<typeof Components>;
|
|
50
|
-
/** https://github.com/unplugin/unplugin-auto-import */
|
|
51
|
-
imports?: PluginOptions$1<typeof AutoImport>;
|
|
52
|
-
/** https://github.com/unocss/unocss */
|
|
53
|
-
unocss?: PluginOptions$1<typeof UnoCSS>;
|
|
54
|
-
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
55
|
-
devtools?: PluginOptions$1<typeof VueDevTools> & {
|
|
56
|
-
enabled?: boolean;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
declare const presetVue: _vixt_core.VixtModule<VixtOptions>;
|
|
61
|
-
|
|
62
|
-
declare const _default: (options?: VixtOptions | undefined) => vite.PluginOption;
|
|
63
|
-
|
|
64
|
-
export { appVue, _default as default, genarateAppComponent, generateMainTs, getAppComponentPath, presetVue };
|