| 1 |
debug: |
| 2 |
npx tsc |
| 3 |
./compile.sh debug |
| 4 |
rm -rf ./npm_build/bin |
| 5 |
mkdir -p ./npm_build/bin |
| 6 |
cp ../../out/tskit_debug/tskit.js ./npm_build/bin |
| 7 |
cp ../../out/tskit_debug/tskit.wasm ./npm_build/bin |
| 8 |
|
| 9 |
release: |
| 10 |
npx tsc |
| 11 |
./compile.sh |
| 12 |
rm -rf ./npm_build/bin |
| 13 |
mkdir -p ./npm_build/bin |
| 14 |
cp ../../out/tskit/tskit.js ./npm_build/bin |
| 15 |
cp ../../out/tskit/tskit.wasm ./npm_build/bin |
| 16 |
|
| 17 |
serve: |
| 18 |
echo "Go check out http://localhost:8000/npm_build/example.html" |
| 19 |
python3 ../../tools/serve_wasm.py |
| 20 |
|
| 21 |
lint: |
| 22 |
npx eslint . --ext .ts |
| 23 |
|
| 24 |
apply-lint: |
| 25 |
npx eslint . --ext .ts --fix |
| 26 |
|
| 27 |
generate: |
| 28 |
go run ./go/gen_types --input_cpp_dir ./bindings --output_namespace_dir ./bindings |