mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 11:45:02 +01:00
install deps on frontend build
This commit is contained in:
parent
1ef7b906ad
commit
52f733fdfe
1 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,14 @@ fn main() -> Result<()> {
|
|||
}
|
||||
|
||||
fn build_frontend(path: &Path) -> Result<()> {
|
||||
let status = Command::new("yarn")
|
||||
.arg("install")
|
||||
.current_dir(path)
|
||||
.status()
|
||||
.context("run yarn install failed")?;
|
||||
|
||||
ensure!(status.success(), "Failed to install frontend dependencies");
|
||||
|
||||
let status = Command::new("yarn")
|
||||
.arg("build")
|
||||
.current_dir(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue