@personare/slush-react-component-generator

A slush generator for create a React component in isolation.


Keywords
slushgenerator, react, component, react-component, scaffolding, slush-generator
License
MIT
Install
npm install @personare/slush-react-component-generator@4.0.1

Documentation

React Component Generator Build Status

A slush generator for create a React component in isolation

The idea of creating this generator components was based on the design structure them in isolation. Where we believe the web should be built this way. It is customized based on some current needs and preferences of Personare but you can easily change.

Feel free to suggest improvements =]

How we made

To define the structure we use an internal process called DSS (Design Structure Sprint) that through a short sprint it allows us to stay focused and aligned with the solution.

Environment

React Storybook - to tell stories with different behaviors of the component and provide an example page.

Style Guide

Tests

  • Jest - test framework

Compiler

The structure

├── .babelrc
├── .editorconfig
├── .eslintrc.json
├── .github
│   ├── ISSUE_TEMPLATE.md
│   └── PULL_REQUEST_TEMPLATE.md
├── .gitignore
├── .scrutinizer.yml | .travis.yml | circle.yml
├── .storybook
│   ├── config.js
│   ├── webpack.config.js
│   └── webpack.dist.config.js
├── README.md
├── contributing.md
├── package.json
├── src
│   ├── MyFirstComponent.css
│   ├── MyFirstComponent.js
│   └── MyFirstComponent.story.js
└── tests
    ├── MyFirstComponent.test.js
    └── mock-browser.js

Installation

After install the requirements, run the following command:

[sudo] npm i -g @personare/slush-react-component-generator

Usage

Create a new folder for your project:

mkdir my-first-component && cd my-first-component

Run the generator:

slush react-component-generator

Team

This generator was made with love by contributors.

License

MIT © Personare