-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: initial import of all icons from Figma #1
Conversation
2f34ec6
to
7e8d4a1
Compare
7e8d4a1
to
1aa48f1
Compare
e9854dd
to
3612fbd
Compare
3612fbd
to
ff51e26
Compare
scripts/render.js
Outdated
return { | ||
name: path.parse(svgPath).name, |
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.
Can we show the "icon name" instead of just "icon_16":
Something like this for example:
return { | |
name: path.parse(svgPath).name, | |
const regex = /dist\/(.*?)\/icon/; | |
const match = svgPath.match(regex); | |
let iconName = path.parse(svgPath).name; | |
if (match && match[1]) { | |
iconName = match[1]; | |
} | |
return { | |
name: iconName, |
scripts/render.js
Outdated
const data = fs.readFileSync(svgPath, "utf-8"); | ||
const {size} = getNameAndSize(svgPath); | ||
return { | ||
name: path.parse(svgPath).name, |
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.
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.
oh that was a way cleaner way to do it!
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.
That is great, committed 🙌 3727939
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.
Great work Anna 🤩❤️
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.
Looks great! 🙌
🎉 This PR is included in version 1.0.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Background: https://nmp-jira.atlassian.net/browse/WARP-221, https://nmp-jira.atlassian.net/browse/WARP-223