homebound-team / truss

A TypeScript DSL for writing utility CSS in React/JSX
32 stars 0 forks source link

Refactor to combine Config & GenerateOpts. #33

Closed stephenh closed 3 years ago

stephenh commented 3 years ago

Before each project had this two-step project of "first call generateRules, then call generate".

And both of those took slightly different config values.

This combines it into just one step and one config object.

This is a medium-ish breaking change to how downstream projects call truss, i.e. changes to their truss/index.tsx but I think it'll be pretty easy to update and better going forward.

stephenh commented 3 years ago

I want to nudge ahead on some other refactorings so going to merge and do post-merge feedback.