From f7239366f0278ffb0cd7ce7dead9ffa06cff6de0 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 3 Apr 2021 11:49:44 -0500 Subject: [PATCH] Add command to build the web example. --- Makefile.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.toml b/Makefile.toml index d5cda6b..97655f3 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -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"