Build dashboard with bot
This commit is contained in:
10
build.rs
10
build.rs
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user