@disaythis/gen-rtsc

1.0.8 • Public • Published

React Typescript Component Generator

I modified this package for my needs.

React Typescript Component Generator is a cli for generating react component for typescript based architucture.

gen-rtsc

Install

# Global installation
$ npm install --global @disaythis/gen-rtsc
# Local installation
$ npm install --save-dev @disaythis/gen-rtsc

Usage

$ gen-rtsc <componentName>

<componentName> is the name of component that can be with or without directory.

  • ./src/components/ComponentName this will generate component named ComponentName in the directory ./src/components/ComponentName

  • ComponentName this will generate component named ComponentName in the directory ./ComponentName

Generate React Stateless Component

$ gen-rtsc css <componentName> //  Generate React Stateless Component css
# or
$ gen-rtsc scss <componentName> // Generate React Stateless Component scss
# or
$ gen-rtsc <componentName> // Generate React Stateless Component scss

/@disaythis/gen-rtsc/

    Package Sidebar

    Install

    npm i @disaythis/gen-rtsc

    Weekly Downloads

    2

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    22.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • disaythis