Skip to content
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

Significantly improve CLI startup times #42

Merged
merged 1 commit into from
Jan 31, 2018
Merged

Conversation

davewasmer
Copy link
Contributor

** Before **

image

** After **

image


Move a few heavier modules from static imports to lazy require()s.
Also remove support for globally installed addons via yarn and npm.
If Yarn is detected, Denali will search Yarn for global addons, otherwise
it wills search npm, but not both. This lets Yarn users avoid the
delays that npm forces (because we need to shell out for npm root, which
eats 500ms).

We could make this behavior configurable in the future, once we have
a ~/.denali config file

Move a few heavier modules from static imports to lazy `require()`s.
Also remove support for globally installed addons via yarn *and* npm.
If Yarn is detected, Denali will search Yarn for global addons, otherwise
it wills search npm, but not both. This lets Yarn users avoid the
delays that npm forces (because we need to shell out for `npm root`, which
eats 500ms).

We could make this behavior configurable in the future, once we have
a ~/.denali config file
@davewasmer davewasmer merged commit a511d66 into master Jan 31, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant