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> </p>
<h1 align="center">NUXTOR</h1> <h1 align="center">NUXTOR</h1>
<p align="center"> <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> <br>
Build super fast desktop applications! Build super fast desktop applications!
</p> </p>
@@ -21,7 +21,7 @@ Build super fast desktop applications!
<img src="./public/screenshot.png"> <img src="./public/screenshot.png">
</div> </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) 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 ## Technologies run-down
- Nuxt 3 (v4 ready!) - Nuxt v4
- Tauri 2 - Tauri v2
- NuxtUI v3 - NuxtUI v3
- TailwindCSS v4 - TailwindCSS v4
- Typescript - 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 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` - 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. - 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 ## License

View File

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

View File

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

View File

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

View File

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

1171
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff