SharePoint Framework용 .gitignore

저장소에 바로 복사할 수 있는 SharePoint Framework 제외 규칙 17개.

SharePoint용 페이지 및 웹 파트 모델

SharePoint Framework용 전체 .gitignore

# LFGitignore로 생성 - https://lfgitignore.com
# 생성일: 2026-10-13 16:02:17 UTC
# 기술: SharePoint Framework

### SharePoint Framework ###
node_modules
dist
logs
lib
solution
temp
*.sppkg
# macOS 폴더 설정(Desktop Services Store)
.DS_Store
.ntvs_analysis.dat
# 로그 파일
*.log
.vs
# 커버리지 디렉터리
coverage
bin
# npm 디버그 로그
npm-debug.log*
obj
*.resx.ts
*.scss.ts

이 SharePoint Framework 규칙이 실제로 제외하는 항목

아래에서 각 패턴과 .gitignore에 포함하는 이유를 확인하세요.

의존성 디렉터리

패턴 제외 대상
node_modules 의존성 디렉터리

빌드 생성 파일

패턴 제외 대상
dist 빌드 생성 파일
lib 빌드 생성 파일
solution 빌드 생성 파일
temp 빌드 생성 파일
*.sppkg 빌드 생성 파일

로그

패턴 제외 대상
logs 로그
*.log 로그 파일
npm-debug.log* npm 디버그 로그

OSX

패턴 제외 대상
.DS_Store macOS 폴더 설정(Desktop Services Store)

Visual Studio 파일

패턴 제외 대상
.ntvs_analysis.dat Visual Studio 파일
.vs Visual Studio 파일
bin Visual Studio 파일
obj Visual Studio 파일

istanbul 같은 도구가 사용하는 커버리지 디렉터리

패턴 제외 대상
coverage 커버리지 디렉터리

Resx 생성 코드

패턴 제외 대상
*.resx.ts Resx 생성 코드

스타일 생성 코드

패턴 제외 대상
*.scss.ts 스타일 생성 코드

이 SharePoint Framework용 .gitignore 사용 방법

  1. 위의 SharePoint Framework 규칙을 복사하거나 파일을 바로 다운로드하세요.
  2. Git 저장소 루트에 .gitignore라는 파일을 만들고 규칙을 붙여 넣으세요.
  3. 이미 추적 중인 파일이 있다면 git rm -r --cached . 명령을 실행한 다음 다시 커밋하세요. Git은 추적하지 않는 파일에만 제외 규칙을 적용합니다.
  4. 팀원 모두가 같은 규칙을 사용하도록 .gitignore를 커밋하세요.

다른 프레임워크용 .gitignore 템플릿

모든 프레임워크 템플릿 보기