Neatly Positioned Magazines
    Wondering what’s next for npm?Check out our public roadmap! »

    hygen-react-typescript

    1.0.2 • Public • Published

    React TypeScript code generator

    A Hygen generator module for TypeScript React. To install, first make sure you have installed hygen and hygen-add:

    npm i -g hygen hygen-add

    Then install this package:

    hygen-add react-typescript

    This will install the templates in the _templates directory. You can then use hygen to generate React components. It will create an SFC by default, unless you also pass the --class flag, in which case it creates a PureComponent. It generates files for the component, stylesheet, style typings, tests and storybook, as well as an index file so that you can import from the directory root. You can uninstall the package at this point: the templates will remain (and should be checked into your repo).

    Usage:

    hygen component new [--class] --name NAME

    It camel-cases the name automatically if you haven't.

    Keywords

    none

    Install

    npm i hygen-react-typescript

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.64 kB

    Total Files

    13

    Last publish

    Collaborators

    • avatar