comparison Resources/CodeGeneration/testWasmIntegrated/build.sh @ 496:8b6ceae45ba0 bgo-commands-codegen

Finished (untested) C++, html, typescript, tsc & browserify production.
author bgo-osimis
date Sat, 23 Feb 2019 15:04:29 +0100
parents 6405435480ae
children 6d62fc8a6988
comparison
equal deleted inserted replaced
495:6405435480ae 496:8b6ceae45ba0
13 13
14 echo 14 echo
15 15
16 cd .. 16 cd ..
17 17
18 mkdir -p 18 mkdir -p build-final
19 19
20 # compile TS to JS 20 # compile TS to JS
21 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/testWasmIntegratedCpp_generated.ts testWasmIntegrated.ts 21 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/testWasmIntegratedCpp_generated.ts testWasmIntegrated.ts
22 22
23 # bundle all JS files to final build dir 23 # bundle all JS files to final build dir
24 browserify "build-wasm/testWasmIntegratedCpp.js" "build-tsc/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "testWasmIntegratedApp.js" 24 browserify "build-wasm/testWasmIntegratedCpp.js" "build-tsc/build-wasm/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "build-final/testWasmIntegratedApp.js"
25 25
26 # copy HTML start page to output dir 26 # copy HTML start page to output dir
27 cp index.html build-final/ 27 cp testWasmIntegrated.html build-final/
28 28
29 # copy WASM binary to output dir 29 # copy WASM binary to output dir
30 cp build-wasm/testWasmIntegratedCpp.wasm build-final/ 30 cp build-wasm/testWasmIntegratedCpp.wasm build-final/
31 31
32 32