ev/Makefile

30 lines
561 B
Makefile
Raw Normal View History

2022-08-06 09:52:36 -06:00
export EV_DATA = mem:
export EV_HTTP = :8080
2022-08-12 15:53:16 -06:00
-include local.mk
2022-08-06 09:52:36 -06:00
run: gen
2022-08-06 09:52:36 -06:00
go run .
test:
2022-08-07 11:55:49 -06:00
go test -cover -race ./...
GQLDIR=api/gql_ev
GQLS=$(wildcard $(GQLDIR)/*.go) $(wildcard $(GQLDIR)/*.graphqls) gqlgen.yml
GQLSRC=internal/graph/generated/generated.go
2022-08-07 11:55:49 -06:00
gen: gql
gql: $(GQLSRC)
$(GQLSRC): $(GQLS)
ifeq (, $(shell which gqlgen))
go install github.com/99designs/gqlgen@latest
endif
gqlgen
load:
2022-08-12 15:53:16 -06:00
watch -n .1 "http POST localhost:8080/inbox/asdf/test a=b one=1 two:='{\"v\":2}' | jq"
2022-08-10 19:18:42 -06:00
bi:
go build .
sudo mv ev /usr/local/bin/
sudo systemctl restart ev