mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 01:39:11 +00:00
add command to build examples to Makefile
This commit is contained in:
parent
91dafbfb1e
commit
c87cca2b5f
7
Makefile
7
Makefile
@ -2,3 +2,10 @@
|
|||||||
test:
|
test:
|
||||||
@PATH=$(CURDIR)/misc/wasm:$(PATH) GOOS=js GOARCH=wasm go test ./...
|
@PATH=$(CURDIR)/misc/wasm:$(PATH) GOOS=js GOARCH=wasm go test ./...
|
||||||
|
|
||||||
|
.PHONY: build-examples
|
||||||
|
build-examples:
|
||||||
|
for dir in $(shell find ./_examples -maxdepth 1 -type d); do \
|
||||||
|
if [ $$dir = "./_examples" ]; then continue; fi; \
|
||||||
|
cd $$dir && GOOS=js GOARCH=wasm go build -o ./build/app.wasm; \
|
||||||
|
cd ../../; \
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user