From a4e8ed1cbb95778d97ed582a0788eb44eb08f171 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 19 Nov 2025 01:53:26 -0800 Subject: [PATCH] feat: add .taurignore file and enhance package.json scripts - Created a new .taurignore file to specify ignored directories for Tauri app changes, improving build efficiency. - Added a new script "tauri:dev:no-watch" to package.json for running the Tauri development server without file watching, providing more flexibility during development. - Updated assetProtocol scope in tauri.conf.json to include "/Volumes/**", enhancing asset handling for mounted volumes. --- apps/tauri/.taurignore | 20 ++++++++++++++++++++ apps/tauri/package.json | 1 + apps/tauri/src-tauri/tauri.conf.json | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 apps/tauri/.taurignore diff --git a/apps/tauri/.taurignore b/apps/tauri/.taurignore new file mode 100644 index 000000000..82ad4bf7f --- /dev/null +++ b/apps/tauri/.taurignore @@ -0,0 +1,20 @@ +# Ignore core changes - only reload for tauri app changes +../../core/** +../../crates/** +../../target/** +../../extensions/** + +# Ignore other apps +../cli/** +../ios/** +../macos/** +../landing/** + +# Ignore workbench and docs +../../workbench/** +../../docs/** + +# Ignore test files +../../test_snapshots/** + + diff --git a/apps/tauri/package.json b/apps/tauri/package.json index 0a26a3098..6a2eec356 100644 --- a/apps/tauri/package.json +++ b/apps/tauri/package.json @@ -16,6 +16,7 @@ "typecheck": "tsc -b", "tauri": "bunx tauri", "tauri:dev": "bunx tauri dev", + "tauri:dev:no-watch": "bunx tauri dev --no-watch", "tauri:build": "bunx tauri build" }, "dependencies": { diff --git a/apps/tauri/src-tauri/tauri.conf.json b/apps/tauri/src-tauri/tauri.conf.json index 35a20402a..1a4ae7f6a 100644 --- a/apps/tauri/src-tauri/tauri.conf.json +++ b/apps/tauri/src-tauri/tauri.conf.json @@ -42,7 +42,7 @@ }, "assetProtocol": { "enable": true, - "scope": ["$HOME/**"] + "scope": ["$HOME/**", "/Volumes/**"] } } },