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

๐Ÿ”ง ์˜์กด์„ฑ ๊ด€๋ฆฌ ๋„๊ตฌ ๋ณ€๊ฒฝ #6

Open
3 tasks
BangDori opened this issue Apr 10, 2024 · 0 comments
Assignees
Labels
important ์ค‘์š”๋„๊ฐ€ ๋†’์€ ์ด์Šˆ not urgent ๊ธด๊ธ‰ํ•˜์ง€ ์•Š์€ ์ด์Šˆ

Comments

@BangDori
Copy link
Collaborator

BangDori commented Apr 10, 2024

์ˆ˜์ • ๋ชฉ์ 

์˜์กด์„ฑ ๊ด€๋ฆฌ๋ฅผ ๋”์šฑ ํšจ์œจ์ ์œผ๋กœ ํ•จ๊ณผ ๋™์‹œ์— Zero-install์„ ํ†ตํ•œ Build time ์ฆ๊ฐ€

์ˆ˜์ • ๋‚ด์šฉ

  • node_modules -> yarn PnP

ํ•  ์ผ ๋ชฉ๋ก

  • node_modules -> yarn PnP ๋ณ€๊ฒฝ
  • zero-install ์„ค์ •
  • CI/CD Pipeline ์ˆ˜์ •

์„ค๋ช…

์•„์ง๊นŒ์ง€๋Š” ํ”„๋กœ์ ํŠธ์˜ ๊ทœ๋ชจ๊ฐ€ ๊ทธ๋ ‡๊ฒŒ ํฌ์ง€ ์•Š์•„, node_modules์„ ์ด์šฉํ•œ ์˜์กด์„ฑ ๊ด€๋ฆฌ์™€ yarn PnP๋ฅผ ์ด์šฉํ•œ ์˜์กด์„ฑ ๊ด€๋ฆฌ์— ํฐ ์ฐจ์ด๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

ํ•˜์ง€๋งŒ ํ”„๋กœ์ ํŠธ์˜ ๊ทœ๋ชจ๊ฐ€ ์ปค์ง์— ๋”ฐ๋ผ node_modules๋ฅผ ์ด์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์˜์กด์„ฑ ๊ด€๋ฆฌ์— ํฐ ๋ณต์žก์„ฑ์ด ๋”ฐ๋ฅด๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ์ด์— yarn PnP๋ฅผ ํ†ตํ•ด ๋”์šฑ ํšจ์œจ์ ์ธ ์˜์กด์„ฑ ๊ด€๋ฆฌ๋ฅผ ํ•˜๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค.

๋˜ํ•œ yarn PnP๋ฅผ ์ด์šฉํ•˜๊ฒŒ ๋˜๋ฉด zero-install์„ ๋„์ž…ํ•  ์ˆ˜ ์žˆ์–ด, CI/CD Build Time์˜ ์ฆ๊ฐ€๊นŒ์ง€ ๊ธฐ๋Œ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ค‘์š”ํ•˜์ง€๋งŒ ๊ธด๊ธ‰ํ•˜์ง€๋Š” ์•Š์€ ์‚ฌํ•ญ์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜์—ฌ, Jira Confluence table์— (์ค‘์š”ํ•จ-๊ธด๊ธ‰ํ•˜์ง€ ์•Š์Œ)์— ์ถ”๊ฐ€ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

์ฐธ๊ณ  ๋ฌธ์„œ: https://toss.tech/article/node-modules-and-yarn-berry

BangDori added a commit that referenced this issue Apr 10, 2024
node_modules๋ฅผ ํ†ตํ•œ ์˜์กด์„ฑ ๊ด€๋ฆฌ -> ์ถ”ํ›„ ๋ณ€๊ฒฝ ์˜ˆ์ • #6
vitest์™€ eslint๋ฅผ ์ด์šฉํ•˜์—ฌ CI Pipeline ๊ตฌ์ถ•
docker์™€ EC2๋ฅผ ์ด์šฉํ•˜์—ฌ CD Pipeline ๊ตฌ์ถ•

Closes #PW-248
@BangDori BangDori added not urgent ๊ธด๊ธ‰ํ•˜์ง€ ์•Š์€ ์ด์Šˆ important ์ค‘์š”๋„๊ฐ€ ๋†’์€ ์ด์Šˆ labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
important ์ค‘์š”๋„๊ฐ€ ๋†’์€ ์ด์Šˆ not urgent ๊ธด๊ธ‰ํ•˜์ง€ ์•Š์€ ์ด์Šˆ
Projects
None yet
Development

No branches or pull requests

2 participants