Native Wasm components used by Betty Blocks in the Action Builder.
Just is used for executing commands inside the components folder.
It follows this pattern:
# builds the wasm component
just build# runs the unit tests for the component/code
just testWkg is needed to fetch the wasi wit dependencies
Install Elixir with any way you like (I would suggest using asdf/mise)
mix deps.getbuilding the wasm components can be done via mix build. This will call just build in each component folder. This will output the components in the target/wasm32-wasip2/release folder.
component tests are ran via Elixir Wasmex.
mix testTo run all the unit tests for the component run:
mix test.components