mirror of
https://github.com/genxium/DelayNoMore
synced 2025-10-09 08:36:52 +00:00
Initial trial and error draft of using gopherjs.
This commit is contained in:
25
jsexport/Makefile
Normal file
25
jsexport/Makefile
Normal 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
|
||||
|
Reference in New Issue
Block a user