-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Zli-UoA/zoo-backend into story/#21
- Loading branch information
Showing
12 changed files
with
6,622 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_Store | ||
.direnv/ | ||
.env | ||
|
||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
.PHONY: migrate generate-entities | ||
.PHONY: migrate generate-entities db-up db-down db-restart db-reset | ||
|
||
migrate: | ||
$(MAKE) -C backend migrate | ||
|
||
generate-entities: | ||
$(MAKE) -C backend generate-entities | ||
|
||
db-up: | ||
$(MAKE) -C infra db-up | ||
|
||
db-down: | ||
$(MAKE) -C infra db-down | ||
|
||
db-restart: | ||
$(MAKE) -C infra db-restart | ||
|
||
db-reset: | ||
$(MAKE) -C infra db-reset |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
/target | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,7 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# graphql-codegen | ||
|
||
src/generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { CodegenConfig } from "@graphql-codegen/cli"; | ||
|
||
const config: CodegenConfig = { | ||
schema: "https://zoo-backend.zli.works/", | ||
documents: ["src/**/*.tsx"], | ||
ignoreNoDocuments: true, // for better experience with the watcher | ||
generates: { | ||
"./src/generated/": { | ||
preset: "client", | ||
config: { | ||
strictScalars: true, | ||
scalars: {}, | ||
nonOptionalTypename: true, | ||
}, | ||
}, | ||
}, | ||
hooks: { | ||
afterAllFileWrite: ["biome format --write"], | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.