1
0
mirror of https://github.com/taigrr/wasm-experiments synced 2025-01-18 04:03:21 -08:00

Add export example

This commit is contained in:
Johan Brandhorst
2019-09-04 21:30:54 +01:00
parent 12f8883116
commit 3f16d27172
4 changed files with 84 additions and 0 deletions

View File

@@ -70,6 +70,12 @@ vecty: clean
cp ./vecty/index.html ./html/index.html
cp $$(go env GOROOT)/misc/wasm/wasm_exec.js ./html/wasm_exec.js
.PHONY: export
export: clean
GOOS=js GOARCH=wasm go build -o ./html/test.wasm ./export/main.go
cp ./export/index.html ./html/index.html
cp $$(go env GOROOT)/misc/wasm/wasm_exec.js ./html/wasm_exec.js
.PHONY: test
test:
GOOS=js GOARCH=wasm go test -v ./test/