Skip to content

bettyblocks/native-wasm-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeWasmComponents

Native Wasm components used by Betty Blocks in the Action Builder.

Development

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 test

Wkg is needed to fetch the wasi wit dependencies

Installation

Install Elixir with any way you like (I would suggest using asdf/mise)

mix deps.get

Building

building 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.

Testing

component tests are ran via Elixir Wasmex.

mix test

To run all the unit tests for the component run:

mix test.components

About

Wasm components that are given by Betty Blocks by default in the Action Builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published