1.1.5 • Published 4 years ago
rcct v1.1.5
⚙️ 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
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
oryarn
(yarn recommended and we provided yarn.lock)remember
tsc
after finished code in typescript;