Skip to content

Commit

Permalink
chore: remove generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
MR2011 committed Oct 23, 2024
1 parent 02bccec commit 9daf6c8
Show file tree
Hide file tree
Showing 28 changed files with 148 additions and 45,441 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ build/
.db/
.env
.mariadb-dev/

# Generated files
internal/mocks/*.go
internal/api/graphql/graph/model/models_gen.go
internal/api/graphql/graph/generated.go

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ ifeq ($(wildcard .env),.env)
export $(shell sed 's/=.*//' .env)
endif

build-binary:
build-binary: mockery gqlgen
GO_ENABLED=0 go build -ldflags="$(LDFLAGS)" -o build/heureka cmd/heureka/main.go

# Build the binary and execute it
run-%:
run-%: mockery gqlgen
GOOS=$(OS) GOARCH=$(ARCH) go build -ldflags="$(LDFLAGS)" -o build/$* cmd/$*/main.go
DB_SCHEMA=./internal/database/mariadb/init/schema.sql ./build/$*

Expand Down Expand Up @@ -66,7 +66,7 @@ mockery:
mockery

GINKGO := go run github.com/onsi/ginkgo/v2/ginkgo
test-all:
test-all: mockery gqlgen
$(GINKGO) -r

test-e2e:
Expand Down
10 changes: 5 additions & 5 deletions internal/api/graphql/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ resolver:
dir: graph/resolver
package: resolver
filename_template: "{name}.go"
# Optional: turn on to not generate template comments above resolvers
# omit_template_comment: false
omit_template_comment: true
resolver_template: graph/resolver/resolver.gotpl

# Optional: turn on use ` + "`" + `gqlgen:"fieldName"` + "`" + ` tags in your models
# struct_tag: json
Expand All @@ -39,10 +39,10 @@ resolver:
# omit_complexity: false

# Optional: turn on to not generate any file notice comments in generated files
# omit_gqlgen_file_notice: false
# omit_gqlgen_file_notice: true

# Optional: turn on to exclude the gqlgen version in the generated file notice. No effect if `omit_gqlgen_file_notice` is true.
# omit_gqlgen_version_in_file_notice: false
omit_gqlgen_version_in_file_notice: true

# Optional: turn off to make struct-type struct fields not use pointers
# e.g. type Thing struct { FieldA OtherThing } instead of { FieldA *OtherThing }
Expand Down Expand Up @@ -228,4 +228,4 @@ models:
ComponentFilterValue:
fields:
componentName:
resolver: true
resolver: true
Loading

0 comments on commit 9daf6c8

Please sign in to comment.