cr-react-cli
TypeScript icon, indicating that this package has built-in type declarations

1.6.1 • Public • Published

React Cli Header

code style: prettier License

A command-line interface tool for generating react files.

Visit official documentation website reactcli.org

Motivation

The motivation for creating this project was to reduce the time spent on creating files and boilerplate code and be more productive.

Getting started

1. Install the React CLI

Install React CLI from your command line.

npm install -g cr-react-cli

2. Initialize configuration

To setup React CLI by your preferences, run the init command to generate a config file.

npx react-cli init

After the init command is executed, you will be asked questions about your project. After you answer all questions, in case that you choose the project scope for the config file, the react.config.json file will be generated at the root of your project.

3. Use it

React CLI can be used with several aliases like: cr-react-cli, react-cli, react, rct. Run component, context or hook commands to generate boilerplate files.

npx react component menu
npx react context menu
npx react hook useMenu

License

MIT

Package Sidebar

Install

npm i cr-react-cli

Weekly Downloads

1

Version

1.6.1

License

MIT

Unpacked Size

142 kB

Total Files

112

Last publish

Collaborators

  • sasa_djuric