blob: 677f5737b206861a66a235c3d02dd53b063bb183 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
BUILDDIR=site
HOST=coleridge:public_html/automathon
# --dev may be useful, but it makes things a lot slower and bigger
WASMPACKFLAGS=--no-pack --no-typescript
# the --target is currently necessary or firefox will return
# "disallowed mime type" -bjc 7-aug-2025
build:
wasm-pack build --target web --out-dir $(BUILDDIR)/wasm $(WASMPACKFLAGS)
serve: build
(cd $(BUILDDIR) && python -m http.server 8118)
deploy: build
rsync -avz --delete --exclude='*~' "$(BUILDDIR)"/ "$(HOST)"
|