comparison Deprecated/Resources/CodeGeneration/testWasmIntegrated/build-web.sh @ 1401:f6a2d46d2b76

moved CodeGeneration into Deprecated
author Alain Mazy <alain@mazy.be>
date Wed, 29 Apr 2020 20:48:18 +0200
parents Resources/CodeGeneration/testWasmIntegrated/build-web.sh@f185cfcb72a0
children
comparison
equal deleted inserted replaced
1400:419d0320c344 1401:f6a2d46d2b76
1 #!/bin/bash
2 set -e
3
4 mkdir -p build-final
5
6 # compile TS to JS
7 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/TestStoneCodeGen_generated.ts testWasmIntegrated.ts
8
9 # bundle JS files to final build dir
10 browserify "build-tsc/build-wasm/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "build-final/testWasmIntegratedApp.js"
11
12 # copy WASM loader JS file to final build dir
13 cp build-wasm/testWasmIntegratedCpp.js build-final/
14
15 # copy HTML start page to output dir
16 cp testWasmIntegrated.html build-final/
17
18
19 # copy styles to output dir
20 cp styles.css build-final/
21
22 # copy WASM binary to output dir
23 cp build-wasm/testWasmIntegratedCpp.wasm build-final/
24
25 cp ../test_data/testTestStoneCodeGen.yaml build-final/
26 cp ../testCppHandler/test_data/test_Message2.json build-final/cppHandler_test_Message2.json
27
28 echo "...Serving files at http://127.0.0.1:8080/build-final/testWasmIntegrated.html"
29
30 sudo python3 serve.py
31