Skip to content

A Cli to generate React Component and Hooks.

Notifications You must be signed in to change notification settings

Markos-Th09/react-cli

This branch is 2 commits ahead of, 1 commit behind PhantomKnight287/react-cli:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

737ca7e · Jun 12, 2022

History

97 Commits
Apr 9, 2022
Apr 6, 2022
Apr 6, 2022
Apr 6, 2022
Jun 12, 2022
Apr 6, 2022
Apr 5, 2022
Apr 6, 2022
Apr 6, 2022
Mar 27, 2022
Mar 27, 2022
Apr 5, 2022
Apr 6, 2022
Apr 9, 2022
Apr 9, 2022

Repository files navigation

React Cli

A cli to create React Components and Hooks.

Instructions:

  • Download the binary.
  • To Create A React Component
    ./react -n <Component Name>
  • To Create React Hook
    ./react -n <hook name> -H

Available Flags

-C, --class          Create a Class Based Component
-h, --help           Print help information
-H  --hook           Create a hook file
-m, --module         Create a css module instead of global css
-n, --name <NAME>    The name of the component you want to create
-S, --stylesheet <STYLESHEET>    The name of stylesheet you want to create [default: css]
    --ts             Same as --typescript
    --typescript     Create a typescript component
-V, --version        Print version information

End Notes

Thanks to 0xBirdie for testing and releasing binaries for Windows and Mac machines.

Thanks to Markos-TH09 for compiling binaries for different architecures,refactor the code and setup github actions.

About

A Cli to generate React Component and Hooks.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 80.1%
  • Shell 13.2%
  • Dockerfile 6.7%