Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Resources/CodeGeneration/testWasmIntegrated/build.sh Sat Feb 23 14:14:32 2019 +0100 +++ b/Resources/CodeGeneration/testWasmIntegrated/build.sh Sat Feb 23 15:04:29 2019 +0100 @@ -15,16 +15,16 @@ cd .. -mkdir -p +mkdir -p build-final # 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/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "testWasmIntegratedApp.js" +browserify "build-wasm/testWasmIntegratedCpp.js" "build-tsc/build-wasm/testWasmIntegratedCpp_generated.js" "build-tsc/testWasmIntegrated.js" -o "build-final/testWasmIntegratedApp.js" # copy HTML start page to output dir -cp index.html build-final/ +cp testWasmIntegrated.html build-final/ # copy WASM binary to output dir cp build-wasm/testWasmIntegratedCpp.wasm build-final/