Skip to content

Commit

Permalink
doc: add graphql-codegen-typescript-mock-data plugin in doc (#8417)
Browse files Browse the repository at this point in the history
Co-authored-by: Charly POLY <cpoly55@gmail.com>
  • Loading branch information
ardeois and charlypoly committed Oct 3, 2022
1 parent 9df99d6 commit 8efc2fc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/src/category-to-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const CategoryToPackages = {
'typescript-vue-apollo',
'typescript-vue-apollo-smart-ops',
'typescript-vue-urql',
'typescript-mock-data',
],
dart: ['flutter-freezed'],
};
6 changes: 6 additions & 0 deletions website/src/lib/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ export const PACKAGES: Record<
icon: 'typescript',
tags: ['plugin', 'typescript'],
},
'typescript-mock-data': {
title: 'TypeScript Mock Data',
npmPackage: 'graphql-codegen-typescript-mock-data',
icon: 'typescript',
tags: ['plugin', 'typescript'],
},
'typescript-mongodb': {
title: 'TypeScript MongoDB',
npmPackage: '@graphql-codegen/typescript-mongodb',
Expand Down
3 changes: 2 additions & 1 deletion website/src/pages/plugins/typescript/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"typescript-validation-schema": "validation-schema",
"typescript-vue-apollo": "vue-apollo",
"typescript-vue-apollo-smart-ops": "vue-apollo-smart-ops",
"typescript-vue-urql": "vue-urql"
"typescript-vue-urql": "vue-urql",
"typescript-mock-data": "typescript-mock-data"
}
10 changes: 10 additions & 0 deletions website/src/pages/plugins/typescript/typescript-mock-data.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: typescript-mock-data
---

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 8efc2fc

Please sign in to comment.