Build dashboard with bot

This commit is contained in:
jude
2024-03-03 13:21:06 +00:00
parent 6f0bdf9852
commit b91245a3f7
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
use std::{path::Path, process::Command};
fn main() {
println!("cargo:rerun-if-changed=migrations");
println!("cargo:rerun-if-changed=reminder-dashboard");
Command::new("npm")
.arg("run")
.arg("build")
.current_dir(Path::new("reminder-dashboard"))
.spawn()
.expect("Failed to build NPM");
}