test: husky pre-push hook 설정

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-21 09:53:40 +09:00
co-authored by Cursor
parent e3164fc96d
commit 14f534c3fc
6 changed files with 456 additions and 227 deletions
+12
View File
@@ -0,0 +1,12 @@
---
globs: frontend/apps/cs/**/*
alwaysApply: false
---
# apps/cs 표준단어정의서 참고 조건
- **위치**: `apps/cs/docs/표준단어정의서.md`
- **참고 시점**: 다음 두 경우에만 해당 파일을 참고한다.
1. 사용자가 "표준단어정의서를 참고해", "표준단어정의서 참고" 등으로 **명시적으로 요청**했을 때
2. 사용자가 `@apps/cs/docs/표준단어정의서.md` 로 **파일을 멘션**했을 때
- **자동 참고 금지**: apps/cs 작업 시 이 문서를 컨텍스트에 자동으로 포함하지 않는다. 요청 또는 멘션 시에만 사용한다.
+30
View File
@@ -0,0 +1,30 @@
---
description: apps/st 작업 시 컴포넌트 및 타입 참조 규칙
globs: frontend/apps/st/**/*
alwaysApply: false
---
# apps/st 개발 규칙
## 컴포넌트 참조
작업 요청 시 다음 컴포넌트를 참조한다:
- **공통 컴포넌트**: `packages/common/components` 폴더 내 컴포넌트 참조
- **그리드 컴포넌트**: `apps/st/src/components/module` 폴더 내 컴포넌트 참조
## 데이터 테이블
- **기본 컴포넌트**: 데이터 테이블 작업 시 기본적으로 **RealGrid** 컴포넌트를 사용한다
- **그리드 컴포넌트 위치**: `apps/st/src/components/module` 폴더 참조
## 목데이터 생성
- **라이브러리**: 목데이터 생성 시 **Faker.js** (`@faker-js/faker`)를 사용한다
- **사용 방법**: 실제 데이터 구조와 유사한 형태로 목데이터를 생성한다
## RealGrid 타입 참조
- **적용**: apps/st에서 realgrid 관련 작업을 요청할 때
- **타입 정의 경로**: `node_modules/.pnpm/realgrid@2.9.6/node_modules/realgrid/dist/main.d.ts`
- **사용 방법**: 위 파일을 참조하여 필요한 타입·API 시그니처만 확인한다. 파일 전체를 컨텍스트에 넣지 말고, Grep/Read로 필요한 심볼·구간만 조회해 사용한다.
+6 -25
View File
@@ -1,28 +1,9 @@
# turbo
.turbo/
.vscode/**/*
# dependencies
node_modules/
# build
.next/
dist/
# build
.next
dist
# misc
.next/
.turbo/
*.log
.DS_Store
apps/wr/.next/**/*
apps/fo/.next/**/*
# env
#.env*
.qodo
pnpm-lock.yaml
settings.json
.npmrc
.cursor
.env
.env.local
*.tsbuildinfo
+1
View File
@@ -0,0 +1 @@
pnpm run build
+4 -2
View File
@@ -25,7 +25,8 @@
"dev:fo": "turbo run dev --filter=fo",
"dev:dm": "turbo run dev --filter=dm",
"preview:components": "turbo run storybook --filter=@common/components",
"preinstall": "npx only-allow pnpm"
"preinstall": "npx only-allow pnpm",
"prepare": "husky"
},
"dependencies": {
"chart.js": "^4.4.8",
@@ -38,6 +39,8 @@
"@types/node": "^22.13.1",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"turbo": "2.4.2"
},
"pnpm": {
@@ -46,7 +49,6 @@
"@types/react-dom": "^19.2.3",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"lodash.isequal": "^4.5.0",
"source-map": "^0.7.4"
},
+403 -200
View File
File diff suppressed because it is too large Load Diff