2022-12-23 09:31:04 +00:00
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)
2023-01-18 02:06:27 +00:00
clean :
gopherjs clean
rm -f ../frontend/assets/plugin_scripts/jsexport.js
2023-01-20 03:29:27 +00:00
#rm -f ../frontend/assets/plugin_scripts/jsexport.js.map
2023-01-18 02:06:27 +00:00
build : clean
2022-12-23 09:31:04 +00:00
gopherjs build $( PROJECTNAME)
2023-01-18 02:06:27 +00:00
mv ./jsexport.js ../frontend/assets/plugin_scripts/
2023-01-20 03:29:27 +00:00
#mv ./jsexport.js.map ../frontend/assets/plugin_scripts/
2022-12-23 09:31:04 +00:00
2023-01-18 02:06:27 +00:00
build-min : clean
2022-12-23 09:31:04 +00:00
gopherjs build -m $( PROJECTNAME)
2023-01-18 02:06:27 +00:00
mv ./jsexport.js ../frontend/assets/plugin_scripts/
2023-01-20 03:29:27 +00:00
#mv ./jsexport.js.map ../frontend/assets/plugin_scripts/
2022-12-23 09:31:04 +00:00
.PHONY : help
help : Makefile
@echo
@echo " Choose a command run:"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo