@soubiran/vite 0.6.4 → 0.7.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/index.mjs +13 -6
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -871,7 +871,7 @@ function sitemap_default(options) {
|
|
|
871
871
|
}
|
|
872
872
|
//#endregion
|
|
873
873
|
//#region src/plugins/ssg.ts
|
|
874
|
-
function ssg_default(
|
|
874
|
+
function ssg_default(_ = {}) {
|
|
875
875
|
return {
|
|
876
876
|
name: "soubiran:ssg",
|
|
877
877
|
config() {
|
|
@@ -885,8 +885,8 @@ function factory(options) {
|
|
|
885
885
|
const plugins = [];
|
|
886
886
|
if (options.router !== false) plugins.push(router({
|
|
887
887
|
extensions: [".vue", ".md"],
|
|
888
|
-
routesFolder: "pages",
|
|
889
|
-
dts: "src/route-map.d.ts",
|
|
888
|
+
routesFolder: "src/app/pages",
|
|
889
|
+
dts: "src/app/route-map.d.ts",
|
|
890
890
|
extendRoute(route) {
|
|
891
891
|
const path = route.components.get("default");
|
|
892
892
|
if (!path) return;
|
|
@@ -910,15 +910,22 @@ function factory(options) {
|
|
|
910
910
|
];
|
|
911
911
|
if (options.router !== false) imports.push("vue-router");
|
|
912
912
|
plugins.push(ui({
|
|
913
|
+
scanPackages: ["@soubiran/ui"],
|
|
913
914
|
router: options.router !== false,
|
|
914
915
|
autoImport: {
|
|
915
|
-
dts: "src/auto-imports.d.ts",
|
|
916
|
-
dirs: [
|
|
916
|
+
dts: "src/app/auto-imports.d.ts",
|
|
917
|
+
dirs: [
|
|
918
|
+
"src/app/utils",
|
|
919
|
+
"src/app/composables",
|
|
920
|
+
"src/shared/utils",
|
|
921
|
+
"src/shared/types"
|
|
922
|
+
],
|
|
917
923
|
imports
|
|
918
924
|
},
|
|
919
925
|
components: {
|
|
920
926
|
include: componentIncludePatterns,
|
|
921
|
-
|
|
927
|
+
dirs: ["src/app/components"],
|
|
928
|
+
dts: "src/app/components.d.ts",
|
|
922
929
|
resolvers: [soubiranResolver()]
|
|
923
930
|
},
|
|
924
931
|
ui: { colors: { neutral: "neutral" } }
|
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.0",
|
|
5
5
|
"author": "Estéban Soubiran <esteban@soubiran.dev>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/Barbapapazes",
|
|
@@ -32,13 +32,13 @@
|
|
|
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",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"shiki": "^4.0.2",
|
|
55
55
|
"sitemap": "^9.0.1",
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
|
-
"ufo": "^1.6.
|
|
58
|
-
"unhead": "^
|
|
57
|
+
"ufo": "^1.6.4",
|
|
58
|
+
"unhead": "^3.0.5",
|
|
59
59
|
"unplugin-fonts": "^2.0.0",
|
|
60
60
|
"unplugin-icons": "^23.0.1",
|
|
61
61
|
"unplugin-vue-markdown": "^30.0.0",
|
|
62
62
|
"vite": "^8.0.10",
|
|
63
63
|
"vite-ssg": "^28.3.0",
|
|
64
64
|
"vue-router": "^5.0.6",
|
|
65
|
-
"@soubiran/ui": "0.
|
|
65
|
+
"@soubiran/ui": "0.7.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"tsdown": "^0.21.
|
|
68
|
+
"tsdown": "^0.21.10"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown"
|