Make Theseus compilable out of the box again, update Tauri to 1.0.4

Changes made:
- migrate to Vite 3 (Svelte Kit errors out and forces you to migrate)
- bumped unplugin-icons to 0.14.7 (Vite 3 support)
- disable strict-peer-dependencies (changes needed in omorphia - unplugin-icons there requires Vite 2)
- bumped Tauri to 1.0.4 (finally stable!)
- removed useBootstrapper (removed in v1.0.0-rc.5)
- migrated from create_window to setup (removed in v1.0.0-rc.7)
- replaced %svelte% with %sveltekit% (renamed in SvelteKit 1.0.0-next.339)

Notes:
- Vite 3 exposes its dev server on port 5173.
This commit is contained in:
Wuzado
2022-07-16 19:52:30 +02:00
parent b223dc7cba
commit 855604c9e0
11 changed files with 1386 additions and 1230 deletions

View File

@@ -1,11 +1,11 @@
{
"scripts": {
"dev": "tauri dev",
"dev:web": "svelte-kit dev",
"kill:web": "kill-port 3000",
"dev:web": "vite",
"kill:web": "kill-port 5173",
"tauri": "tauri",
"build": "tauri build",
"build:web": "svelte-kit build",
"build:web": "vite build",
"test": "cargo ../test --manifest-path ./src-tauri/Cargo.toml",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. src",
"check": "cargo check --manifest-path src-tauri/Cargo.toml && svelte-check --tsconfig ./tsconfig.json"
@@ -13,7 +13,7 @@
"devDependencies": {
"@sveltejs/adapter-static": "next",
"@sveltejs/kit": "next",
"@tauri-apps/cli": "^1.0.0-rc.5",
"@tauri-apps/cli": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"eslint": "^7.32.0",
@@ -25,7 +25,8 @@
"svelte": "^3.46.0",
"svelte-check": "^2.2.6",
"tslib": "^2.3.1",
"typescript": "~4.5.4"
"typescript": "~4.5.4",
"vite": "^3.0.0"
},
"type": "module",
"dependencies": {
@@ -37,6 +38,6 @@
"@tauri-apps/api": "^1.0.0-rc.1",
"omorphia": "0.0.17",
"svrollbar": "^0.10.4",
"unplugin-icons": "^0.13.2"
"unplugin-icons": "^0.14.7"
}
}