1.0.2 • Published 4 years ago

hygen-typescript-react-redux v1.0.2

Weekly downloads
23
License
MIT
Repository
github
Last release
4 years ago

hygen-CRA

This is a hygen package for create-react-app (CRA) that supercharges your workflow.

Quick Start

$ npm i -g hygen-add
$ cd your-CRA && hygen-add cra

Then use help to see what the generator can do:

$ hygen component help


hygen component new --name NAME [--stateful] [--functional]

Generates a React component, a storybook, and a test.

   NAME           The component name in kebab-case (required).
   --stateful     Generate a stateful component (optional).
   --functional   Generate a functional component (optional).

If no flags given, will generate a PureComponent.


Requires storybook to be installed and initialized:
    $ npm i -g @storybook/cli && getstorybook

Requires react-test-renderer to be installed:
    $ yarn add --dev react-test-renderer