Skip to content

Commit

Permalink
Update makefile with a test feature
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Oct 2, 2023
1 parent ae11910 commit 192ef1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

# Go workspace file
go.work

# Webassembly compiled stuff
**.wasm
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
EXAMPLE_BUILD_TOOL = go run github.com/hajimehoshi/wasmserve@latest

.PHONY: run_example
.PHONY: run_example test

run_example:
@echo
Expand All @@ -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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module webzen

go 1.21.1
go 1.18

0 comments on commit 192ef1d

Please sign in to comment.