-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (30 loc) · 1.03 KB
/
Makefile
File metadata and controls
42 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
gen-docs:
DOCS_OUT=./docs go run ./cmd/gen-docs
copy-docs:
cp ./docs/* ../docs/docs/cli/commands
build:
go build -o ./bin/ ./cmd/zeet
link-dev:
ln -s $(shell pwd)/bin/zeet ~/bin/zeet
gen-go:
go generate ./...
test:
go test ./...
# GraphQL
gen-gql: get-schema gen-gql-go gen-gql-sdk
get-schema-local:
npx -y get-graphql-schema http://localhost:7001/graphql > schema_0.graphql
npx -y get-graphql-schema http://localhost:7001/v1/graphql > schema_1.graphql
get-schema:
npx -y get-graphql-schema https://anchor.zeet.co/graphql > schema_0.graphql
npx -y get-graphql-schema https://anchor.zeet.co/v1/graphql > schema_1.graphql
CAPTAIN_PATH ?= "../captain"
sync-gql-query:
rm -r ./graphql/v0/synced ./graphql/v1/synced
cp -r $(CAPTAIN_PATH)/packages/web-api/graphql/v0 ./graphql/v0/synced
cp -r $(CAPTAIN_PATH)/packages/web-api/graphql/v1 ./graphql/v1/synced
gen-gql-go:
go run github.com/Khan/genqlient genqlient.yaml
gen-gql-sdk:
go run github.com/Khan/genqlient genqlient_0.yaml
go run github.com/Khan/genqlient genqlient_1.yaml