ReexJs CLI is an interactive CLI that automates the process of creating a React / Next App. Usually developers we 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 It is that we can start working on our application without worrying about the initial configuration.
From your terminal run:
install the package with NPM npx reexjs-cli or install it with YARN yarn reexjs-cli
ReexJs CLI installs reexjs-cli command in your system. To run the tool, you need to invoke this command from your terminal:
if you install it globally reexjs-cli
As soon as run the command you are greeted by the CLI and you must choose between the options, the most approached your desired configuration.
Then you have to answer some questions to configure your react.js or next.js app
Depending on the fact that Framework is chosen, different questions will be asked:
Enter your app name. By default it fallbacks to reexjs-app.
✅ Valid App Names:
❌ Invalid App Names:
Choose the Framework of your application. Next.js or React.js.
Pages Names: (Next.Js)
Enter space separated pages for next.js application.
React Routing: (React.Js)
Choose if react routes is needed. Yes or No.
If required, enter space separated routes names.
✅ Valid Route Names:
❌ Invalid Route Names:
Choose if you want use SASS preprocessor in your styles. SCSS, SASS or CSS.
npm i <dependencies>)
You can enter space separated dependencies. The conventions would be same as routes in react routing. E.g.
react-bootstrap lodash moment.
This script run the code
Dev Dependencies: (
npm i -D <devDependencies>)
You can enter separated dev dependencies. The conventions would be same as routes in react routing. E.g.
prettier husky lint-staged.
npx reexjs-cli. Run reexjs normally.
npx reexjs-cli -nRun reexjs with next default configuration.
npx reexjs-cli -rRun reexjs with react default configuration.
ReexJs CLI is licensed under the terms of MIT
Built with ❤️ by Codax.