Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 878 Bytes

README.md

File metadata and controls

46 lines (41 loc) · 878 Bytes

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