-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
It's way too big! (Working on making aegir smaller) #215
Comments
Working on a pr for that: #216 |
Update: The webpack method is more work than I thought it would be, mostly because webpack isn't made for that sort of thing. Possibly the best way would be to write a version of https://github.com/zeit/pkg that would output a standalone/bundle JS file instead of nodejs executable. The current methods pkg is using to emulate a virtual filesystem ( Also it would be great if I could get somebody else's opinion on this endeavour as well... |
I've started to work on the pkg-js module here: |
Submitted a few issues upstream which also affect original pkg: vercel/pkg#528 vercel/pkg#529 |
I'm still waiting to get some feedback on this. Does this sound like a good idea? For me at least it makes sense to do this because of the reasons described in the issue description above. |
Btw, here are some initial measurments:
|
I've published not-yet-fully-functional bundles here: https://aegir.mkg20001.io/15.2.0 |
I created a module (https://npm.im/aegir-bundle) that uses the above mentioned bundles. Still wip, but |
@mkg20001 thanks for the work so far on this and sorry for not providing any feedback sooner. Am I understanding correctly that the final archive ends up being 24MB? If that's so, it's amazing! Is this because of dead-code elimination and minification? I'm not sure how the suggested installation flow would be here. Would it be to download the archive, untar it, then run |
@victorbjelkholm The 24mb are after compression, the extracted files are ~100mb but minification is currently still disabled until everything starts working as expected so they might possibly be smaller. Most of the current gain is because unused files aren't bundled. The install flow work like this: The user installs Edit:
Yes, although currently the native modules aren't getting installed because, well, it's still WIP |
Just take a look at that:
AEgir, a development CLI is 200mb. I repeat: AEgir a CLI is as big as say, ubuntu core, an IoT OS!
This is way to large and makes up for about 70% up to 90% of the size of the node_modules folders.
Additionally on my usually slow HDD it's a pain to install because it takes way too long.
Possible Solutions:
aegir release
are executedThe text was updated successfully, but these errors were encountered: