diff 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
line wrap: on
line diff
--- a/Resources/CodeGeneration/testWasmIntegrated/build-web.sh	Sun Feb 24 13:23:14 2019 +0100
+++ b/Resources/CodeGeneration/testWasmIntegrated/build-web.sh	Sun Feb 24 20:22:56 2019 +0100
@@ -6,12 +6,16 @@
 # compile TS to JS
 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/testWasmIntegratedCpp_generated.ts testWasmIntegrated.ts 
 
-# bundle all JS files to final build dir 
-browserify "build-wasm/testWasmIntegratedCpp.js" "build-tsc/build-wasm/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "build-final/testWasmIntegratedApp.js"
+# bundle JS files to final build dir 
+browserify "build-tsc/build-wasm/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "build-final/testWasmIntegratedApp.js"
+
+# copy WASM loader JS file to final build dir 
+cp build-wasm/testWasmIntegratedCpp.js build-final/
 
 # copy HTML start page to output dir
 cp testWasmIntegrated.html build-final/
 
+
 # copy styles to output dir
 cp styles.css build-final/