1.0.9 • Published 3 years ago

generate-react-components v1.0.9

Weekly downloads
14
License
ISC
Repository
github
Last release
3 years ago

generate-react-components

generate-react-components allows you to easily generate (multiple) react components.

Contents

Introduction

Inspired by stencil's component generator, generate-react-components is a CLI application for generating (multiple) react components. It is designed to be easy to use while providing a great set of features, including:

  • Typescript and Javascript support
  • SCSS, SASS, and CSS support
  • Multiple component generation
  • File selection/deselection

Getting started

Installation

Install generate-react-components globally

npm i -g generate-react-components

or locally

npm i generate-react-components

Usage

  1. Execute generate-react-components or if installed locally npx generate-react-components

  2. Insert component names

    Alt names

  3. Select language

    Alt language

  4. Select stylesheet language

    Alt stylesheet

  5. Select files to generate

    Alt selection

You can also provide the name of the components as an argument:

generate-react-components Slider Button Menu Switch

Arguments

Short flagLong flagDescription
-f--functionalEnable functional templates
-p--path <path/to/dir>Specify components directory
-t--no-templateDisable templates
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

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

5 years ago