Faster create-react-app scaffolding with a cache

Spread the love
15 / 100
Reading Time: < 1 minute

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

$ create-react-app myTestApp 
Photo 1518281361980 B26bfd556770?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MXwyNDc4MnwwfDF8c2VhcmNofDF8fHRpbWV8ZW58MHx8fA&ixlib=rb 1.2
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

Facebook Comments

Published by jukkasoft

Hi! A bit updated description. Code enthusiasta, technology optimist, but also a realist. In my blog I wrote 80% of technology related articles, 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!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: