Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

uncenter
Copy link
Member

@uncenter uncenter commented Jul 5, 2024

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
Copy link
Member Author

uncenter commented Jul 5, 2024

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.

@sgoudham sgoudham changed the title refactor(scripts): split icons script into separate files, add new package.json#scripts entries refactor(scripts): split icons.ts & add new commands Aug 8, 2024
@sgoudham sgoudham merged commit 0ba5a53 into catppuccin:main Aug 8, 2024
1 check passed
@uncenter uncenter deleted the pr-a27f20b7 branch August 8, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants