@soubiran/vite 0.6.5 → 0.7.1
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
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import soubiranResolver from "@soubiran/ui/resolver";
|
|
|
7
7
|
import soubiranWrapperClasses from "@soubiran/ui/wrapper-classes";
|
|
8
8
|
import { unheadVueComposablesImports } from "@unhead/vue";
|
|
9
9
|
import vue from "@vitejs/plugin-vue";
|
|
10
|
+
import { defu } from "defu";
|
|
10
11
|
import matter from "gray-matter";
|
|
11
12
|
import fonts from "unplugin-fonts/vite";
|
|
12
13
|
import icons from "unplugin-icons/vite";
|
|
@@ -871,7 +872,7 @@ function sitemap_default(options) {
|
|
|
871
872
|
}
|
|
872
873
|
//#endregion
|
|
873
874
|
//#region src/plugins/ssg.ts
|
|
874
|
-
function ssg_default(
|
|
875
|
+
function ssg_default(_ = {}) {
|
|
875
876
|
return {
|
|
876
877
|
name: "soubiran:ssg",
|
|
877
878
|
config() {
|
|
@@ -885,8 +886,8 @@ function factory(options) {
|
|
|
885
886
|
const plugins = [];
|
|
886
887
|
if (options.router !== false) plugins.push(router({
|
|
887
888
|
extensions: [".vue", ".md"],
|
|
888
|
-
routesFolder: "pages",
|
|
889
|
-
dts: "src/route-map.d.ts",
|
|
889
|
+
routesFolder: "src/app/pages",
|
|
890
|
+
dts: "src/app/route-map.d.ts",
|
|
890
891
|
extendRoute(route) {
|
|
891
892
|
const path = route.components.get("default");
|
|
892
893
|
if (!path) return;
|
|
@@ -909,21 +910,27 @@ function factory(options) {
|
|
|
909
910
|
soubiranComposablesImports
|
|
910
911
|
];
|
|
911
912
|
if (options.router !== false) imports.push("vue-router");
|
|
912
|
-
plugins.push(ui({
|
|
913
|
+
plugins.push(ui(defu(options.ui, {
|
|
913
914
|
scanPackages: ["@soubiran/ui"],
|
|
914
915
|
router: options.router !== false,
|
|
915
916
|
autoImport: {
|
|
916
|
-
dts: "src/auto-imports.d.ts",
|
|
917
|
-
dirs: [
|
|
917
|
+
dts: "src/app/auto-imports.d.ts",
|
|
918
|
+
dirs: [
|
|
919
|
+
"src/app/utils",
|
|
920
|
+
"src/app/composables",
|
|
921
|
+
"src/shared/utils",
|
|
922
|
+
"src/shared/types"
|
|
923
|
+
],
|
|
918
924
|
imports
|
|
919
925
|
},
|
|
920
926
|
components: {
|
|
921
927
|
include: componentIncludePatterns,
|
|
922
|
-
|
|
928
|
+
dirs: ["src/app/components"],
|
|
929
|
+
dts: "src/app/components.d.ts",
|
|
923
930
|
resolvers: [soubiranResolver()]
|
|
924
931
|
},
|
|
925
932
|
ui: { colors: { neutral: "neutral" } }
|
|
926
|
-
}));
|
|
933
|
+
})));
|
|
927
934
|
if (options.markdown !== false) plugins.push(markdown({
|
|
928
935
|
headEnabled: true,
|
|
929
936
|
wrapperClasses: soubiranWrapperClasses,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NuxtUIOptions } from "@nuxt/ui/vite";
|
|
1
2
|
import { Options } from "unplugin-vue-markdown/types";
|
|
2
3
|
|
|
3
4
|
//#region src/markdown/assert.d.ts
|
|
@@ -54,6 +55,7 @@ interface Options$1 {
|
|
|
54
55
|
pageConfig?: (page: string | null, frontmatter: Record<string, any>) => StructuredDataPageConfig;
|
|
55
56
|
};
|
|
56
57
|
};
|
|
58
|
+
ui: NuxtUIOptions;
|
|
57
59
|
ssg?: SsgOptions | false;
|
|
58
60
|
meta?: MetaOptions | false;
|
|
59
61
|
api?: ApiOptions | false;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StructuredDataPageConfig, r as BreadcrumbItem, t as Options } from "./types-
|
|
1
|
+
import { n as StructuredDataPageConfig, r as BreadcrumbItem, t as Options } from "./types-DRZjV2DX.mjs";
|
|
2
2
|
export { BreadcrumbItem, Options, StructuredDataPageConfig };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soubiran/vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"author": "Estéban Soubiran <esteban@soubiran.dev>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/Barbapapazes",
|
|
@@ -32,16 +32,17 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@cloudflare/vite-plugin": "^1.35.0",
|
|
35
|
-
"@nuxt/ui": "4.
|
|
35
|
+
"@nuxt/ui": "^4.7.0",
|
|
36
36
|
"@shikijs/markdown-it": "^4.0.2",
|
|
37
37
|
"@types/fs-extra": "^11.0.4",
|
|
38
38
|
"@types/markdown-it": "^14.1.2",
|
|
39
39
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
40
40
|
"@types/node": "^24.12.0",
|
|
41
|
-
"@unhead/vue": "^
|
|
41
|
+
"@unhead/vue": "^3.0.5",
|
|
42
42
|
"@unpic/placeholder": "^0.1.2",
|
|
43
43
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
44
44
|
"ansis": "^4.2.0",
|
|
45
|
+
"defu": "^6.1.7",
|
|
45
46
|
"fs-extra": "^11.3.4",
|
|
46
47
|
"gray-matter": "^4.0.3",
|
|
47
48
|
"markdown-it": "^14.1.1",
|
|
@@ -54,18 +55,18 @@
|
|
|
54
55
|
"shiki": "^4.0.2",
|
|
55
56
|
"sitemap": "^9.0.1",
|
|
56
57
|
"typescript": "^5.9.3",
|
|
57
|
-
"ufo": "^1.6.
|
|
58
|
-
"unhead": "^
|
|
58
|
+
"ufo": "^1.6.4",
|
|
59
|
+
"unhead": "^3.0.5",
|
|
59
60
|
"unplugin-fonts": "^2.0.0",
|
|
60
61
|
"unplugin-icons": "^23.0.1",
|
|
61
62
|
"unplugin-vue-markdown": "^30.0.0",
|
|
62
63
|
"vite": "^8.0.10",
|
|
63
64
|
"vite-ssg": "^28.3.0",
|
|
64
65
|
"vue-router": "^5.0.6",
|
|
65
|
-
"@soubiran/ui": "0.
|
|
66
|
+
"@soubiran/ui": "0.7.1"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
|
-
"tsdown": "^0.21.
|
|
69
|
+
"tsdown": "^0.21.10"
|
|
69
70
|
},
|
|
70
71
|
"scripts": {
|
|
71
72
|
"build": "tsdown"
|