Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/andre-araujo/react-create-component
- Owner: andre-araujo
- License: mit
- Created: 2018-01-11T13:37:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T17:56:49.000Z (almost 7 years ago)
- Last Synced: 2024-11-16T01:10:07.150Z (about 1 month ago)
- Topics: component, create, jest, react, scaffold, styled-components
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```