@s247kim/react-tools
v2.2.1
Published
A CLI tool to generate React template
Downloads
6
Maintainers
Readme
Opinionated React Template Generating Tool
Prerequisite
The tool is written with an assumption of using React with Typescript
and sass
support.
If your React package missing Typescript
or sass
, the template generated from this tool will NOT be compatible.
Install
npm install -g @s247kim/react-tools
new command named
react-tools
registered globally
or install locally
npm install -D @s247kim/react-tools
Usage
If
react-tools
is not recognized try to usenpx @s247kim/react-tools
Generate Component
The component name can be a camel case, pascal case, or separated by a space, hypen or underscore.
react-tools gen-comp "[component name]"
Generating shared component example
react-tools gen-comp -s "[component name]"
Generate Context
The context name can be a camel case, pascal case, or separated by a space, hypen or underscore.
react-tools gen-context "[context name]"