Add deployment map, Nixpacks, ESLint, Storybook, and GraphQL codegen setup

This commit is contained in:
Ruslan Bakiev
2026-02-19 18:56:36 +07:00
parent fc64a51974
commit c1c6616994
13 changed files with 18833 additions and 62 deletions

27
Frontend/codegen.ts Normal file
View File

@@ -0,0 +1,27 @@
import type { CodegenConfig } from "@graphql-codegen/cli";
const schemaUrl = process.env.GRAPHQL_SCHEMA_URL || process.env.GRAPHQL_HTTP_ENDPOINT || "http://localhost:3000/api/graphql";
const config: CodegenConfig = {
schema: schemaUrl,
documents: ["graphql/operations/**/*.graphql"],
generates: {
"composables/graphql/generated.ts": {
plugins: [
"typescript",
"typescript-operations",
"typed-document-node",
"typescript-vue-apollo",
],
config: {
withCompositionFunctions: true,
vueCompositionApiImportFrom: "vue",
dedupeFragments: true,
namingConvention: "keep",
},
},
},
ignoreNoDocuments: false,
};
export default config;