-
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.
Auto-generate graphql query and mutation strings (#45)
- Loading branch information
1 parent
ce84550
commit ac5b733
Showing
11 changed files
with
17,070 additions
and
14 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
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,6 +1,16 @@ | ||
appsync/graphql.ts: graphql/schema.graphql | ||
if [ -z "$(IN_PIPELINE)" ] ; then \ | ||
docker run --rm -it --user $$(id -u):$$(id -g) -v $(PWD):/app -w /app/appsync --entrypoint ./node_modules/.bin/graphql-code-generator node:20 --config codegen.ts ; \ | ||
docker run --rm --user $$(id -u):$$(id -g) -v $(PWD):/app -w /app/appsync --entrypoint ./node_modules/.bin/graphql-code-generator node:20 --config codegen.ts ; \ | ||
else \ | ||
echo Not re-auto-generating types file in pipeline ; \ | ||
fi | ||
|
||
appsync/make-schema.js: appsync/make-schema.ts | ||
cd appsync ; esbuild make-schema.ts --bundle --format=esm --platform=node --target=esnext --sourcemap=inline --sources-content=false > make-schema.js | ||
|
||
appsync/schema.ts: graphql/schema.graphql appsync/make-schema.js | ||
if [ -z "$(IN_PIPELINE)" ] ; then \ | ||
docker run --rm -i --user $$(id -u):$$(id -g) -v $(PWD):/app -w /app/appsync node:20 ./make-schema.js < $< > $@ ; \ | ||
else \ | ||
echo Not re-auto-generating types file in pipeline ; \ | ||
fi |
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
Oops, something went wrong.