Skip to content

Commit

Permalink
Add typescript-fabbrica plugin in doc (#9694)
Browse files Browse the repository at this point in the history
* yarn workspace website add @mizdra/graphql-codegen-typescript-fabbrica

* add typescript-fabbrica plugin in doc
  • Loading branch information
mizdra authored Oct 23, 2023
1 parent 07134e8 commit 80e4a5b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 2 deletions.
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@graphql-codegen/c-sharp": "4.3.1",
"@graphql-codegen/c-sharp-operations": "2.3.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@graphql-codegen/core": "4.0.0",
"@graphql-codegen/flow": "2.3.6",
"@graphql-codegen/flow-operations": "2.3.6",
Expand Down Expand Up @@ -65,8 +66,8 @@
"@graphql-codegen/typescript-vue-apollo-smart-ops": "2.3.6",
"@graphql-codegen/typescript-vue-urql": "2.3.6",
"@graphql-codegen/urql-introspection": "2.2.1",
"@graphql-codegen/client-preset": "4.1.0",
"@mendable/search": "0.0.155",
"@mizdra/graphql-codegen-typescript-fabbrica": "^0.3.0",
"@monaco-editor/react": "4.5.2",
"@theguild/components": "^6.0.1",
"classnames": "2.3.2",
Expand Down
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 />
15 changes: 14 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3389,6 +3389,14 @@
html-react-parser "^4.2.0"
posthog-js "^1.45.1"

"@mizdra/graphql-codegen-typescript-fabbrica@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@mizdra/graphql-codegen-typescript-fabbrica/-/graphql-codegen-typescript-fabbrica-0.3.0.tgz#783ffc7c4ade7b844a6c65cc1fb7bac340a2f42d"
integrity sha512-ShPEpC6GrzL1fqXqx4Ua1heid8ExrK/evJI1vozVPt6mZWebwKG0tf26v9KwQ0F8HZBufnq4BURUMXobWi9ckQ==
dependencies:
"@graphql-codegen/plugin-helpers" "^5.0.1"
"@graphql-codegen/visitor-plugin-common" "^4.0.1"

"@monaco-editor/loader@^1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@monaco-editor/loader/-/loader-1.3.3.tgz#7f1742bd3cc21c0362a46a4056317f6e5215cfca"
Expand Down Expand Up @@ -8617,11 +8625,16 @@ [email protected]:
lru-cache "^10.0.0"
tslib "^2.5.2"

[email protected], graphql@^16.0.0, graphql@^16.6.0:
[email protected], graphql@^16.6.0:
version "16.8.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.0.tgz#374478b7f27b2dc6153c8f42c1b80157f79d79d4"
integrity sha512-0oKGaR+y3qcS5mCu1vb7KG+a89vjn06C7Ihq/dDl3jA+A8B3TKomvi3CiEcVLJQGalbu8F52LxkOym7U5sSfbg==

graphql@^16.0.0:
version "16.8.1"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07"
integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==

gray-matter@^4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/gray-matter/-/gray-matter-4.0.3.tgz#e893c064825de73ea1f5f7d88c7a9f7274288798"
Expand Down

0 comments on commit 80e4a5b

Please sign in to comment.