feat: add graphql

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-05 23:47:29 +03:00
parent 4b196e3d0e
commit 8b100c18b7
13 changed files with 6246 additions and 1 deletions

View File

@@ -11,7 +11,10 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"types:generate": "openapi-typescript http://localhost:1337/swagger-spec.json -o ./src/api/paths.ts"
"types:generate": "openapi-typescript http://localhost:1337/swagger-spec.json -o ./src/api/paths.ts",
"graphql:generate": "graphql-codegen",
"graphql:schema": "graphql-codegen -p introspect",
"endpoint:generate": "node scripts/endpoint-generate.mjs"
},
"dependencies": {
"@astrojs/react": "^4.4.2",
@@ -46,6 +49,8 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"embla-carousel-react": "^8.6.0",
"graphql": "^16.13.2",
"graphql-tag": "^2.12.6",
"input-otp": "^1.4.2",
"lucide-react": "^0.487.0",
"next-themes": "^0.4.6",
@@ -62,6 +67,12 @@
"vaul": "^1.1.2"
},
"devDependencies": {
"@graphql-codegen/add": "^6.0.0",
"@graphql-codegen/cli": "^6.2.1",
"@graphql-codegen/schema-ast": "^5.0.1",
"@graphql-codegen/typed-document-node": "^6.1.7",
"@graphql-codegen/typescript": "^5.0.9",
"@graphql-codegen/typescript-operations": "^5.0.9",
"@tailwindcss/vite": "^4.1.12",
"@types/node": "^20.11.19",
"@types/react": "^18.3.12",