-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
chore(icons): update icon names to match naming guidelines no. 7 to 9 #1906
Conversation
Update and extend rename icon helper script.
…helper script usages to crash.
pnpm rename contact-2 contact-round
rename mic-2 mic-vocal rename loader-2 loader-circle rename test-tube-2 test-tube-diagonal rename school-2 university
rename ice-cream-2 => ice-cream-bowl rename laptop-2 => laptop-abstract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work @karsa-mistmere !
I've some suggestions for some renaming
icons/wallet-abstract.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as laptop-abstract
, not sure about the abstract
word. What about square-wallet
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not in a square though, is it? 🙃
wallet-square
would also be weird, since the other wallet
icon is also rectangular.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You right, maybe also with the minimal
word, wallet-minimal
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I simply ran the command below. :)
pnpm renamePattern '^(.+)-abstract$' '\1-minimal' --add-alias=false
…false feat(scripts): added yargs option parsing to renamePattern
…hey are no longer in use but cause pnpm install to fail
chore(icons): renamePattern '^(square|circle)-check-small$' '\1-check'
# Conflicts: # pnpm-lock.yaml
What is the purpose of this pull request?
Description
Our naming guidelines were updated in #1874, but a lot of icons don't yet match the new official naming scheme, this PR updates most (if not all) of these icons, while also adding backward compatible aliases.
A
renamePattern
helper script was also created that helps streamline these batched renames, e.g. most of the hard work was done via running:Before Submitting