-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Exclude more unneeded files in dist builds #10219
Conversation
c43f6cf
to
bcc4e07
Compare
@marcelgerber Good to see this.. |
@nethip Just so you know, while most changes should be safe, in bcc4e07 I included another step to uglify all CodeMirror files. I haven't tested it all that much (things to test are using multiple modes, CM addon loading, maybe even keymap loading, CM theme loading). |
@marcelgerber I think this is still a good change except for my doubts on having to |
Do you want me to still uglify the nls (translation) files or should I drop that step as well? |
Yeah nls as well. You could put up a different PR for the |
@nethip I've removed the extra build step. Also, I've taken new screenshots of the savings we achieve: |
@marcelgerber I pulled down your change and ran |
And also I built the MAC installer and I could see the size reduce by ~7MB. 😄 |
Hm, IIRC I didn't see this when testing (can't test right now). |
I saw that the folders were not empty. What I meant above was that the exclusion rules get applied properly but only for
Can we have a recursive rule which would plainly eliminate all the |
Hmm. That's interesting. Let me check and get back to you on this. |
@marcelgerber Yes! You are right. I see the files getting deleted but empty folders still being present. Is there a way we can get rid of the empty folders too? |
@marcelgerber I was not able to find documentation on how to tell
CC @ingorichter : Ingo do these changes sound good to you? |
@nethip I merged the commit you mentioned (thanks!). Please let me know when you'd like to merge so I can rebase. |
Thanks @marcelgerber I would like to hear from ingo. @ingorichter could you have a look at this. |
@marcelgerber Go ahead and push your changes to your fork. I will go ahead with the merge. |
5415966
to
0081406
Compare
Ha, you commented the perfect time so I could quickly rebase it ;) Just rebased, everything ready for a merge, |
Thanks @marcelgerber . Do you want to merge src/config.json as well? |
Yeah, our grunt task automatically sync it with package.json every time you run grunt. |
Exclude more unneeded files in dist builds
Looking good. Merged this.. Thanks @marcelgerber ! |
This Gruntfile excludes way more unnecessary files (mostly
test/
,doc/
andexamples/
), which results in a dist folder taking up way less space than before (resulting in a smaller installer).Disk space usage analysis (using RidNacs):

On
master
:On

dist-exclude
:That's 10MB less!
I haven't tested this at all, though.