Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andre-araujo/react-create-component

A command line component generator with a React, Jest, Styled-components template component.
https://github.com/andre-araujo/react-create-component

component create jest react scaffold styled-components

Last synced: 19 days ago
JSON representation

A command line component generator with a React, Jest, Styled-components template component.

Awesome Lists containing this project

README

        

# React Create Component.

A command line component generator with a React, Jest, Styled-components and storybook template component.

## Installing

### Installing globally with npm

- `sudo npm install react-create-component -g`

### Installing globally with npm-link

- clone the project
- `git clone https://github.com/andre-araujo/react-create-component.git`
- navigate to project folder
- `cd /react-create-component`
- use npm link
- `npm link`

## Usage

- Generate component into current directory
- `react-create-component ComponentName`

- Generate component into subdirectory
- `react-create-component ComponentName ./existing-folder-path`

## Generated directory

```
/ComponentName
/ComponentName.js
/ComponentName.spec.js
/ComponentName.stories.js
/styles.js
/index.js
```