diff --git a/.gitignore b/.gitignore index 3b735ec..171b390 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ # Go workspace file go.work + +# Webassembly compiled stuff +**.wasm diff --git a/Makefile b/Makefile index 09c23de..4fb5b60 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ EXAMPLE_BUILD_TOOL = go run github.com/hajimehoshi/wasmserve@latest -.PHONY: run_example +.PHONY: run_example test run_example: @echo @@ -10,3 +10,12 @@ run_example: @echo $(EXAMPLE_BUILD_TOOL) ./example/ + +test: + @echo + @echo " ----------------------------------------------------" + @echo "| Building $(NAME)... |" + @echo " ----------------------------------------------------" + @echo + + GOOS=js GOARCH=wasm go build -o test/main.wasm example/main.go diff --git a/go.mod b/go.mod index a8a4d6c..1773687 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module webzen -go 1.21.1 +go 1.18