2019-02-09 12:30:49 +00:00
|
|
|
build:
|
2019-02-10 12:16:29 +00:00
|
|
|
CGO_ENABLED=1 packr2 build -mod=vendor -v
|
|
|
|
|
|
|
|
install:
|
|
|
|
packr2 install
|
|
|
|
|
2019-02-14 20:06:37 +00:00
|
|
|
# Regenerates GraphQL files
|
|
|
|
.PHONY: gqlgen
|
2019-02-10 12:16:29 +00:00
|
|
|
gqlgen:
|
2019-02-14 20:06:37 +00:00
|
|
|
go run scripts/gqlgen.go
|
|
|
|
|
|
|
|
# Runs gofmt -w on the project's source code, modifying any files that do not match its style.
|
|
|
|
.PHONY: fmt
|
|
|
|
fmt:
|
|
|
|
go list ./... | grep -v vendor | xargs go fmt
|
|
|
|
|
|
|
|
# Runs go vet on the project's source code.
|
|
|
|
# https://stackoverflow.com/questions/40531874/how-to-make-go-linters-ignore-vendor
|
|
|
|
.PHONY: vet
|
|
|
|
vet:
|
|
|
|
go list ./... | grep -v vendor | xargs go vet
|
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
2019-02-14 22:53:32 +00:00
|
|
|
revive -config revive.toml -exclude ./vendor/... ./...
|