generator-tb-component

Generates a React component in a directory along with styles (scss), optional Relay wrapper, and optional examples file to be used with react-styleguidist


Keywords
yeoman-generator
License
BSD-3-Clause
Install
npm install generator-tb-component@0.0.1

Documentation

generator-tb-component NPM version Build Status Dependency Status Coverage percentage

Generates a React component in a directory along with styles (scss), optional Relay wrapper, and optional examples file to be used with react-styleguidist

Installation

First, install Yeoman and generator-tb-component using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-tb-component

Then generate your new component:

yo tb-component ComponentName [src//parent/directory]

If you don't include a path as the second argument, the component directory will be created in the current working directory.

License

BSD-3-Clause © Idris Mokhtarzada