@vixt/vue 0.0.9 → 0.0.11
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +7 -5
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -25,7 +25,9 @@ declare module '@vixt/core' {
|
|
|
25
25
|
/** https://github.com/antfu/unocss */
|
|
26
26
|
unocss?: PluginOptions<typeof UnoCSS>;
|
|
27
27
|
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
28
|
-
devtools?: PluginOptions<typeof VueDevTools
|
|
28
|
+
devtools?: PluginOptions<typeof VueDevTools> & {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
};
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
declare const presetVue: _vixt_core.VixtModule<VixtOptions>;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ declare module '@vixt/core' {
|
|
|
25
25
|
/** https://github.com/antfu/unocss */
|
|
26
26
|
unocss?: PluginOptions<typeof UnoCSS>;
|
|
27
27
|
/** https://github.com/webfansplz/vite-plugin-vue-devtools */
|
|
28
|
-
devtools?: PluginOptions<typeof VueDevTools
|
|
28
|
+
devtools?: PluginOptions<typeof VueDevTools> & {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
};
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
declare const presetVue: _vixt_core.VixtModule<VixtOptions>;
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,10 @@ import UnoCSS from 'unocss/vite';
|
|
|
14
14
|
function resolveLayersPlugins(layers, from) {
|
|
15
15
|
const { plugins = [] } = resolveLayersDirs(layers);
|
|
16
16
|
return plugins.map((pluginPath) => {
|
|
17
|
-
|
|
17
|
+
let pluginsDir = path.relative(from, pluginPath);
|
|
18
|
+
if (!pluginPath.startsWith(".") && !pluginPath.startsWith("/")) {
|
|
19
|
+
pluginsDir = `./${pluginsDir}`;
|
|
20
|
+
}
|
|
18
21
|
return `${pluginsDir}/*.ts`;
|
|
19
22
|
});
|
|
20
23
|
}
|
|
@@ -84,8 +87,7 @@ const presetVue = defineVixtModule({
|
|
|
84
87
|
dts: `${buildTypesDir}/components.d.ts`,
|
|
85
88
|
dirs: components,
|
|
86
89
|
directoryAsNamespace: true,
|
|
87
|
-
collapseSamePrefixes: true
|
|
88
|
-
allowOverrides: true
|
|
90
|
+
collapseSamePrefixes: true
|
|
89
91
|
},
|
|
90
92
|
imports: {
|
|
91
93
|
imports: ["vue", "@vueuse/core", "pinia", VueRouterAutoImports],
|
|
@@ -94,7 +96,7 @@ const presetVue = defineVixtModule({
|
|
|
94
96
|
vueTemplate: true
|
|
95
97
|
},
|
|
96
98
|
unocss: {},
|
|
97
|
-
devtools: {}
|
|
99
|
+
devtools: { enabled: false }
|
|
98
100
|
};
|
|
99
101
|
const options = defu(vixt.options, defaultOptions);
|
|
100
102
|
const plugins = [
|
|
@@ -104,7 +106,7 @@ const presetVue = defineVixtModule({
|
|
|
104
106
|
Components(options.components),
|
|
105
107
|
AutoImport(options.imports),
|
|
106
108
|
UnoCSS(options.unocss),
|
|
107
|
-
VueDevTools(options.devtools)
|
|
109
|
+
options.devtools?.enabled && VueDevTools(options.devtools)
|
|
108
110
|
];
|
|
109
111
|
return plugins;
|
|
110
112
|
}
|
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.11",
|
|
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.11"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild"
|