Skip to content

Commit

Permalink
add typescript-fabbrica plugin in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Oct 14, 2023
1 parent 9a46680 commit 41c3dd7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/src/category-to-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 6 additions & 0 deletions website/src/lib/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions website/src/pages/plugins/typescript/_meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
11 changes: 11 additions & 0 deletions website/src/pages/plugins/typescript/typescript-fabbrica.mdx
Original file line number Diff line number Diff line change
@@ -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)

<PluginHeader />
<PluginApiDocs />

0 comments on commit 41c3dd7

Please sign in to comment.