1.1.5 • Published 4 years ago

rcct v1.1.5

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

⚙️ RCCT

-- a React Component Command-line Tool

What is this 🤔

  • rcct is a tool work for generating a specific pattern of react component

  • a quick demo like below

demo

How to use 🤔

  • install via npm

    ⌨️npm install rcct -g

  • use in command-line (like bash)

    • switch your destination path

      ⌨️cd /home/user/me/project/component (mac or linux)

      ⌨️cd c:\\user\\me\\project\\component (windows)

    • generate your component

      ⌨️rcct g -c MyComponent -t

Commands

basic command

rcct g -c <componentName>

"g": "Generate a react component template"

"-c": "Name of your new component"

options

"-m" or "--with-mobx":
    "Flag true will create a mobx wrapped component"
"-t" or "--with-ts":
    "Create tsx file instead of jsx"
"-u" or "--unique-class":
    "Unique style wrapper class name"
"-s <styleFileType>" or "--style-file-type <styleFileType>":
    "enter <styleFileType>"
    "Like scss / less / css, default using scss"

About developing

  • git clone https://github.com/caperso/rcct

  • npm i or yarn (yarn recommended and we provided yarn.lock)

  • remember tsc after finished code in typescript;

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago