yarn으로 패키지 설치할 때 .gitignore 작성법

2023. 11. 7. 00:18·Frontend

yarn으로 패키지를 설치하니까

.yarn 파일이 엄청 많이 생겼다.

 

그것도 모르고 터미널로... git add . 해버렸더니... 깃헙 레파지토리에 올라가질 않는다...ㅎㅎㅎ

ㅠㅠㅠ

 

그래서 그냥 프젝 다시 파서 하기로...

초기에 알아서 다행이다.

 

이 글을 참고했다.

 

Am I meant to commit yarn's `.pnp.js` file?

Yarn includes an optional "Plug'n'Play" feature which moves node_modules out of the project directory. In doing so it creates a .pnp.js file with references to various dependency paths on the hard ...

stackoverflow.com

stackoverflow에 보니까 Zero-Installs ?? 이라는게 있는데

yarn zero install에 대해서 찾아봐야할 것 같다.

# ------- yarn -------
# see excellent notes at: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
# Also: `yarn.lock` and `.yarnrc.yml` (or it's older counterpart .yarnrc) "should always be stored in your repo"
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

## --> ADD if using zero-install, otherwise do NOT:
#!.yarn/cache

## --> ELSE ADD if NOT using yarn's zero-install:
.pnp.*

# ------- end yarn -------

 

# gitignore 만들어주는 사이트

 

gitignore.io

Create useful .gitignore files for your project

www.toptal.com

 

# gitignore 작성하는 법

 

[Git] .gitignore 사용해 git에 추가되지 말아야 할 파일 정의하기

.gitignore 파일이란? .gitignore 파일은 Git의 root 디렉토리에 저장되어, Git Repository나 Staging Area에 추가되지 말아야 하는(무시되어야 하는) 폴더나 파일을 정의하는 파일이다. .gitignore에 정의된 파일은

kotlinworld.com

 

반응형

'Frontend' 카테고리의 다른 글

firebase 배포하는 방법  (1) 2024.09.16
구글 앱 비밀번호 생성하는 방법  (0) 2024.01.03
nvm 명령어  (1) 2023.12.22
JSON Generator, 그 외 JSON 관련 유용한 사이트  (0) 2023.11.04
'Frontend' 카테고리의 다른 글
  • firebase 배포하는 방법
  • 구글 앱 비밀번호 생성하는 방법
  • nvm 명령어
  • JSON Generator, 그 외 JSON 관련 유용한 사이트
전예방
전예방
  • 전예방
    예방이의 개발일기
    전예방
  • 전체
    오늘
    어제
    • All (125)
      • Info & Tip (2)
      • 유용한 사이트들 (5)
      • Mark Up & StyleSheet (23)
        • HTML (6)
        • CSS & SCSS (10)
        • 반응형 (6)
      • Frontend (66)
        • 전체 (10)
        • JavaScript & Jquery (18)
        • TypeScript (0)
        • React (26)
        • Next.js (3)
        • 성능최적화 (2)
        • 웹접근성 (2)
      • Backend (13)
        • Python (1)
        • JAVA (2)
        • node.js (0)
        • PHP (7)
        • 패키지매니저 (3)
      • Markdown (0)
      • SCM (1)
        • Git&Github (1)
        • SVN (0)
      • IDE (4)
        • VSCode (2)
        • IntelliJ (1)
        • Ecplise (1)
      • 취미생활 (3)
      • 정보처리기사 (2)
      • 코딩자율학습단 (5)
        • 12기 (파이썬) (5)
  • 블로그 메뉴

    • 홈
    • 태그
  • 링크

    • velog
    • github
  • 공지사항

  • 인기 글

  • 태그

    관리자 페이지
    TypeScript
    React Swiper
    Admin
    Chart.js
    frontend
    yarn berry
    swiper.js
    react
    회원가입
    리액트
    NPM
    Python
    CSS
    php
    반응형
    파이썬
    코딩자율학습단
    코딩자율학습
    나도코딩
  • 최근 댓글

  • 최근 글

  • 반응형
  • hELLO· Designed By정상우.v4.10.3
전예방
yarn으로 패키지 설치할 때 .gitignore 작성법
상단으로

티스토리툴바