Faster create-react-app scaffolding with a cache

We know. It takes a “good” 5-10 minutes to run

$ create-react-app myTestApp 
Photo by Nathan Dumlao on Unsplash

The plan: I’m going to installing a npm repository cache npm_lazy, and do 4 measurement:

  • First time elapsed of a ‘create-react-app myApp’ – Without npm_lazy cache
  • Next time elapsed of a ‘create-react-app myApp’ – Without npm_lazy cache
  • Third time is the npm_cache install case, but when “npm install” not yet been ever run.
  • Fourth time elapsed is that of all things configured with npm_lazy cache

So the final benefit of using a npm_lazy cache will be subtracting the time between 4 and 2.

Gonna be back soon! Stay tuned. Second Post will be about the results. Cheers, Jukka

Published by jukkasoft

Me: a code enthusiasta, technology optimist, but also a realist. In my blog something like 80% of the articles are technology related - mostly in English and Finnish. I like to envision and ponder about things, how life could be, what we are doing wrong today, and so on. "Invented" a facebook -like system in 2000, as a short product pamphlet. Haven't yet realized the 20+ ideas that might have become big things. Maybe learning this skill one of these days!

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: