Build wasm once before starting the server

This commit is contained in:
Dennis Kobert 2023-03-03 23:52:04 +01:00 committed by Keavon Chambers
parent a1d12b2382
commit 73e7fff0a8

View file

@ -4,7 +4,7 @@
"description": "Graphite's web app frontend. Planned to be replaced by a native GUI written in Rust in the future.",
"author": "Graphite Authors <contact@graphite.rs>",
"scripts": {
"dev": "concurrently -k --handle-input \"vite\" \"npm run watch:wasm\"",
"dev": "wasm-pack build ./wasm --dev && concurrently -k --handle-input \"vite\" \"npm run watch:wasm\"",
"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)",