comparison Resources/CodeGeneration/testWasmIntegrated/build-web.sh @ 498:6d62fc8a6988 bgo-commands-codegen

Web demonstrator for codegen ongoing work
author bgo-osimis
date Sun, 24 Feb 2019 13:23:14 +0100
parents
children baa9e1e932db
comparison
equal deleted inserted replaced
497:d79f78971fae 498:6d62fc8a6988
1 #!/bin/bash
2 set -e
3
4 mkdir -p build-final
5
6 # compile TS to JS
7 tsc --module commonjs --sourceMap -t ES2015 --outDir "build-tsc/" build-wasm/testWasmIntegratedCpp_generated.ts testWasmIntegrated.ts
8
9 # bundle all 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"
11
12 # copy HTML start page to output dir
13 cp testWasmIntegrated.html build-final/
14
15 # copy styles to output dir
16 cp styles.css build-final/
17
18 # copy WASM binary to output dir
19 cp build-wasm/testWasmIntegratedCpp.wasm build-final/
20
21 sudo python3 serve.py
22