-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Speed up new
command by caching dependencies locally
#2080
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the direction you're going! Some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small comment!
8a31d07
to
4178d7e
Compare
This is faster locally, but I'm pretty happy with shaving off 1-3 minutes |
37db048
to
f89ad63
Compare
I've recorded a video talking about the PR, why I decided to implement it, some of my reasoning: https://www.loom.com/share/abe0dd5852df42a7b1fba1c5bf848fec |
Now you can go from |
@cdanwards would you mind verifying you did that with the latest commit on origin feat/new-perf? I'm on I realized a few commits ago, overwrite did not work as expected for non-default target paths, so that may be what's happening here. |
@joshuayoes checked it out again and it's working with no error now. Super fast too! Good job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are ready for speed 🐎
@joshuayoes—"I have the need...the need for speed" |
Please verify the following:
yarn ci:test
jest tests pass with new tests, if relevantREADME.md
has been updated with your changes, if relevantDescribe your PR
Problem
ignite-cli new
with the--install-deps
option is pretty slow. This makes it hard to test because we need to wait 1-2 minutes between each run to test changes. Frank has filed a few regressions (1, 2) after we have added flags. It would be nice to improve the install speed so iterating on changes in manual QA or in tests would be faster.Potential Solutions
Cache dependencies
We can take the turbo repo approach where we copy all the folders and files after an install to a local file system cache, and then copy them to the boilerplate target on subsequent installs