-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ops:generate typescript bindings before prod build this commit introduces the `clap` crate - the command line argument parser library. with it we can now run the tauri backend with the `--generate-bindings-only` flag to only output the typescript bindings and then exit the program. this, we can now use to generate typescript bindings freshly before every production build. i have also went ahead and added the generated `src/bindings.ts` file to `.gitignore` so as not to track it and forcing people to generate it anew on every build.
- Loading branch information
1 parent
dd64ad8
commit e3bc19d
Showing
7 changed files
with
153 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
[package] | ||
name = "huehuehue" | ||
version = "0.0.1" | ||
description = "A Tauri App" | ||
authors = ["you"] | ||
description = "A Tauri App to manage your Philips Hue devices from anywhere" | ||
authors = [ | ||
"Kyrill Gobber <[email protected]>", | ||
"Soryn Bächli <>", | ||
"Cedric Schwyter <[email protected]>", | ||
] | ||
license = "" | ||
repository = "" | ||
repository = "https://github.com/KyrillGobber/huehuehue" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
@@ -36,6 +40,7 @@ serde_derive = "1.0.164" | |
thiserror = "1.0.40" | ||
specta = "1.0.4" | ||
tauri-specta = { version = "1.0.2", features = ["javascript", "typescript"] } | ||
clap = { version = "4.3.10", features = ["derive"] } | ||
|
||
[features] | ||
# this feature is used for production builds or when `devPath` points to the filesystem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bindings.ts |