feat: update to nuxt 4

This commit is contained in:
Nicola Spadari
2025-07-16 09:51:23 +02:00
parent b707c09176
commit 02583aab7b
6 changed files with 928 additions and 271 deletions

View File

@@ -3,7 +3,7 @@
</p>
<h1 align="center">NUXTOR</h1>
<p align="center">
A spiritual successor of <a href="https://github.com/NicolaSpadari/vitauri">ViTauri</a>, made with <a href="https://nuxt.com">Nuxt 3</a> and <a href="https://v2.tauri.app">Tauri 2</a>
A spiritual successor of <a href="https://github.com/NicolaSpadari/vitauri">ViTauri</a>, made with <a href="https://nuxt.com">Nuxt 4</a> and <a href="https://v2.tauri.app">Tauri 2</a>
<br>
Build super fast desktop applications!
</p>
@@ -21,7 +21,7 @@ Build super fast desktop applications!
<img src="./public/screenshot.png">
</div>
<p align="center">Powered by Nuxt 3</p>
<p align="center">Powered by Nuxt 4</p>
Check more screenshots at [preview](https://github.com/NicolaSpadari/nuxtor/blob/main/preview.md)
@@ -29,8 +29,8 @@ Check more screenshots at [preview](https://github.com/NicolaSpadari/nuxtor/blob
## Technologies run-down
- Nuxt 3 (v4 ready!)
- Tauri 2
- Nuxt v4
- Tauri v2
- NuxtUI v3
- TailwindCSS v4
- Typescript
@@ -89,7 +89,7 @@ The same Tauri bundle will generate under `src-tauri/target`, but with the abili
- 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 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 `app/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.
- As per [documentation](https://v2.tauri.app/start/frontend/nuxt/#checklist), Nuxt SSR must be disabled in order for Tauri to act as the backend. Still, all Nuxt goodies will be functional.
- NuxtUI is a very powerful UI library that consolidates design over the entire application. While there is a more complete pro version, it requires a license. It's up to you to buy the pro version, or stick with the free version.
## License

View File

@@ -5,7 +5,7 @@ export default defineAppConfig({
repo: "https://github.com/NicolaSpadari/nuxtor",
tauriSite: "https://tauri.app",
nuxtSite: "https://nuxt.com",
nuxtUiSite: "https://ui3.nuxt.dev"
nuxtUiSite: "https://ui.nuxt.dev"
},
pageCategories: {
system: {

View File

@@ -19,7 +19,7 @@
target="_blank"
external
>
Nuxt 3
Nuxt 4
</UButton>
<UButton
variant="ghost"

View File

@@ -80,11 +80,6 @@ export default defineNuxtConfig({
scrollBehaviorType: "smooth"
}
},
$development: {
devtools: {
enabled: true
}
},
eslint: {
config: {
standalone: false
@@ -93,8 +88,5 @@ export default defineNuxtConfig({
experimental: {
typedPages: true
},
future: {
compatibilityVersion: 4
},
compatibilityDate: "2025-07-01"
});

View File

@@ -30,20 +30,20 @@
"@tauri-apps/plugin-os": "^2.3.0",
"@tauri-apps/plugin-shell": "^2.3.0",
"@tauri-apps/plugin-store": "^2.3.0",
"nuxt": "^3.17.6",
"nuxt": "^4.0.0",
"vue": "^3.5.17",
"vue-router": "^4.5.1",
"zod": "^4.0.5"
},
"devDependencies": {
"@antfu/eslint-config": "^4.16.2",
"@antfu/eslint-config": "^4.17.0",
"@nuxt/eslint": "^1.5.2",
"@tauri-apps/cli": "^2.6.2",
"@vueuse/core": "^13.5.0",
"@vueuse/nuxt": "^13.5.0",
"bumpp": "^10.2.0",
"eslint": "^9.31.0",
"nuxt-svgo": "^4.2.3",
"nuxt-svgo": "^4.2.4",
"typescript": "^5.8.3"
},
"resolutions": {

1171
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff