Use nuxt 4 folder structure

This commit is contained in:
Nicola Spadari
2025-01-02 18:23:18 +01:00
parent 96cfcc2f20
commit cfe9b17162
29 changed files with 5 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ Build super fast desktop applications!
## Technologies run-down
- Nuxt 3
- Nuxt 3 (v4 ready!)
- Tauri 2
- UnoCSS
- Typescript
@@ -84,7 +84,7 @@ The same Tauri bundle will generate under `src-tauri/target`, but with the abili
## Notes
- Tauri v2 brings some big refactors, such as packages names and permission management. New permissions have to be granted under `src-tauri/capabilities/main.json`
- Tauri js functions are auto imported as-is with the help of a custom module. If another Tauri plugin is added, then the module has to be updated to support auto imports under `src/modules/tauri.ts`
- Tauri js functions are auto imported with the help of a custom module, named like `useTauri<LibraryName>`. If another Tauri plugin is added, then the module has to be updated to support its functions under `src/modules/tauri.ts`
- As per documentation, Nuxt SSR must be disabled in order for Tauri to act as the backend. Still, all Nuxt goodies will be functional.
## License

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

Before

Width:  |  Height:  |  Size: 409 KiB

After

Width:  |  Height:  |  Size: 409 KiB

View File

@@ -60,7 +60,6 @@ export default defineNuxtConfig({
}
}
},
srcDir: "src/",
ssr: false,
devServer: {
host: "0.0.0.0"
@@ -70,5 +69,8 @@ export default defineNuxtConfig({
standalone: false
}
},
future: {
compatibilityVersion: 4
},
compatibilityDate: "2025-01-01"
});