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

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

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

%d bloggers like this: