1.0.6 • Published 4 years ago

react-component-boilerplate-cli v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

React boilerplate component generator

This cli lets you to create react components with boilerplate code generation for imports, render and PropTypes , create respective scss and test file for component.

Create components with below folder structure

  • ComponentName/index.jsx
  • ComponentName/index.js(optional)
  • ComponentName/index.scss (optional)

Installation

  • npm -g install react-component-boilerplate-cli

Usage

  • Create functional components type using prompts:
    • crc
  • Create Plain Component

    • crc <ComponentName>
  • Create Component with scss and test file

    • crc <ComponentName> scss test
  • Create Component with props

    • crc <ComponentName> props

Examples

screen recording

screen recording

You have to pass props in sequence separated by -: PropName-Type-isRequired-DefaultValue Type and isRequired are optioanal arguments with default value string and Y respectivly if isRequired is passed N then default value to prop is assigned based on type of prop

Type crc -help for assist

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago