assemblyscript step2 run.sh

This commit is contained in:
folex
2019-08-16 19:32:49 +03:00
parent a272a618a5
commit a32331c7d1
7 changed files with 51 additions and 6 deletions

View File

@ -3,7 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"flbuild": "asc assembly/index.ts -b build/optimized.wasm --validate --optimize --use abort='' --runtime stub",
"flbuild": "asc assembly/index.ts -b \"build/$npm_package_name.wasm\" --validate --optimize --use abort='' --runtime stub",
"test": "asp"
},
"keywords": [],

View File

@ -8,7 +8,7 @@ mkdir -p wasm
echo "Building..."
npm --silent install
npm --quiet run flbuild
cp build/*.wasm ./wasm/
cp build/fluid.wasm ./wasm/
echo
# Run it all on 30000 port with default Fluence API