Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turborepo 사용 #1913

Closed
1 of 3 tasks
drakang4 opened this issue Feb 9, 2022 · 1 comment · Fixed by #2011
Closed
1 of 3 tasks

turborepo 사용 #1913

drakang4 opened this issue Feb 9, 2022 · 1 comment · Fixed by #2011

Comments

@drakang4
Copy link
Contributor

drakang4 commented Feb 9, 2022

빠른 빌드를 위해 lerna 대신 turborepo를 사용하도록 변경합니다. https://titicaca.slack.com/archives/CEEPB4TDY/p1643254543183800

작업 브랜치: https://github.com/titicacadev/triple-frontend/tree/feature/turbo

태스크

turborepo가 캐시를 사용할 수 있도록 태스크 스크립트를 root의 package.json 에서만 작성했던 방식에서 각 패키지마다 작성하도록 옮겨야 합니다.

  • build
  • test
  • lint

build-declarations를 각 패키지마다로 옮기면 빌드 시간이 오히려 더 길어지는 결과가 나와서 이 태스크는 root에 유지합니다.

빌드하지 않으면 테스트를 돌릴 수가 없는 문제가 있는데 별로 마음에 드는 방식은 아니라서 해결 방법 찾아보는 중 kulshekhar/ts-jest#1648

배포

turborepo 만으로는 lerna versionlerna publish를 대체할 수는 없어서 lerna를 완전히 드랍하려면 모노레포 배포에는 다른 툴을 써보면 좋겠습니다.

후보

버그

특정 패키지 ignore 적용이 안됩니다. vercel/turbo#445

  • npm에 배포할 패키지만 빌드하기 위해 docs와 integration-test를 빌드에서 제외해주어야 합니다.
  • docs까지 빌드하자니 lerna로 제외하고 빌드하는 것에 비해 총 빌드 시간이 더 늘어나므로 해결될 때 까지 기다려봐야 할 것 같습니다.
@drakang4
Copy link
Contributor Author

drakang4 commented Feb 16, 2022

빌드를 선행하지 않으면 테스트를 돌릴 수가 없는 문제가 있는데 별로 마음에 드는 방식은 아니라서 해결 방법 찾아보는 중 kulshekhar/ts-jest#1648

@drakang4 drakang4 linked a pull request Apr 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant