Skip to content

uditkumar01/makeComponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 MakeComponent For React v1.1.0 🌟

A cool shell script to make React component templates at ease

Installation and Setup

  • Open terminal on linux OS.

  • Then clone the repo using git clone https://github.com/uditkumar01/makeComponent.git

  • Then type the following commands:

    • sudo apt install tree
    • cd makeComponent
    • sudo mv mkcomp ~/../../bin
    • sudo chmod +x ~/../../bin/mkcomp
  • Open a new terminal and try running the command mkcomp

Updating your existing mkcomp script

How to use?

  • Usage: mkcomp --clean --clean will help you to remove unwanted files/folders and structure them properly. Everything is automated.

  • Usage: mkcomp --gui

    OR

  • Usage: mkcomp component-name -ct extension

    • -c => Do you need a css file?
    • -t => Do you need a test file?
    • extension => -ts / --typescript / -js / --javascript

Features v1.0.0

  • You can create components with just a single command.
  • GUI interface is also supported for ease of use.
  • You can choose if you wish to create test file, css file for that component.
  • If you made css file then it will automatically be imported in the jsx/tsx file.
  • Will automatically create boiler plate code for the component generated.
  • Will automatically export the file from index.js

Features v1.1.0

  • You can clean your create react app initial template using -clean command easily.
  • Now the imports exports in index file will be properly formatted πŸ‘Œ.

Demo Usage

screen-capture-1.mp4

About

A cool shell script to make component templates at ease

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published