Skip to content

Commit

Permalink
Add fs-watch
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed May 3, 2024
1 parent 1333d59 commit b70c3e4
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 1 deletion.
46 changes: 46 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"dependencies": {
"@tauri-apps/api": "^1",
"luxon": "^3.4.2",
"tauri-plugin-fs-watch-api": "github:tauri-apps/tauri-plugin-fs-watch#v1",
"vue": "^3.4.21"
},
"devDependencies": {
Expand Down
108 changes: 108 additions & 0 deletions packages/app/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ edition = "2021"
tauri-build = { version = "1", features = [] }

[dependencies]
tauri = { version = "1", features = ["shell-open"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri = { version = "1", features = ["shell-open"] }
tauri-plugin-fs-watch = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }

[features]
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
Expand Down
1 change: 1 addition & 0 deletions packages/app/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fn greet(name: &str) -> String {

fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_fs_watch::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
Expand Down

0 comments on commit b70c3e4

Please sign in to comment.