catppuccin / vscode-icons

🦊 Soothing pastel icons for VSCode/VSCodium
https://marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc-icons
MIT License
599 stars 31 forks source link

refactor(scripts): split `icons.ts` & add new commands #199

Closed uncenter closed 3 months ago

uncenter commented 4 months ago

I found that having to use CLI flags was frustrating and it makes more sense to me at least to split each function into a separate file and run it as a separate script. I have done just that in this PR, and also recreated the icons --all behavior with pnpm run icons, which uses pnpm's support for multiple scripts / regex to run all the icons: subscripts.

uncenter commented 4 months ago

The diff is awful, as usual. I haven't changed a single line of code besides copying the original script into each file, removing the unrelated functions and function declaration wrapper, and removing unused imports.