feat(tokens): setup design token transformation pipeline and CI automation#270
Conversation
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
| ### Review checklist | ||
| - [ ] `validate` 잡 Step Summary에서 CSS diff 확인 | ||
| - [ ] 의도하지 않은 토큰 삭제 없음 | ||
| - [ ] 머지 후 Storybook에서 시각적 변경 확인 | ||
| BODY | ||
| )" |
|
머지하겠습니다~! |
|
고생하셨습니다~! |
Yeom-JinHo
left a comment
There was a problem hiding this comment.
늦어버렸네용 😢
이거 flow 조금만 자세히 설명해주실 수 있나요?
| "build": "tsup", | ||
| "build": "tsup && pnpm build:tokens", | ||
| "build:tokens": "node config.js", | ||
| "transform:tokens": "token-transformer ../../tokens /tmp/tokens-transformed.json", |
There was a problem hiding this comment.
tmp/tokens-transformed.json의 역할이 뭔가요? 👀
There was a problem hiding this comment.
아이고 이제야 봤네요
요친구 figma token에서 Tokens Studio 포맷(value/type)을 token-transformer가 W3C DTCG 포맷($value/$type)으로 변환한 결과를 임시로 담아두는 파일이여요!
There was a problem hiding this comment.
이거 flow 조금만 자세히 설명해주실 수 있나요?
@Yeom-JinHo
Tokens Studio(Figma) -> GitHub Actions -> (token-transformer로 포맷 번역) -> Style Dictionary -> Vanilla Extract 요 흐름으로 봐주시면 됩니다!!
개요
primitive와semantic계층으로 분리하여 관리합니다.주요 변경 사항
transform:tokens스크립트 추가Vanilla Extract및CSS변수를 생성하는 빌드 프로세스 설정token.yaml) 구축:tokens/figma-sync브랜치에 Push 발생 시 자동 실행diff)을 시각적으로 확인 가능main브랜치로의 PR 생성을 자동화하여 디자이너-개발자 간 협업 워크플로우 최적화