Skip to content

Commit

Permalink
chore: check web client for lints and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit committed Nov 4, 2023
1 parent d4ea558 commit 1d0b5fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xtask/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ pub fn check(sh: &Shell) -> anyhow::Result<()> {

build(sh, true)?;

run_cmd_in!(sh, IRON_REMOTE_GUI_PATH, "{NPM} run check")?;
run_cmd_in!(sh, IRON_REMOTE_GUI_PATH, "{NPM} run lint")?;
run_cmd_in!(sh, IRON_SVELTE_CLIENT_PATH, "{NPM} run check")?;
run_cmd_in!(sh, IRON_SVELTE_CLIENT_PATH, "{NPM} run lint")?;

Ok(())
}

Expand All @@ -75,10 +80,7 @@ fn build(sh: &Shell, wasm_pack_dev: bool) -> anyhow::Result<()> {
run_cmd_in!(sh, IRONRDP_WEB_PATH, "wasm-pack build --target web")?;
}

run_cmd_in!(sh, IRON_REMOTE_GUI_PATH, "{NPM} run check")?;
run_cmd_in!(sh, IRON_REMOTE_GUI_PATH, "{NPM} run build-alone")?;

// run_cmd_in!(sh, IRON_SVELTE_CLIENT_PREFIX, "{NPM} run check").run()?; // FIXME: failing on master
run_cmd_in!(sh, IRON_SVELTE_CLIENT_PATH, "{NPM} run build-no-wasm")?;

Ok(())
Expand Down

0 comments on commit 1d0b5fa

Please sign in to comment.