1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-07-27 07:49:43 +00:00

Add command to build the web example.

This commit is contained in:
Nolan Darilek 2021-04-03 11:49:44 -05:00
parent debab7de17
commit f7239366f0

View File

@ -20,6 +20,12 @@ install_crate = { crate_name = "trunk", binary = "trunk", test_arg = "--help" }
[tasks.install-wasm-bindgen-cli]
install_crate = { crate_name = "wasm-bindgen-cli", binary = "wasm-bindgen", test_arg = "--help" }
[tasks.build-web-example]
dependencies = ["install-trunk", "install-wasm-bindgen-cli"]
cwd = "examples/web"
command = "trunk"
args = ["build"]
[tasks.run-web-example]
dependencies = ["install-trunk", "install-wasm-bindgen-cli"]
cwd = "examples/web"