This project uses hygen for generating client code using templates. For each template a prompt would be shown.
Make sure to provide all the names in kebab-case.
-
npx hygen page newfield description nameName of the page. Make sure to use kebab-case name. It would create the page directory (
src/pages/page-name) withindex.tsand<name>.tsxfiles. -
npx hygen page sub-componentfield description nameName of the Component. parentName of the page where this sub-component is to be created It would create the
<name>.tsxinsidesrc/pages/<parent>/components/directory. -
npx hygen page hookfield description nameName of the Make sure the hook-name doesn't contain use word. The hook file and function would be prefixed with use word automatically. parentName of the page where this sub-component is to be created It would create
use-<name>.tsxinsidesrc/pages/<parent>/hooks/directory.
-
npx hygen component newfield description nameName of the page. Make sure to use kebab-case name. It would create the component directory (
src/components/<name>) withindex.tsand<name>.tsxfiles. -
npx hygen component sub-componentfield description nameName of the Component. parentName of the component where this sub-component is to be created It would create the
<name>.tsxinsidesrc/components/<parent>/components/directory.
-
npx hygen hook newfield description nameName of the Make sure the hook-name doesn't contain use word. The hook file and function would be prefixed with use word automatically. It would create
use-<name>.tsxinsidesrc/hooks/directory. Make sure the hook-name doesn't contain use word. The hook file and function would be prefixed with use word automatically.