mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: wasm build (#4412)
* chore: enable wasm build * chore: bump collab * chore: fix build * chore: flowy-document wasm * chore: fix compile * chore: fix compile * chore: fix compile * chore: fix compile * chore: fix ci * chore: fix ci * chore: fix ci
This commit is contained in:
19
frontend/scripts/makefile/web.toml
Normal file
19
frontend/scripts/makefile/web.toml
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
[tasks.wasm_build]
|
||||
script_runner = "bash"
|
||||
script = [
|
||||
"""
|
||||
#!/bin/bash
|
||||
BASE_DIR=$(pwd)
|
||||
# crates=("lib-dispatch" "flowy-encrypt" "lib-infra" "flowy-notification" "flowy-date" "flowy-error" "collab-integrate" "flowy-document")
|
||||
crates=("flowy-document")
|
||||
|
||||
# Iterate over each crate and build it
|
||||
for crate in "${crates[@]}"; do
|
||||
echo "🔥🔥🔥 Building $crate with wasm-pack..."
|
||||
cd "$BASE_DIR/rust-lib/$crate" || { echo "Failed to enter directory $crate"; exit 1; }
|
||||
|
||||
wasm-pack build --features="wasm_build" || { echo "Build failed for $crate"; exit 1; }
|
||||
done
|
||||
"""
|
||||
]
|
Reference in New Issue
Block a user