Skip to content

JeanBayer/cli-react-files-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI React-Components-Generator

Description

This is a CLI tool to generate React components and their files. e.g.:

create-component c <component-name>

will generate the following files:

├── <component-name>.js
├── <component-name>.test.js
├── <component-name>.stories.js
├── <component-name>.module.css
└── index.js

You can also generate a component with TypeScript and choose a different folder to save the files:

create-component c src/components/<component-name>

will generate the following files:

├──  src/components/<component-name>
    ├── <component-name>.tsx
    ├── <component-name>.test.tsx
    ├── <component-name>.stories.tsx
    ├── <component-name>.module.css
    └── index.ts

Installation

  1. Clone the repository
git clone [email protected]:JeanBayer/cli-react-files-generator.git
  1. Install the dependencies
npm install
  1. Link the package
npm link

Usage

create-component c <component-name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published