diff --git a/.travis.yml b/.travis.yml index d631b30..06f2f6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ sudo: required script: - export GO111MODULE=on - - make lint unit build mod-check + - make lint unit build mod-check rpc-js-compile - make tags=dev after_script: diff --git a/Makefile b/Makefile index 814a89e..56f79b7 100644 --- a/Makefile +++ b/Makefile @@ -80,3 +80,7 @@ rpc: rpc-check: rpc @$(call print, "Verifying protos.") if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi + +rpc-js-compile: + @$(call print, "Compiling JSON/WASM stubs.") + GOOS=js GOARCH=wasm $(GOBUILD) $(PKG)/looprpc