@retork/cli
v1.1.0
Published
CLI for react
Readme
Retork CLI
A command-line interface for bootstrapping and generating boilerplate code for Retork projects.
Installation
Install the CLI globally using npm:
npm install -g @retork/cliUsage
retork [command] [options]Commands
create-app <name>
Creates a new React application in a directory with the specified name.
retork create-app my-appcomponent <name>
Generates a new React component.
retork g component my-componentThis will create a new file my-component.tsx inside the my-component directory.
Options:
-nf, --no-folder: Create the component in the current directory.
controller <name>
Generates a new controller.
retork g controller my-controllerThis will create a new file my-controller.controller.tsx in the current directory.
page <name>
Generates a new page component.
retork g page my-pageThis will create a new file my-page.page.tsx inside the my-page directory.
Options:
-nf, --no-folder: Create the page in the current directory.
page-controller <name>
Generates a new page with a controller.
retork g page-controller my-pageThis will create a new directory my-page with my-page.page.tsx and my-page.controller.ts files.
service <name>
Generates a new service file.
retork g service my-serviceThis will create a new file my-service.service.ts in the current directory.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
ISC
