29104528cc
These scripts are useful when testing WebAssembly locally because the mimetype impacts how the binaries are loaded. The porting was achieved by doing the following: python -m lib2to3 -w -n serve.py Change-Id: I09673fa881339a9b157c5fc993e190766efcd85e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/443884 Reviewed-by: Erik Rose <erikrose@google.com>
28 lines
625 B
Makefile
28 lines
625 B
Makefile
debug:
|
|
npx tsc
|
|
./compile.sh debug
|
|
rm -rf ./npm_build/bin
|
|
mkdir -p ./npm_build/bin
|
|
cp ../../out/tskit_debug/tskit.js ./npm_build/bin
|
|
cp ../../out/tskit_debug/tskit.wasm ./npm_build/bin
|
|
|
|
release:
|
|
npx tsc
|
|
./compile.sh
|
|
rm -rf ./npm_build/bin
|
|
mkdir -p ./npm_build/bin
|
|
cp ../../out/tskit/tskit.js ./npm_build/bin
|
|
cp ../../out/tskit/tskit.wasm ./npm_build/bin
|
|
|
|
serve:
|
|
echo "Go check out http://localhost:8000/npm_build/example.html"
|
|
python3 serve.py
|
|
|
|
lint:
|
|
npx eslint . --ext .ts
|
|
|
|
apply-lint:
|
|
npx eslint . --ext .ts --fix
|
|
|
|
generate:
|
|
go run ./go/gen_types --input_cpp_dir ./bindings --output_namespace_dir ./bindings
|