-
Notifications
You must be signed in to change notification settings - Fork 149
⚡️ Improves Startup Performance, Adds 'gluegun/toolbox' for on-demand loading #357
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
Conversation
face78d to
8ef1230
Compare
|
Merging without feedback :shame: ... trying to cut a new release soon, so I'm pushing forward. |
|
When I read notifications from my iPad, it marks it as read on github. I then have to remember to search for it from my laptop, or it drops off my radar. :( Never hesitate to @skellock me if you think I missed something. Especially on our open source stuff. If I don’t respond within 24 hours, send out a search party. |
|
I’m cool with this PR. I find it so weird it takes that long to boot up a few of these libs. Makes me want to dig in to find out why. |
Same, especially with |
|
I wonder if it is the colors lib? I know they monkeypatch the string prototype. Perhaps that’s costly? Perhaps chalk is better? |
|
Jamon this new function is awesome. When you generate a plugin should it have a commented out line with this in place, and everything listed? And a comment? So if I'm new, I generate a new project from your CLI generator, and now there's a friendly line that tells me (a total newb) how to make my startup faster? |
|
@skellock We can avoid monkeypatching string by using https://github.com/Marak/colors.js#using-string-safe-api I think we should make this change. It shouldn't affect any documented API. I'll make an issue. EDIT: Issue #363. @GantMan Yes, we should add that. I'll add an issue. EDIT: Issue #362. |
|
I'm eager to add these features to Solidarity. When are you cutting a build? |
|
bc Solidarity 2.0 is coming very soon |
|
@GantMan Getting close! Hopefully this week. |
|
@GantMan New Solidarity gluegun update here: infinitered/solidarity#177 |
|
🎉 This PR is included in version 0.22.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Per #355, I decided to add a method to the builder to allow excluding certain core extensions if you don't need them and want to save the startup cost.
print,prompt,http, andsystemare the slowest loading.The API change simply adds this method, like this:
Additionally, these tools are not available via
require('gluegun')anymore. However, they are exposed inrequire('gluegun/toolbox').Lastly, this pull request removes Rollup 😢because it no longer makes sense in the context of on-demand loaded resources.