⚛️ Scaffold your React app from the command line ⚛️.
It is recommended to install react-scaffoldx globally since it makes it easier for you to quickly type out.
$ npm install -g react-scaffoldx
$ rsx COMMAND
running command...
$ rsx (--version)
react-scaffoldx/0.4.0 win32-x64 node-v16.13.1
$ rsx --help [COMMAND]
USAGE
$ rsx COMMAND
...
Create/Scaffold a React component.
this command also has aliases, c
and comp
(used as rsx c ...
)
USAGE
$ rsx component [-d <value>] [--typescript] [--style css|scss|styled-components|none]
FLAGS
-d, --dest=<value> Destination folder
--style=(css|scss|styled-components|none) Choose which type of styling to use for your components
--typescript Create a TypeScript component
DESCRIPTION
Create/Scaffold a React component
ALIASES
$ rsx comp
$ rsx c
EXAMPLES
$ rsx component ComponentOne ComponentTwo
$ rsx component ComponentOne --typescript --style=scss --dest src/components/layout
Initialize react-scaffold's config file (.rsxrc)
USAGE
$ rsx init [-y]
FLAGS
-y, --yes accept default config values ('assume YES')
DESCRIPTION
Initialize react-scaffold's config file (.rsxrc)
Display help for rsx.
USAGE
$ rsx help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
DESCRIPTION
Display help for rsx.