2021-04-09 18:51:14 +00:00
|
|
|
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"
|
2021-10-11 19:47:47 +00:00
|
|
|
python3 ../../tools/serve_wasm.py
|
2021-04-09 18:51:14 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
npx eslint . --ext .ts
|
|
|
|
|
|
|
|
apply-lint:
|
2021-05-13 11:44:22 +00:00
|
|
|
npx eslint . --ext .ts --fix
|
|
|
|
|
|
|
|
generate:
|
|
|
|
go run ./go/gen_types --input_cpp_dir ./bindings --output_namespace_dir ./bindings
|