Skip to content

Commit

Permalink
feat: vite with apollo client + gcg
Browse files Browse the repository at this point in the history
  • Loading branch information
linbudu599 committed Mar 18, 2022
1 parent a3ef938 commit 6fa17e3
Show file tree
Hide file tree
Showing 24 changed files with 11,766 additions and 24 deletions.
24 changes: 24 additions & 0 deletions packages/vite-apollo-gcg-starter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 24 additions & 0 deletions packages/vite-apollo-gcg-starter/codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
overwrite: true
schema: 'http://localhost:4001/graphql'
documents: 'src/operations/*.graphql'
generates:
src/generated/schema.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-resolvers'
- 'typescript-react-apollo'
src/generated/operations.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-resolvers'
src/generated/react-apollo.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'

./graphql.schema.json:
plugins:
- 'introspection'
Loading

0 comments on commit 6fa17e3

Please sign in to comment.