Don't watch frontend files when using tauri

This commit is contained in:
Dennis Kobert 2023-02-16 22:08:53 +01:00 committed by Keavon Chambers
parent b74489d828
commit 32dbe606f2
3 changed files with 3 additions and 2 deletions

View file

View file

@ -5,6 +5,7 @@
"author": "Graphite Authors <contact@graphite.rs>",
"scripts": {
"dev": "cargo watch -s \"wasm-pack build frontend/wasm --dev\" & vite || kill $!",
"tauri:dev": "vite",
"build": "npm run build-wasm && vite build || (npm run print-building-help && exit 1)",
"lint": "eslint src || (npm run print-linting-help && exit 1)",
"build-wasm": "wasm-pack build ./wasm --release",

View file

@ -2,9 +2,9 @@
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm start",
"beforeDevCommand": "npm run tauri:dev",
"distDir": "../dist",
"devPath": "http://127.0.0.1:8080"
"devPath": "http://127.0.0.1:5173/"
},
"package": {
"productName": "graphite-tauri",