@penumbra-zone/wasm

v25.0.0
The Penumbra core repo has a ton of utilities and functions that are critical to developing an app that interacts with the Penumbra chain. However, it is written in Rust. This package exists to bridge the gap between the Rust environment and the web. This

lint

eslint src

test

vitest run

build

tsc --build --verbose

clean

rm -rfv dist *.tsbuildinfo wasm package penumbra-zone-*.tgz

compile

cd crate && wasm-pack build --no-pack --target bundler --out-name index --out-dir ../wasm

dev:pack

tsc-watch --onSuccess "$npm_execpath pack"

lint:fix

eslint src --fix

lint:rust

cd crate && cargo fmt --all -- --check && cargo clippy -- -D warnings && cargo clippy --tests -- -D warnings

test:wasm

cd crate && wasm-pack test --headless --firefox -- --target wasm32-unknown-unknown --release --features 'mock-database'

clean:rust

cargo clean --manifest-path ./crate/Cargo.toml

test:cargo

cd crate && cargo test --release

dev:compile

cargo watch -C ./crate --postpone -- $npm_execpath run compile

format:rust

cd crate && cargo fmt --all

lint:strict

tsc --noEmit && eslint src --max-warnings 0

postcompile

touch ./wasm/.npmignore
npm i @penumbra-zone/[email protected]

Metadata

Downloads