1.1.3 • Published 6 years ago

pop-react-component v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

pop-react-component

Command line interface to initialize empty ES8 React components

Installation

npm install --global pop-react-component

Usage information

  Usage: pop [options]


  Options:

    -V, --version       Output the version number
    -n, --name <name>   Component name (default: Test)
    -d, --dest <path>   Component destination (default: current path)
    -F, --statefull     Overide default stateless component template
    -X, --redux         Connect your component with Redux
    -C, --css           Create CSS stylesheet
    -S, --scss          Create SCSS stylesheet
    -h, --help          Output usage information

Example

Generate a statefull component connected to the Redux store and using SCSS stylesheet:

cd src/components
pop -n MyComponent -CSFX

Output:

  Test
  ├── Test.js
  ├── Test.css
  ├── Test.scss
  └── index.js
1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago