refactor: Migrate from playwright-lighthouse to lighthouse direct usage #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๐ ์์ ๋ด์ฉ
closes #52
๐ก ์์ธํ ์ค๋ช
1. playwright-lighthouse ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ๊ฑฐ ๋ฐ lighthouse ๊ณต์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก ๋ง์ด๊ทธ๋ ์ด์
์ด๊ธฐ์๋ ์ฌ์ฉ๋ฒ์ ์ต์ํ์ง ์์ playwright-lighthouse ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํตํด ์ฑ๋ฅ ์ธก์ ์ ๊ฐํธํ๊ฒ ๊ตฌํํ์์ต๋๋ค.
๊ทธ๋ฌ๋ ํด๋น ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ํ์์ ์ธ ์์กด์ฑ์ด ์๋๋ฉฐ, ํ๋ก์ ํธ์ ๋จ์์ฑ๊ณผ ์ ์ง๋ณด์์ฑ์ ๋์ด๊ธฐ ์ํด ๊ณต์ lighthouse ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ง์ ์ฌ์ฉํ๋๋ก ๋ฆฌํฉํ ๋งํ์์ต๋๋ค.
2. lighthouse.util.ts โ lighthouse.helper.ts๋ก ํ์ผ๋ช ๋ณ๊ฒฝ
๊ธฐ์กด ํ์ผ์ ๊ธฐ๋ฅ์ ์ผ๋ฐ์ ์ธ ์ ํธ ํจ์๋ผ๊ธฐ๋ณด๋ค๋ ํน์ ๊ธฐ๋ฅ์ ๋ณด์กฐํ๋ ์ญํ ์ ๊ฐ๊น์, ๋ณด๋ค ๋ช ํํ ๋ชฉ์ ์ ๋๋ฌ๋ด๊ธฐ ์ํด ํ์ผ๋ช ์ helper๋ก ๋ณ๊ฒฝํ์์ต๋๋ค.
๐ ์ฐธ๊ณ ์๋ฃ & ๊ตฌํ ๊ฒฐ๊ณผ (์ ํ)
https://band-channel-d23.notion.site/230e4aabe3228037b997d2718843490b?source=copy_link
๐ข ๋ฆฌ๋ทฐ ์๊ตฌ ์ฌํญ (์ ํ)
๐ฉ ํ์ ์์ (์ ํ)
โ ์ ํ ์ฒดํฌ๋ฆฌ์คํธ
main
์ด ์๋๋๋ค.)