Reator [pronunced: "hae-a-tor"] is a simple CLI for React projects made in Rust. If you catch yourself typing to much boilerplate, you should give Reator a chance!
$ reator command template ComponentName [--style-module-option]
Commands | Description |
---|---|
n / new / create |
Creates a new file |
h / help |
Shows help screen |
Abbr | Template | Description |
---|---|---|
rc |
component |
React Component |
cc |
compound-component |
React Compound Component |
rn |
native |
React Native Component |
nsc |
native-screen |
React Native Screen |
cn |
compound-native |
React Native Compound Component |
cx |
context |
React Context API file |
gs |
gatsby-ssr |
Gatsby.js SSR Page |
na |
next-api |
Next.js API Route |
np |
next-page |
Next.js Page |
ns |
next-ssg |
Next.js Static Page |
nss |
next-ssr |
Next.js SSR Page |
nd |
next-doc |
Custom Next.js '_document' file |
s |
style |
CSS Module |
sc |
styled |
Styled Component |
Abbr | Option | Description |
---|---|---|
-rns |
--reactnative-style |
Creates a React Native Component in a folder, with a style.js |
-css |
--css-module |
Creates a component in a folder, with a CSS Module |
-sass |
--sass-module |
Creates a component in a folder, with a Sass Module |
- Add configuration options via JSON