You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
390 B
Rust
21 lines
390 B
Rust
2 years ago
|
use std::process::Stdio;
|
||
|
|
||
|
fn main() {
|
||
|
println!("cargo:rerun-if-changed=./frontend/main.ts");
|
||
|
std::process::Command::new("deno")
|
||
|
.args([
|
||
|
"bundle",
|
||
|
"--no-check",
|
||
|
"frontend/main.ts",
|
||
|
"--",
|
||
|
format!("{}/frontend.js", std::env::var("OUT_DIR").unwrap())
|
||
|
.as_str(),
|
||
|
])
|
||
|
.stdout(Stdio::inherit())
|
||
|
.stderr(Stdio::inherit())
|
||
|
.spawn()
|
||
|
.unwrap()
|
||
|
.wait()
|
||
|
.unwrap();
|
||
|
}
|