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.
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 namedComponentName
in the directory./src/components/ComponentName
-
ComponentName
this will generate component namedComponentName
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