Update package.json scripts to prefer tauri
This commit is contained in:
parent
b1c271770d
commit
3ef24c67e9
2 changed files with 6 additions and 4 deletions
|
@ -4,8 +4,10 @@
|
|||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"dev": "tauri dev",
|
||||
"build": "tauri build",
|
||||
"front-dev": "vite",
|
||||
"front-build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||
},
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
|
||||
"build": {
|
||||
"beforeBuildCommand": "npm run build",
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"beforeBuildCommand": "npm run front-build",
|
||||
"beforeDevCommand": "npm run front-dev",
|
||||
"devPath": "http://localhost:5173",
|
||||
"distDir": "../dist"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue