move wfa.js glue script to root,

add minify wfa.js job to build command
This commit is contained in:
2024-10-29 17:36:25 +00:00
parent a3beca4ed2
commit 65516fbd50
2 changed files with 558 additions and 1 deletions

View File

@@ -2,12 +2,13 @@
build: clean
@echo "======================== Building Binary ======================="
minify wfa.js > dist/wfa.js
GOOS=js GOARCH=wasm CGO_ENABLED=0 tinygo build -no-debug -opt=2 -target=wasm -o dist/wfa.wasm .
clean:
@echo "======================== Cleaning Project ======================"
go clean
rm -f dist/wfa.wasm cover.prof cpu.prof mem.prof test.test
rm -f dist/wfa.wasm dist/wfa.js cover.prof cpu.prof mem.prof test.test
test:
@echo "======================== Running Tests ========================="