Skip to content

Commit

Permalink
🔧 Update codegen config: add prettier feature
Browse files Browse the repository at this point in the history
  • Loading branch information
anxiubin committed Dec 15, 2023
1 parent dc3ad30 commit 6a52882
Show file tree
Hide file tree
Showing 7 changed files with 1,792 additions and 295 deletions.
4 changes: 2 additions & 2 deletions codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: "https://simple-blog.munawiki.dev/graphql",
documents: ['src/**/*.{ts,tsx,graphql}'],
documents: ['src/**/*.{ts,tsx}'],
generates: {
'./src/lib/graphql/': {
overwrite: true,
Expand All @@ -12,7 +12,7 @@ const config: CodegenConfig = {
},
}
},
ignoreNoDocuments: true,
hooks: { afterAllFileWrite: ['prettier --write'] },
};

export default config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"postcss": "^8.4.31",
"prettier": "^3.1.1",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"vite": "^5.0.0"
Expand Down
66 changes: 0 additions & 66 deletions src/lib/graphql/fragment-masking.ts

This file was deleted.

Loading

0 comments on commit 6a52882

Please sign in to comment.