andrewmcodes-archive / andrewmcodes-archive/tailwind_view_component

refactor: Classify must be rearchitected

未关闭
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
5
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Classify.rb is a pattern I borrowed from the Primer team but it's just not going to work for us. I've been really thinking about the best way to go about this to avoid duplication and be flexible and I believe the answer is sourcing class and constraints directly from the Tailwind config.

This presents some issues though bc the config is a JS file. I wrote a script to convert it to JSON but it's brittle and I don't love it.

I'm wondering if this would be a good use case for a JSON schema that we generate for each TW release and combine it with some of the `dry-rb` tools.

Open to suggestions but my goal is to separate (at minimum) the class config stuff into separate files based on their category on the Tailwind docs site.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。