jquery / jquery

jQuery JavaScript Library
https://jquery.com
MIT License
58.96k stars 20.62k forks source link

Build: add --reset-compare and --clear-compare options to build command #5393

Closed timmywil closed 2 months ago

timmywil commented 4 months ago

Summary

This adds 2 options to the build command.

My compare-size cache was getting a little big with all my branches. Rather than manually editing or deleting the file, I would prefer a command that kept the main branch and last run in there (npm run build -- --reset-compare).

I also added --clear-compare in case there's ever a need for starting over completely. It just deletes the cache file.

Checklist

timmywil commented 4 months ago

Sure, that can be configured

timmywil commented 2 months ago

Looking at this again, I think I'll just write to the cache in prettier JSON. Then we can easily edit the cache manually if it gets out of hand.