Build updates (#5)

* Build script updates

* Add @babel/core (peerdep)
This commit is contained in:
Jaco Greeff
2019-03-20 13:14:46 +01:00
committed by GitHub
parent e46602fd62
commit dde6a2f7af
9 changed files with 34 additions and 24 deletions
+2
View File
@@ -2,6 +2,8 @@
set -e
echo "*** Building package"
# cleanup old
echo "*** Cleaning old builds"
rm -rf ./build ./pkg
+5 -1
View File
@@ -14,10 +14,14 @@ for PKG in "${PACKAGES[@]}"; do
echo "*** Building $PKG"
cd $PKG
./build.sh
../../scripts/build-package.sh
./adjust.sh
rm -rf build/*-e build/package.json build/README.md
ls -al build
../../scripts/test-package.sh
cd ..
fi
done
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
echo "*** Testing package"
echo "*** Testing Rust"
cargo test -- --nocapture
echo "*** Testing WASM"
node ./test/wasm.js
echo "*** Testing via Jest"
yarn jest ./test/jest.spec.js