2022-02-03 18:25:13 +00:00
|
|
|
debug:
|
|
|
|
./compile.sh debug
|
|
|
|
- rm -rf build/
|
|
|
|
mkdir -p ./build/wasm ./build/asmjs
|
|
|
|
cp ../../out/pathkit/pathkit.js ./build/wasm/pathkit.js
|
|
|
|
cp ../../out/pathkit/pathkit.wasm ./build/wasm/pathkit.wasm
|
|
|
|
|
|
|
|
./compile.sh asm.js debug
|
|
|
|
cp ../../out/pathkit/pathkit.js ./build/asmjs/pathkit.js
|
|
|
|
|
|
|
|
release:
|
2018-08-02 15:30:33 +00:00
|
|
|
./compile.sh
|
2022-02-03 18:25:13 +00:00
|
|
|
- rm -rf build/
|
|
|
|
mkdir -p ./build/wasm ./build/asmjs
|
|
|
|
cp ../../out/pathkit/pathkit.js ./build/wasm/pathkit.js
|
|
|
|
cp ../../out/pathkit/pathkit.wasm ./build/wasm/pathkit.wasm
|
2018-08-02 15:30:33 +00:00
|
|
|
|
2022-02-03 18:25:13 +00:00
|
|
|
./compile.sh asm.js
|
|
|
|
cp ../../out/pathkit/pathkit.js ./build/asmjs/pathkit.js
|
|
|
|
cp ../../out/pathkit/pathkit.js.mem ./build/asmjs/pathkit.js.mem
|
|
|
|
|
|
|
|
npm:
|
|
|
|
rm -rf ./npm-wasm/bin ./npm-asmjs/bin
|
|
|
|
mkdir -p ./npm-wasm/bin ./npm-asmjs/bin
|
2018-08-02 15:30:33 +00:00
|
|
|
./compile.sh
|
2018-08-22 13:35:32 +00:00
|
|
|
cp ../../out/pathkit/pathkit.js ./npm-wasm/bin
|
2018-08-02 15:30:33 +00:00
|
|
|
cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin
|
2018-08-22 13:35:32 +00:00
|
|
|
./compile.sh asm.js
|
|
|
|
cp ../../out/pathkit/pathkit.js ./npm-asmjs/bin/pathkit.js
|
|
|
|
cp ../../out/pathkit/pathkit.js.mem ./npm-asmjs/bin/pathkit.js.mem
|
2022-02-03 15:47:20 +00:00
|
|
|
cp CHANGELOG.md ./npm-wasm
|
|
|
|
cp CHANGELOG.md ./npm-asmjs
|
2018-08-03 16:24:06 +00:00
|
|
|
|
2018-08-09 14:00:02 +00:00
|
|
|
test-continuous:
|
2022-02-03 18:25:13 +00:00
|
|
|
echo "Assuming npm ci has been run by user"
|
|
|
|
echo "Also assuming make debug or make release has also been run by a user (if needed)"
|
2018-08-09 14:00:02 +00:00
|
|
|
npx karma start ./karma.conf.js --no-single-run --watch-poll
|
|
|
|
|
2018-08-22 13:35:32 +00:00
|
|
|
test-continuous-asmjs:
|
2022-02-03 18:25:13 +00:00
|
|
|
echo "Assuming npm ci has been run by user"
|
|
|
|
echo "Also assuming make debug or make release has also been run by a user (if needed)"
|
2018-08-22 13:35:32 +00:00
|
|
|
ASM_JS=1 npx karma start ./karma.conf.js --no-single-run --watch-poll
|
|
|
|
|
2018-08-03 16:24:06 +00:00
|
|
|
local-example:
|
2018-08-22 13:35:32 +00:00
|
|
|
echo "Go check out http://localhost:8000/npm-wasm/example.html"
|
|
|
|
echo "or http://localhost:8000/npm-asmjs/example.html"
|
2021-10-11 19:47:47 +00:00
|
|
|
python3 ../../tools/serve_wasm.py
|