Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions apps/web/codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
schema: './src/gql/schema.graphql', // introspection된 전체 스키마
documents: './src/**/*.{graphql,gql}', // 모든 쿼리/뮤테이션 경로

generates: {
'./src/gql/graphql.ts': {
plugins: [
'typescript', // Scalar, Object 등 기본 타입
'typescript-operations', // 쿼리, 뮤테이션 관련 타입
'typescript-react-apollo', // useQuery, useMutation 등 React 훅
],
config: {
withHooks: true, // React 훅 생성
withComponent: false,
withHOC: false,
},
},
},
}

export default config
14 changes: 13 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,28 @@
"check-types": "tsc --noEmit"
},
"dependencies": {
"@apollo/client": "^3.13.8",
"@hookform/resolvers": "^5.1.1",
"@repo/fds": "workspace:*",
"@repo/tailwind-config": "workspace:*",
"@tailwindcss/postcss": "^4.1.5",
"@use-funnel/browser": "^0.0.15",
"date-fns": "^4.1.0",
"graphql": "^16.11.0",
"next": "^15.3.0",
"postcss": "^8.5.3",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwindcss": "^4.1.5"
"react-hook-form": "^7.59.0",
"tailwindcss": "^4.1.5",
"zod": "^3.25.67"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.7",
"@graphql-codegen/typescript": "^4.1.6",
"@graphql-codegen/typescript-operations": "^4.6.1",
"@graphql-codegen/typescript-react-apollo": "^4.3.3",
"@hookform/devtools": "^4.4.0",
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@types/node": "^22.14.0",
Expand Down
12 changes: 12 additions & 0 deletions apps/web/src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
@import 'tailwindcss';
@import '@repo/fds/theme';

@theme inline {
--font-pretendard: var(--font-pretendard);
}

@layer base {
/* layout */
:root {
--layout-max-w: 520px;
--layout-min-h: 100dvh;
}
.layout {
@apply max-w-[var(--layout-max-w)] min-h-[var(--layout-min-h)] w-full mx-auto relative;
}
}
7 changes: 6 additions & 1 deletion apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from 'next'
import localFont from 'next/font/local'
import './globals.css'
import { ApolloProvider } from '../providers/ApolloProvider'

const pretendard = localFont({
src: '../../public/fonts/PretendardVariable.woff2',
Expand All @@ -21,7 +22,11 @@ export default function RootLayout({
}>) {
return (
<html lang="ko">
<body className={`${pretendard.variable} font-pretendard`}>{children}</body>
<body className={`${pretendard.variable} font-pretendard`}>
<ApolloProvider>
<div className="layout">{children}</div>
</ApolloProvider>
</body>
</html>
)
}
Loading
Loading