1.1.5 • Published 8 months ago

react-pro-cli-x v1.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

react-pro-cli-x

npm GitHub

React Pro CLI-X is a powerful command-line tool for quickly generating React components with various options. It simplifies the process of creating React components with different templates, hooks patterns, and test cases.

Installation

You can install RPX globally using npm or yarn:

npm install -g react-pro-cli-x
# or
yarn global add react-pro-cli-x

Usage

To create a React component with RPX, use the following command:

rpx

This command will initiate an interactive prompt that will guide you through the component creation process. You can choose the project template (TypeScript or JavaScript), specify whether you want to use hooks patterns, and decide if you want to generate test cases.

Options

--skip: You can use the --skip option to bypass interactive prompts and provide all options directly through command-line arguments. However, it's important to note that the component name is still mandatory. If it's not provided as a command-line argument, the application will prompt you to enter it.

--template: Specify the project template (TypeScript or JavaScript).

--hooks-pattern: Enable hooks pattern for the component.

--test-cases: Generate test cases for the component.

--component: Specify the component name.

Examples

Create a TypeScript Component with Hooks and Test Cases:

rpx --template TypeScript --hooksPattern --testCase --component MyComponent

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

RPX is maintained by Gobinda Das -- Sr. Software Engineer, Aptedge.

1.1.5

8 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.0.1

8 months ago