2.2.0 • Published 1 year ago
@s247kim/react-tools v2.2.0
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
Usages
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]"