Mercurial > hg > orthanc-stone
annotate Resources/CodeGeneration/testWasmIntegrated/build-web.sh @ 1199:922d2e61aa5d
RadiograpyScene: can now remove any layer + new key wrappers for Delete/Backspace
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 28 Nov 2019 18:28:15 +0100 |
parents | f185cfcb72a0 |
children |
rev | line source |
---|---|
498 | 1 #!/bin/bash |
2 set -e | |
3 | |
4 mkdir -p build-final | |
5 | |
6 # compile TS to JS | |
690 | 7 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/TestStoneCodeGen_generated.ts testWasmIntegrated.ts |
498 | 8 |
499 | 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/ | |
498 | 14 |
15 # copy HTML start page to output dir | |
16 cp testWasmIntegrated.html build-final/ | |
17 | |
499 | 18 |
498 | 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 | |
687
342f3e04bfa9
CodeGen: test cleanup + all working again + using same yaml and stimuli files
Alain Mazy <alain@mazy.be>
parents:
500
diff
changeset
|
25 cp ../test_data/testTestStoneCodeGen.yaml build-final/ |
342f3e04bfa9
CodeGen: test cleanup + all working again + using same yaml and stimuli files
Alain Mazy <alain@mazy.be>
parents:
500
diff
changeset
|
26 cp ../testCppHandler/test_data/test_Message2.json build-final/cppHandler_test_Message2.json |
342f3e04bfa9
CodeGen: test cleanup + all working again + using same yaml and stimuli files
Alain Mazy <alain@mazy.be>
parents:
500
diff
changeset
|
27 |
342f3e04bfa9
CodeGen: test cleanup + all working again + using same yaml and stimuli files
Alain Mazy <alain@mazy.be>
parents:
500
diff
changeset
|
28 echo "...Serving files at http://127.0.0.1:8080/build-final/testWasmIntegrated.html" |
500
329f229c2794
Improvements to the integrated demo for TS <--> C++
bgo-osimis
parents:
499
diff
changeset
|
29 |
498 | 30 sudo python3 serve.py |
31 |