Initial trial and error draft of using gopherjs.

This commit is contained in:
genxium
2022-12-23 17:31:04 +08:00
parent faee73ae50
commit 69e6baf8e7
25 changed files with 211226 additions and 19 deletions

25
jsexport/Makefile Normal file
View File

@@ -0,0 +1,25 @@
PROJECTNAME=jsexport
ROOT_DIR=.
all: help
## Available proxies for downloading go modules are listed in "https://github.com/golang/go/wiki/Modules#how-do-i-use-vendoring-with-modules-is-vendoring-going-away".
#GOPROXY=https://mirrors.aliyun.com/goproxy
GOPROXY=https://goproxy.io
serve:
gopherjs serve $(PROJECTNAME)
build:
gopherjs build $(PROJECTNAME)
build-min:
gopherjs build -m $(PROJECTNAME)
.PHONY: help
help: Makefile
@echo
@echo " Choose a command run:"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo