코드 검증
작업 완료 후 코드를 검증합니다.
검증 순서
- •TypeScript 타입 체크 (있는 경우)
- •린트 실행
- •테스트 실행
- •빌드 실행
실행 명령어
bash
# package.json scripts 확인 cat package.json | grep -A 20 '"scripts"' # 일반적인 검증 순서 npm run typecheck || npx tsc --noEmit npm run lint npm test npm run build
검증 루프
각 단계에서 에러가 발생하면:
- •즉시 수정
- •다시 검증
- •모두 통과할 때까지 반복