CRAO a CLI for creating react apps offline.
πΉπππΔΚΎΔ«π β‘
Posted on May 7, 2020
We can make it offline
We all know the struggle, every time we need to create a new react app wi must start by typing this command
npm create-react-app my-app
Then the skeleton of our app get created automatically with no build configuration, the problem here is there is a lot of NPM packages to download.
If you are like me living in a country with a very slow network, the process of creating new react app can take a while.
On the other hand if you are using a metered connection this is also can be a bad thing.
As we all know, necessity is the mother of invention.
So i made this tool that could help a lot of react developers to create apps offline and very fast you can find it here in NPM or in GitHub
installation
The installation process is as easy as drinking water.
npm install -g create-react-app-offline
Now we don't need internet, lets create our first app.
crao -n <app-name>
for example :
crao -n my-app
It will create a directory called my-app inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
my-app
βββ README.md
βββ node_modules
βββ package.json
βββ .gitignore
βββ public
β βββ favicon.ico
β βββ index.html
β βββ manifest.json
βββ src
βββ App.css
βββ App.js
βββ App.test.js
βββ index.css
βββ index.js
βββ logo.svg
βββ serviceWorker.js
βββ setupTests.js
Let's help each other
You can visit the repo on github or follow me on twitter, and lets work together on making more open source projects.
Posted on May 7, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.