Skip to content

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

License

Notifications You must be signed in to change notification settings

andre-araujo/react-create-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published