googlefonts / fontations

Reading and writing font files
Apache License 2.0
372 stars 23 forks source link

Improvements to codegen tool behaviour #115

Open cmyr opened 1 year ago

cmyr commented 1 year ago

The codegen tool has evolved organically over time, and as we add more and more inputs it has started to bog down a bit. I would like to make two general changes:

Some unstructured ideas:

In any case wanted to write this down; it isn't a huge priority but would likely be a nice QoL improvement.

rsheeter commented 1 year ago

Vigorously agree re: filters and clean. I was quite unhappy when I made a plan with one file in it - as a way to achieve filtering - and it merrily deleted everything in the target directory for me.

rsheeter commented 1 year ago

IMHO a regex is far friendlier than custom syntax you have to learn about

rsheeter commented 1 year ago

Captured from IM discussion, an option to check (fail if files would have changed) would be helpful, simplifies both CI and presubmit.sh