1debug: 2 ./compile.sh debug 3 - rm -rf build/ 4 mkdir -p ./build/wasm ./build/asmjs 5 cp ../../out/pathkit/pathkit.js ./build/wasm/pathkit.js 6 cp ../../out/pathkit/pathkit.wasm ./build/wasm/pathkit.wasm 7 8 ./compile.sh asm.js debug 9 cp ../../out/pathkit/pathkit.js ./build/asmjs/pathkit.js 10 11release: 12 ./compile.sh 13 - rm -rf build/ 14 mkdir -p ./build/wasm ./build/asmjs 15 cp ../../out/pathkit/pathkit.js ./build/wasm/pathkit.js 16 cp ../../out/pathkit/pathkit.wasm ./build/wasm/pathkit.wasm 17 18 ./compile.sh asm.js 19 cp ../../out/pathkit/pathkit.js ./build/asmjs/pathkit.js 20 cp ../../out/pathkit/pathkit.js.mem ./build/asmjs/pathkit.js.mem 21 22npm: 23 rm -rf ./npm-wasm/bin ./npm-asmjs/bin 24 mkdir -p ./npm-wasm/bin ./npm-asmjs/bin 25 ./compile.sh 26 cp ../../out/pathkit/pathkit.js ./npm-wasm/bin 27 cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin 28 ./compile.sh asm.js 29 cp ../../out/pathkit/pathkit.js ./npm-asmjs/bin/pathkit.js 30 cp ../../out/pathkit/pathkit.js.mem ./npm-asmjs/bin/pathkit.js.mem 31 cp CHANGELOG.md ./npm-wasm 32 cp CHANGELOG.md ./npm-asmjs 33 34test-continuous: 35 echo "Assuming npm ci has been run by user" 36 echo "Also assuming make debug or make release has also been run by a user (if needed)" 37 npx karma start ./karma.conf.js --no-single-run --watch-poll 38 39test-continuous-asmjs: 40 echo "Assuming npm ci has been run by user" 41 echo "Also assuming make debug or make release has also been run by a user (if needed)" 42 ASM_JS=1 npx karma start ./karma.conf.js --no-single-run --watch-poll 43 44local-example: 45 echo "Go check out http://localhost:8000/npm-wasm/example.html" 46 echo "or http://localhost:8000/npm-asmjs/example.html" 47 python3 ../../tools/serve_wasm.py 48