Hygen component template

A simple component generator. Creates a functional or class component along with an optional static js file and docs structure

Simple usage

Generate

  1. $ npm install hygen -g
  2. $ cd src/components
  3. $ hygen component new
  4. Answer questions
  5. New component will be created in src/components

Use

After you generated your new component, there are few things which are not automated.

  1. Component should be exportable from src/components/index.js
  2. If you created optional static js file, you should initialise it inside src/components/static.js file,
    the initialisation should correspond to documentation section named Custom initialisation
Lighter

    v1.0.0