comparison Resources/CodeGeneration/testWasmIntegrated/build-web.sh @ 499:baa9e1e932db bgo-commands-codegen

wasm + ts demonstrator WORKS!
author bgo-osimis
date Sun, 24 Feb 2019 20:22:56 +0100
parents 6d62fc8a6988
children 329f229c2794
comparison
equal deleted inserted replaced
498:6d62fc8a6988 499:baa9e1e932db
4 mkdir -p build-final 4 mkdir -p build-final
5 5
6 # compile TS to JS 6 # compile TS to JS
7 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/testWasmIntegratedCpp_generated.ts testWasmIntegrated.ts 7 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/testWasmIntegratedCpp_generated.ts testWasmIntegrated.ts
8 8
9 # bundle all JS files to final build dir 9 # bundle JS files to final build dir
10 browserify "build-wasm/testWasmIntegratedCpp.js" "build-tsc/build-wasm/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "build-final/testWasmIntegratedApp.js" 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/
11 14
12 # copy HTML start page to output dir 15 # copy HTML start page to output dir
13 cp testWasmIntegrated.html build-final/ 16 cp testWasmIntegrated.html build-final/
17
14 18
15 # copy styles to output dir 19 # copy styles to output dir
16 cp styles.css build-final/ 20 cp styles.css build-final/
17 21
18 # copy WASM binary to output dir 22 # copy WASM binary to output dir