Skip to content

nicotroia/create-react-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component Scaffolder

Installation

  • npm install -g https://github.com/nicotroia/create-react-component.git

Usage

  • create-react-component init

Update

  • Bump package.json version
  • git push
  • npm publish

Input

  • name (Sidebar)
  • dir (src/components/)
  • hasIndex (Y/n)
  • hasStyles (Y/n)
  • hasActions (Y/n)
  • hasConstants (Y/n)
  • hasReducers (Y/n)
  • hasSelectors (Y/n)
  • hasTests (Y/n)
  • hasStories (Y/n)
  • flavor
    • js
    • ts

Output

  • src
    • components
      • Sidebar
        • index.js
        • Sidebar.js
        • sidebar.styl
        • actions.js
        • constants.js
        • reducer.js
        • selectors.js
        • __tests__
          • Sidebar.spec.js
          • actions.spec.js
          • reducer.spec.js
          • selectors.spec.js
        • __stories__
          • Sidebar.story.js

About

Scaffold React components via CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published