You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add config option for custom watch folders (#13881)
* feat: add config option for custom watch folders
* fix: cargo clippy changes
* chore: remove file
* fix: ios dev
* docs: clarify absolute allowed
* refactor: rename variable
* fix: review suggestions
* fix: resolve paths
* fixL use canonicalize
* chore: add changefile
* chore: add error if cant canonicalize
* reformat changelog
* Update .changes/additional-watch-folders.md
* Update crates/tauri-cli/src/interface/rust.rs
Co-authored-by: Tony <[email protected]>
* Revert "Update .changes/additional-watch-folders.md"
This reverts commit 98186b1.
* Also bump `@tauri-apps/cli`
* Apparently I'm so used to a higher rust version
* Revert "Apparently I'm so used to a higher rust version"
This reverts commit ea1d89e.
* Need to check for existence for abs paths as well
---------
Co-authored-by: Tony <[email protected]>
Co-authored-by: Tony <[email protected]>
Copy file name to clipboardExpand all lines: crates/tauri-cli/config.schema.json
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@
70
70
"build": {
71
71
"description": "The build configuration.",
72
72
"default": {
73
+
"additionalWatchFolders": [],
73
74
"removeUnusedCommands": false
74
75
},
75
76
"allOf": [
@@ -1880,6 +1881,14 @@
1880
1881
"description": "Try to remove unused commands registered from plugins base on the ACL list during `tauri build`,\n the way it works is that tauri-cli will read this and set the environment variables for the build script and macros,\n and they'll try to get all the allowed commands and remove the rest\n\n Note:\n - This won't be accounting for dynamically added ACLs when you use features from the `dynamic-acl` (currently enabled by default) feature flag, so make sure to check it when using this\n - This feature requires tauri-plugin 2.1 and tauri 2.4",
1881
1882
"default": false,
1882
1883
"type": "boolean"
1884
+
},
1885
+
"additionalWatchFolders": {
1886
+
"description": "Additional paths to watch for changes when running `tauri dev`.",
Copy file name to clipboardExpand all lines: crates/tauri-cli/src/mobile/ios/dev.rs
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ use cargo_mobile2::{
32
32
opts::{NoiseLevel,Profile},
33
33
};
34
34
35
-
use std::env::set_current_dir;
35
+
use std::{env::set_current_dir, path::PathBuf};
36
36
37
37
constPHYSICAL_IPHONE_DEV_WARNING:&str = "To develop on physical phones you need the `--host` option (not required for Simulators). See the documentation for more information: https://v2.tauri.app/develop/#development-server";
38
38
@@ -73,6 +73,9 @@ pub struct Options {
73
73
/// Disable the file watcher
74
74
#[clap(long)]
75
75
pubno_watch:bool,
76
+
/// Additional paths to watch for changes.
77
+
#[clap(long)]
78
+
pubadditional_watch_folders:Vec<PathBuf>,
76
79
/// Open Xcode instead of trying to run on a connected device
77
80
#[clap(short, long)]
78
81
pubopen:bool,
@@ -119,6 +122,7 @@ impl From<Options> for DevOptions {
Copy file name to clipboardExpand all lines: crates/tauri-schema-generator/schemas/config.schema.json
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@
70
70
"build": {
71
71
"description": "The build configuration.",
72
72
"default": {
73
+
"additionalWatchFolders": [],
73
74
"removeUnusedCommands": false
74
75
},
75
76
"allOf": [
@@ -1880,6 +1881,14 @@
1880
1881
"description": "Try to remove unused commands registered from plugins base on the ACL list during `tauri build`,\n the way it works is that tauri-cli will read this and set the environment variables for the build script and macros,\n and they'll try to get all the allowed commands and remove the rest\n\n Note:\n - This won't be accounting for dynamically added ACLs when you use features from the `dynamic-acl` (currently enabled by default) feature flag, so make sure to check it when using this\n - This feature requires tauri-plugin 2.1 and tauri 2.4",
1881
1882
"default": false,
1882
1883
"type": "boolean"
1884
+
},
1885
+
"additionalWatchFolders": {
1886
+
"description": "Additional paths to watch for changes when running `tauri dev`.",
0 commit comments