1 .PHONY: help build test build-javascript build-python test-javascript test-rust test-python javascript-sizes
4 @echo "No default thing to make, please choose something (e.g. test)."
6 build: build-javascript build-python
8 test: test-javascript test-rust test-python
11 # Requires npm to be installed locally.
14 rm -f tesid-*.tgz tesid.min.js typescript-tests.js && \
17 # Requires python and python-build to be installed locally.
19 cd python && python -m build
22 # Requires npm and tsc to be installed locally.
24 cd javascript && npm run test
26 # Requires rustup, a nightly toolchain, clippy on the default toolchain, and cargo-msrv.
30 # Requires mypy to be installed locally.
32 cd python/src && python -m unittest && mypy .
34 # Requires npm and zopfli to be installed locally.
36 @# See https://github.com/terser/terser/issues/496 about wrap_func_args=false; disabling a Terser misfeature to save two bytes.
37 npx terser --module --compress --mangle --format wrap_func_args=false --output javascript/tesid.min.js -- javascript/tesid.js
38 @echo "min = $$(wc -c <javascript/tesid.min.js)"
39 @echo "min+gz = $$(zopfli -c javascript/tesid.min.js | wc -c)"