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

Usage no npm install needed!

<script type="module">
  import generatorTbComponent from 'https://cdn.skypack.dev/generator-tb-component';
</script>

README

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