디자인 토큰 마이그레이션 후 사용된 색상 문제를 해결하는 CLI 도구 hexsweep 소개.
디자인 토큰 마이그레이션 후 원래 색상이 코드에 남아있을 경우 문제를 일으킬 수 있습니다. 이를 해결하기 위해 'hexsweep'라는 의존성 없는 CLI 도구를 개발했습니다. 이 도구는 소스 코드를 스캔하여 하드코딩된 색상을 찾아내고, CI에 쉽게 통합할 수 있습니다. 기존의 grep이나 stylelint 도구보다 더 정확하고 효과적으로 색상 오류를 찾아내는 특징이 있습니다.
Introducing hexsweep, a zero-dep CLI tool that detects hardcoded colors after design-token migration.
Post design-token migration, hardcoded colors can lead to issues in your application. To address this problem, I developed a zero-dependency CLI tool called 'hexsweep'. This tool scans your source code and flags hardcoded color literals that have escaped, integrating smoothly into CI pipelines. It offers more accuracy and effectiveness compared to traditional grep or stylelint tools in identifying color errors.