scp ...$args
}
+ cd frontend
+ source frontend/deploy.nu
+ main true
+ cd ..
+
cargo test
cargo build --target $target --release
invoke_ssh [sudo systemctl stop recipes]
-wasm-pack build --target web
-cp pkg/frontend.js ../backend/static
-cp pkg/frontend_bg.wasm ../backend/static
\ No newline at end of file
+def main [release: bool = false] {
+
+ mut wasm_pack_args = [ build --target web ]
+ if $release {
+ $wasm_pack_args = $wasm_pack_args ++ [ --release ]
+ }
+
+ wasm-pack ...$wasm_pack_args
+
+ cp pkg/frontend.js ../backend/static
+ cp pkg/frontend_bg.wasm ../backend/static
+}
\ No newline at end of file