Skip to content

Commit

Permalink
feat(gql): Add graphql schema gen
Browse files Browse the repository at this point in the history
  • Loading branch information
gfanton committed Aug 23, 2018
1 parent 5281428 commit 73ccd94
Show file tree
Hide file tree
Showing 25 changed files with 10,123 additions and 2,301 deletions.
7 changes: 7 additions & 0 deletions core/Makefile
Expand Up @@ -7,6 +7,7 @@ PROTOS = $(call rwildcard, $(CODE_PATHS), *.proto)
SERVICE_PROTOS = $(call rwildcard, api, *.proto)
GENERATED_FILES = \
$(patsubst %.proto,%.pb.go,$(PROTOS)) \
api/node/service.graphql \
api/client/berty.node.service.gen.go \
$(call rwildcard $(CODE_PATHS), *.gen.go) \
api/p2p/kind.gen.go
Expand Down Expand Up @@ -104,6 +105,12 @@ api/client/berty.node.service.gen.go: $(PROTOS)
); done
goimports -w ./api/client/


api/p2p/kind.gen.go: $(PROTOS)
$(PROTOC) $(PROTOC_OPTS) --gotemplate_out=debug=false,single-package-mode=true,all=true,template_dir=./api/p2p:./api/p2p ./api/p2p/kind.proto
goimports -w ./api/p2p

api/node/service.graphql: $(PROTOS)
$(PROTOC) $(PROTOC_OPTS) --gotemplate_out=debug=false,all=true,template_dir=./api/node:./api/node/graphql ./api/node/service.proto
cd ./api/node/graphql && gqlgen -v gen

203 changes: 120 additions & 83 deletions core/api/client/berty.node.service.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73ccd94

Please sign in to comment.