From 3b85113fd3e57bace7af1e445bcabb07b9ac9866 Mon Sep 17 00:00:00 2001 From: Martin Grossmann Date: Thu, 9 Jan 2025 13:17:44 +0100 Subject: [PATCH] graphql schema is now validated on generate (#3722) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index ab305db373..52f64b2d1e 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 {} \;