summary refs log tree commit diff
path: root/generate-bindings.sh
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-02-25 23:48:46 -0700
committerAshelyn Rose <git@ashen.earth>2025-02-25 23:48:46 -0700
commitbca380fcf242208e375dd509cbd7bcb4d643a400 (patch)
tree26e3be107f7be09741781733d623c9e6cddc6b3c /generate-bindings.sh
parent29576c7c36f254d6a60b0d599e5f809c636acb4b (diff)
TS bindings for Tauri commands HEAD main
Diffstat (limited to 'generate-bindings.sh')
-rwxr-xr-xgenerate-bindings.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/generate-bindings.sh b/generate-bindings.sh
new file mode 100755
index 0000000..bab3021
--- /dev/null
+++ b/generate-bindings.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+cd "$(dirname "$0")"
+
+pushd app
+cargo +nightly rustdoc --package foxfleet --lib  -- --output-format json -Z unstable-options
+cargo test export_bindings
+popd
+
+pushd ui
+node util/generate-tauri-bindings.js
+popd