Skip to content

Commit

Permalink
graphql schema is now validated on generate (#3722)
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin authored Jan 9, 2025
1 parent f8c6ccf commit 3b85113
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
generate-schema:
docker compose exec php-fpm php ./bin/console graphql:validate
docker compose exec php-fpm php phing frontend-api-generate-graphql-schema
docker cp shopsys-framework-php-fpm:/var/www/html/schema.graphql /tmp/schema.graphql
docker cp /tmp/schema.graphql shopsys-framework-storefront:/home/node/app/schema.graphql
Expand All @@ -8,6 +9,7 @@ generate-schema:
docker compose exec storefront rm -rf /home/node/app/schema.graphql

generate-schema-native:
cd app; php ./bin/console graphql:validate
cd app; php phing frontend-api-generate-graphql-schema
cp app/schema.graphql storefront/schema.graphql
find project-base/storefront/graphql/requests -type f -name "*.generated.tsx" -exec rm {} \;
Expand Down

0 comments on commit 3b85113

Please sign in to comment.