Coder Social home page Coder Social logo

makecomponent's Introduction

๐ŸŒŸ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.