WFA-JS/Makefile

17 lines
591 B
Makefile
Raw Permalink Normal View History

2024-10-24 18:07:10 +00:00
.PHONY: build clean test
build: clean
@echo "======================== Building Binary ======================="
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
test:
@echo "======================== Running Tests ========================="
go test -v -cover -coverpkg=./pkg/ -coverprofile coverage ./test/
@echo "======================= Coverage Report ========================"
go tool cover -func=coverage
@rm -f coverage