Can we save the time we spend configuring our React and Next projects? With Reex CLI we will save a few minutes.
Hello, world. Usually, developers spent a lot of time installing dependencies, creating folders, etc, before having our initial configuration and start working on the application.
The goal of ReexJs CLI is that we can start working on our application without worrying about the initial configuration.
With ReexJs we can:
ReexJs use npx create-react-app <appname>
or npx create-next-app <appname>
and spawn
from child_process
to run one of the two commands.
To create the folders use mkdirSync
from fs
, and depending on if you previously choose react.js or next.js folders will be created in different paths, for react.js these will be created in src/
, and for next.js folder will be created in the root path /
.
Finally to install the dependencies spawn
is also used when installing the framework. npm i <dependencies>
for normal dependencies and npm i -D <devDependencies>
.
npm start
or npm run dev
.A fast quick of the CLI.
ReexJs can save us time and start working on our application without worrying about the initial configuration.
So take a ☕ and relax.
Thank you for reading 🙏
If you enjoyed this article or found it helpful, share this post to whoever you think will help, and if you have an idea to improve the application or any type of suggestion please leave it in the repository.
Feel free to connect 👋