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

Convert icons scripts to ESM #35101

Merged
merged 9 commits into from Nov 21, 2022
Merged

Convert icons scripts to ESM #35101

merged 9 commits into from Nov 21, 2022

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Nov 11, 2022

Convert the scripts in @mui/icons-material to ESM, and remove babel-node

Adding .sort() to generateIndex to guarantee cross platform order of exports.

Nota bene: running yarn src:download produces several updated svgs. What's the policy around syncing icons? Is it being run periodically? Is it/can it be automated?

@mui-bot
Copy link

mui-bot commented Nov 11, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35101--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against 7996700

@Janpot Janpot added the core Infrastructure work going on behind the scenes label Nov 11, 2022
@Janpot Janpot marked this pull request as ready for review November 13, 2022 13:29
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 14, 2022
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Nov 14, 2022
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 17, 2022
@michaldudak
Copy link
Member

michaldudak commented Nov 18, 2022

running yarn src:download produces several updated svgs. What's the policy around syncing icons? Is it being run periodically? Is it/can it be automated?

We run it roughly every 3 months (manually). It could be automated for sure, but the effort to do it is likely several times larger than running two scripts by hand :)

Actually, let me update the icons now, so it's easier to verify if the changes you made to the scripts don't change the output (#35194).

@michaldudak
Copy link
Member

I've updated the icon set. Could you please merge in the latest master?

@Janpot Janpot merged commit 03f2111 into mui:master Nov 21, 2022
@Janpot Janpot deleted the remove-babel-node branch November 21, 2022 19:44
alexfauquette pushed a commit to alexfauquette/material-ui that referenced this pull request Nov 22, 2022
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants