update runner
This commit is contained in:
parent
395be62e13
commit
ce86126d5f
6
Makefile
6
Makefile
|
@ -4,7 +4,7 @@ ROUTE_FILES=$(wildcard assets/src/*) $(wildcard assets/public/*)
|
||||||
DOCS_ASSET=src/docs/bindata.go
|
DOCS_ASSET=src/docs/bindata.go
|
||||||
DOCS_FILES=$(wildcard src/docs/ui/*)
|
DOCS_FILES=$(wildcard src/docs/ui/*)
|
||||||
|
|
||||||
VENDOR_FILES=$(shell find vendor -type f -name '*.go')
|
# VENDOR_FILES=$(shell find vendor -type f -name '*.go')
|
||||||
|
|
||||||
SOURCE=$(wildcard cmd/paste/*.go) $(filter-out src/routes/bindata.go, $(wildcard src/routes/*.go))
|
SOURCE=$(wildcard cmd/paste/*.go) $(filter-out src/routes/bindata.go, $(wildcard src/routes/*.go))
|
||||||
BINARY=paste
|
BINARY=paste
|
||||||
|
@ -21,9 +21,9 @@ clean:
|
||||||
rm -rf $(BINARY) $(ROUTE_ASSET) $(DOCS_ASSET)
|
rm -rf $(BINARY) $(ROUTE_ASSET) $(DOCS_ASSET)
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
cd assets; npm i
|
|
||||||
go mod download
|
go mod download
|
||||||
go mod vendor
|
go mod vendor
|
||||||
|
cd assets; npm i
|
||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
test:
|
test:
|
||||||
|
@ -32,7 +32,7 @@ test:
|
||||||
run: $(BINARY)
|
run: $(BINARY)
|
||||||
./$(BINARY) -vv serve
|
./$(BINARY) -vv serve
|
||||||
|
|
||||||
$(BINARY): $(SOURCE) $(ROUTE_ASSET) $(VENDOR_FILES) $(DOCS_ASSET)
|
$(BINARY): $(SOURCE) $(ROUTE_ASSET) $(DOCS_ASSET)
|
||||||
# go vet ./...
|
# go vet ./...
|
||||||
# go test ./...
|
# go test ./...
|
||||||
go build "sour.is/x/paste/cmd/paste"
|
go build "sour.is/x/paste/cmd/paste"
|
||||||
|
|
1
go.mod
1
go.mod
|
@ -11,7 +11,6 @@ require (
|
||||||
github.com/sour-is/go-assetfs v1.0.0
|
github.com/sour-is/go-assetfs v1.0.0
|
||||||
github.com/spf13/viper v1.6.2
|
github.com/spf13/viper v1.6.2
|
||||||
github.com/vektah/dataloaden v0.2.1-0.20190515034641-a19b9a6e7c9e
|
github.com/vektah/dataloaden v0.2.1-0.20190515034641-a19b9a6e7c9e
|
||||||
golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de // indirect
|
|
||||||
golang.org/x/sys v0.0.0-20200817085935-3ff754bf58a9
|
golang.org/x/sys v0.0.0-20200817085935-3ff754bf58a9
|
||||||
sour.is/x/toolbox v0.11.4
|
sour.is/x/toolbox v0.11.4
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user