Update build scripts

Moved all the go gets into the makefile to add version wasm support
Added get to update all dependencies and removed unneeded make rules
This commit is contained in:
joeyak 2019-03-16 22:24:35 -04:00
parent 2ea02fcd27
commit c1dd9168b2
2 changed files with 7 additions and 10 deletions

View File

@ -1,9 +1,7 @@
language: go
before_install:
- go get golang.org/x/tools/cmd/goimports
- go get github.com/dennwc/dom/js
- go get -u -v ./...
- make get
go:
- 1.12.x

View File

@ -1,4 +1,4 @@
.PHONY: sync fmt vet
.PHONY: fmt vet get clean
all: fmt vet MovieNight MovieNight.exe static/main.wasm
@ -17,12 +17,11 @@ clean:
fmt:
goimports -w .
get:
go get -u -v ./...
GOOS=js GOARCH=wasm go get -u -v ./...
go get golang.org/x/tools/cmd/goimports
vet:
go vet ./...
GOOS=js GOARCH=wasm go vet ./...
sync:
scp -i /c/movienight/movienight-deploy.key -r . zorchenhimer@movienight.zorchenhimer.com:/home/zorchenhimer/movienight
run: all
./MovieNight.exe