Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VSCode GraphQL + GraphQL Code Generator による快適なフ...

puku0x
February 22, 2022

VSCode GraphQL + GraphQL Code Generator による快適なフロントエンド開発

puku0x

February 22, 2022
Tweet

More Decks by puku0x

Other Decks in Technology

Transcript

  1. projects: my-app: schema: - https://localhost:3000/graphql documents: 'apps/my-app/src/**/*.graphql' extensions: … my-lib:

    schema: - https://localhost:3000/graphql documents: 'libs/my-lib/src/**/*.graphql' extensions: … Projects 22
  2. アプリケーション側 ライブラリ側(型定義の元はこっち) 26 generates: apps/my-app/src/: preset: near-operation-file presetConfig: baseTypesPath: '~@workspace/my-lib

    folder: __generated__ plugins: - typescript-operations - typescript-react-apollo generates: libs/my-lib/src/__generated__/types.generated.ts: plugins: - typescript libs/my-lib/src: preset: near-operation-file presetConfig: baseTypesPath: '~./types.generated' folder: __generated__ plugins: - typescript-operations - typescript-react-apollo