diff --git a/website/src/category-to-packages.mjs b/website/src/category-to-packages.mjs index 7f30f170552..50ed1682539 100644 --- a/website/src/category-to-packages.mjs +++ b/website/src/category-to-packages.mjs @@ -26,6 +26,7 @@ export const CategoryToPackages = { 'typescript-apollo-client-helpers', 'typescript-apollo-next', 'typescript-document-nodes', + 'typescript-fabbrica', 'typescript-generic-sdk', 'typescript-graphql-files-modules', 'typescript-graphql-request', diff --git a/website/src/lib/plugins.ts b/website/src/lib/plugins.ts index 99eba417214..7e0622eeddc 100644 --- a/website/src/lib/plugins.ts +++ b/website/src/lib/plugins.ts @@ -277,6 +277,12 @@ export const PACKAGES: Record< icon: 'typescript', tags: ['plugin', 'typescript'], }, + 'typescript-fabbrica': { + title: 'TypeScript Mock Data Factory', + npmPackage: '@mizdra/graphql-codegen-typescript-fabbrica', + icon: 'typescript', + tags: ['plugin', 'typescript'], + }, 'typescript-generic-sdk': { title: 'TypeScript Generic SDK', npmPackage: '@graphql-codegen/typescript-generic-sdk', diff --git a/website/src/pages/plugins/typescript/_meta.ts b/website/src/pages/plugins/typescript/_meta.ts index 09510aa2a06..bf6b9280e9e 100644 --- a/website/src/pages/plugins/typescript/_meta.ts +++ b/website/src/pages/plugins/typescript/_meta.ts @@ -7,6 +7,7 @@ export default { 'typescript-apollo-client-helpers': 'apollo-client-helpers', 'typescript-apollo-next': 'apollo-next', 'typescript-document-nodes': 'document-nodes', + 'typescript-fabbrica': 'fabbrica', 'typescript-generic-sdk': 'generic-sdk', 'typescript-graphql-files-modules': 'graphql-files-modules', 'typescript-graphql-request': 'graphql-request', diff --git a/website/src/pages/plugins/typescript/typescript-fabbrica.mdx b/website/src/pages/plugins/typescript/typescript-fabbrica.mdx new file mode 100644 index 00000000000..49e0de905e1 --- /dev/null +++ b/website/src/pages/plugins/typescript/typescript-fabbrica.mdx @@ -0,0 +1,11 @@ +--- +title: typescript-fabbrica +description: GraphQL Code Generator Plugin to define mock data factory. +--- + +import { PluginApiDocs, PluginHeader } from '@/components/plugin' +import { pluginGetStaticProps } from '@/lib/plugin-get-static-props' +export const getStaticProps = pluginGetStaticProps(__filename) + + +