@vixt/vue 0.0.6 → 0.0.7
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/index.d.mts +30 -2
- package/dist/index.d.ts +30 -2
- package/dist/index.mjs +6 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import
|
|
2
|
+
import * as _vixt_core from '@vixt/core';
|
|
3
|
+
import { AppOptions, PluginOptions, VixtOptions } from '@vixt/core';
|
|
4
|
+
import Vue from '@vitejs/plugin-vue';
|
|
5
|
+
import Components from 'unplugin-vue-components/vite';
|
|
6
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
|
7
|
+
import VueDevTools from 'vite-plugin-vue-devtools';
|
|
8
|
+
import VueRouter from 'unplugin-vue-router/vite';
|
|
9
|
+
import UnoCSS from 'unocss/vite';
|
|
10
|
+
|
|
11
|
+
declare const entryVue: _vixt_core.VixtModule<AppOptions>;
|
|
12
|
+
|
|
13
|
+
declare module '@vixt/core' {
|
|
14
|
+
interface VixtOptions {
|
|
15
|
+
vue?: PluginOptions<typeof Vue>;
|
|
16
|
+
/** https://github.com/posva/unplugin-vue-router */
|
|
17
|
+
router?: PluginOptions<typeof VueRouter>;
|
|
18
|
+
/** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
|
|
19
|
+
layouts?: any;
|
|
20
|
+
/** https://github.com/antfu/unplugin-vue-components */
|
|
21
|
+
components?: PluginOptions<typeof Components>;
|
|
22
|
+
/** https://github.com/antfu/unplugin-auto-import */
|
|
23
|
+
imports?: PluginOptions<typeof AutoImport>;
|
|
24
|
+
/** https://github.com/antfu/unocss */
|
|
25
|
+
unocss?: PluginOptions<typeof UnoCSS>;
|
|
26
|
+
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
27
|
+
devtools?: PluginOptions<typeof VueDevTools>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
declare const presetVue: _vixt_core.VixtModule<VixtOptions>;
|
|
3
31
|
|
|
4
32
|
declare const _default: (options?: VixtOptions | undefined) => vite.PluginOption;
|
|
5
33
|
|
|
6
|
-
export { _default as default };
|
|
34
|
+
export { _default as default, entryVue, presetVue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import
|
|
2
|
+
import * as _vixt_core from '@vixt/core';
|
|
3
|
+
import { AppOptions, PluginOptions, VixtOptions } from '@vixt/core';
|
|
4
|
+
import Vue from '@vitejs/plugin-vue';
|
|
5
|
+
import Components from 'unplugin-vue-components/vite';
|
|
6
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
|
7
|
+
import VueDevTools from 'vite-plugin-vue-devtools';
|
|
8
|
+
import VueRouter from 'unplugin-vue-router/vite';
|
|
9
|
+
import UnoCSS from 'unocss/vite';
|
|
10
|
+
|
|
11
|
+
declare const entryVue: _vixt_core.VixtModule<AppOptions>;
|
|
12
|
+
|
|
13
|
+
declare module '@vixt/core' {
|
|
14
|
+
interface VixtOptions {
|
|
15
|
+
vue?: PluginOptions<typeof Vue>;
|
|
16
|
+
/** https://github.com/posva/unplugin-vue-router */
|
|
17
|
+
router?: PluginOptions<typeof VueRouter>;
|
|
18
|
+
/** https://github.com/JohnCampionJr/vite-plugin-vue-layouts */
|
|
19
|
+
layouts?: any;
|
|
20
|
+
/** https://github.com/antfu/unplugin-vue-components */
|
|
21
|
+
components?: PluginOptions<typeof Components>;
|
|
22
|
+
/** https://github.com/antfu/unplugin-auto-import */
|
|
23
|
+
imports?: PluginOptions<typeof AutoImport>;
|
|
24
|
+
/** https://github.com/antfu/unocss */
|
|
25
|
+
unocss?: PluginOptions<typeof UnoCSS>;
|
|
26
|
+
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
27
|
+
devtools?: PluginOptions<typeof VueDevTools>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
declare const presetVue: _vixt_core.VixtModule<VixtOptions>;
|
|
3
31
|
|
|
4
32
|
declare const _default: (options?: VixtOptions | undefined) => vite.PluginOption;
|
|
5
33
|
|
|
6
|
-
export { _default as default };
|
|
34
|
+
export { _default as default, entryVue, presetVue };
|
package/dist/index.mjs
CHANGED
|
@@ -31,8 +31,8 @@ import { routes } from 'vue-router/auto-routes'
|
|
|
31
31
|
import { setupLayouts } from 'virtual:generated-layouts'
|
|
32
32
|
import { createPinia } from 'pinia'
|
|
33
33
|
import { createPersistedState } from 'pinia-plugin-persistedstate'
|
|
34
|
-
import App from '@/App.vue'
|
|
35
34
|
|
|
35
|
+
import App from '@/App.vue'
|
|
36
36
|
${cssTemplate}
|
|
37
37
|
|
|
38
38
|
const pinia = createPinia()
|
|
@@ -55,12 +55,13 @@ app.mount('#${rootId}')
|
|
|
55
55
|
fs.outputFileSync(path.resolve(rootDir, buildDir, "main.ts"), code);
|
|
56
56
|
return code;
|
|
57
57
|
}
|
|
58
|
-
const name = "vixt:entry";
|
|
58
|
+
const name = "vixt:entry-vue";
|
|
59
59
|
const defaults$1 = {
|
|
60
|
+
baseURL: "/",
|
|
60
61
|
rootId: "app",
|
|
61
62
|
css: ["virtual:uno.css"]
|
|
62
63
|
};
|
|
63
|
-
const
|
|
64
|
+
const entryVue = defineVixtModule({
|
|
64
65
|
meta: { name, configKey: "app" },
|
|
65
66
|
defaults: defaults$1,
|
|
66
67
|
setup(options, vixt) {
|
|
@@ -110,7 +111,7 @@ const presetVue = defineVixtModule({
|
|
|
110
111
|
});
|
|
111
112
|
|
|
112
113
|
const defaults = {
|
|
113
|
-
modules: [
|
|
114
|
+
modules: [entryVue, presetVue],
|
|
114
115
|
app: {
|
|
115
116
|
head: {
|
|
116
117
|
link: [{ rel: "icon", href: "/favicon.ico" }]
|
|
@@ -124,4 +125,4 @@ const defaults = {
|
|
|
124
125
|
};
|
|
125
126
|
const index = createVixtPlugin({ defaults });
|
|
126
127
|
|
|
127
|
-
export { index as default };
|
|
128
|
+
export { index as default, entryVue, presetVue };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
32
32
|
"vue": "^3.4.31",
|
|
33
33
|
"vue-router": "^4.4.0",
|
|
34
|
-
"@vixt/core": "0.0.
|
|
34
|
+
"@vixt/core": "0.0.7"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild"
|