Cleanup build, no sed mangling (#129)

* Polyfill require adjust

* Assert in promise for getRandomBytes

* Adjust jest

* Revert explicit overrides (from base)

* use typeof

* Re-add crypto-polyfill (backwards, direct imports)

* crypto log

* Fix dev

* Adjust

* Cleanups, no sed mangling

* Cleanup build folder

* Remove exports

* Cleanups

* Adjust env vs util

* Remove Buffer alloc

* Cleant ext vs int

* Rework naming

* Mapping rename

* Combine index & exports

* withWasm wrapper

* pass{String, U8a} -> alloc{String, U8a}

* Internal reuse

* Explict package-only test
This commit is contained in:
Jaco Greeff
2020-11-02 16:39:54 +01:00
committed by GitHub
parent 2ac68bdb18
commit da946b18ce
18 changed files with 422 additions and 241 deletions
+3 -15
View File
@@ -5,20 +5,8 @@
set -e
rustup toolchain install stable
cd packages
cd packages/wasm-crypto
PACKAGES=( $(ls -1d *) )
RUST_BACKTRACE=full cargo test --release -- --nocapture
for PKG in "${PACKAGES[@]}"; do
if [ -f "$PKG/package.json" ]; then
cd $PKG
echo "*** Testing Rust $PKG"
RUST_BACKTRACE=full cargo test --release -- --nocapture
cd ..
fi
done
cd ..
cd ../..