From 2aba5beadb50aced0c9fea9671e5d0cd7dfecf69 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 26 May 2024 20:55:49 +0800 Subject: [PATCH] chore(justfile): add wasm build commands --- justfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/justfile b/justfile index 9d17a8d5e..5d540f303 100755 --- a/justfile +++ b/justfile @@ -95,6 +95,12 @@ test-transform *args='': oxlint: cargo build --release --bin oxlint --features allocator +watch-wasm: + cargo watch --no-vcs-ignores -i 'npm/oxc-wasm/**' -- just build-wasm + +build-wasm: + wasm-pack build --out-dir npm/oxc-wasm --target web --dev --scope oxc crates/oxc_wasm + # Generate the JavaScript global variables. See `tasks/javascript_globals` javascript-globals: cargo run -p javascript_globals