mirror of
https://github.com/yudai/gotty.git
synced 2026-02-06 08:31:49 +01:00
Update to go modules
```shell go mod init github.com/yudai/gotty g rm -r vendor/ go mod tidy g rm -r Godeps/ make gotty ```
This commit is contained in:
parent
a080c85cbc
commit
ad8f09f53a
110 changed files with 55 additions and 14356 deletions
12
Makefile
12
Makefile
|
|
@ -1,10 +1,10 @@
|
|||
OUTPUT_DIR = ./builds
|
||||
GIT_COMMIT = `git rev-parse HEAD | cut -c1-7`
|
||||
VERSION = 2.0.0-alpha.3
|
||||
VERSION = 3.0.0-alpha.1
|
||||
BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION) -X main.CommitID=$(GIT_COMMIT)"
|
||||
|
||||
gotty: main.go server/*.go webtty/*.go backend/*.go Makefile
|
||||
godep go build ${BUILD_OPTIONS}
|
||||
go build ${BUILD_OPTIONS}
|
||||
|
||||
.PHONY: asset
|
||||
asset: bindata/static/js/gotty-bundle.js bindata/static/index.html bindata/static/favicon.png bindata/static/css/index.css bindata/static/css/xterm.css bindata/static/css/xterm_customize.css
|
||||
|
|
@ -58,10 +58,10 @@ js/node_modules/webpack:
|
|||
npm install
|
||||
|
||||
tools:
|
||||
go get github.com/tools/godep
|
||||
go get github.com/mitchellh/gox
|
||||
go get github.com/tcnksm/ghr
|
||||
go get github.com/jteeuwen/go-bindata/...
|
||||
# TODO convert to `go install`
|
||||
go get github.com/mitchellh/gox # for crosscompiling
|
||||
go get github.com/tcnksm/ghr # for making gihub releases
|
||||
go get github.com/jteeuwen/go-bindata/... # for static asset management
|
||||
|
||||
test:
|
||||
if [ `go fmt $(go list ./... | grep -v /vendor/) | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue