0.0.4 • Published 1 year ago

react-geno v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

React Geno

A cli-tool to generate React components and folders.

Published on NPM: https://www.npmjs.com/package/react-geno

Installation

npm install -g react-geno

Options

OptionDescriptionDefault
-n, --nameName of the component
-j, --jsGenerate a .jsx file instead of .tsxfalse
-c, --cssGenerate a .css file instead of .scssfalse

Usage

rg -n MyComponent

# Generates a folder with the following structure:
MyComponent
├── MyComponent.tsx
├── MyComponent.module.scss
└── index.ts

rg -n MyComponent -j -c

# Generates a folder with the following structure:
MyComponent
├── MyComponent.jsx
├── MyComponent.module.css
└── index.ts

rg -n MyComponent -j

# Generates a folder with the following structure:
MyComponent
├── MyComponent.jsx
├── MyComponent.module.scss
└── index.ts