mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 17:31:06 +00:00
This commit starts to add some simple tests for our TypeScript output of the wasm-bindgen CLI, currently just running `tsc` to make sure syntax looks good and types are emitted as expected. This'll hopefully be able to get expanded over time with bug reports as they come in as well as ensure that we don't regress anything in egregious manners! Closes #922
19 lines
303 B
Bash
Executable File
19 lines
303 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
cargo build --target wasm32-unknown-unknown
|
|
|
|
rm -rf pkg
|
|
mkdir pkg
|
|
cargo run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
|
../../target/wasm32-unknown-unknown/debug/typescript_tests.wasm \
|
|
--out-dir pkg \
|
|
--typescript
|
|
|
|
if [ ! -d node_modules ]; then
|
|
npm install
|
|
fi
|
|
|
|
npm run tsc
|