grodd
v1.0.5
Published
React cli tool for creating feature based apps easily
Maintainers
Readme
Grodd CLI 🦍
Introduction
Grodd CLI is a powerful command-line tool that helps you quickly set up a React + TypeScript project with Chakra UI, Axios, Jotai, and React Router. It also allows you to generate feature modules efficiently. This CLI is designed to streamline your development process and keep your code organized.
Features
- 🏗 Initialize a new React + TypeScript project with all essential dependencies.
- ⚡ Pre-configured Chakra UI setup for a seamless UI experience.
- 🛠 Easily create feature modules with the necessary folder structure.
- 🚀 Optimized TypeScript configuration for better developer experience.
Installation
To use Grodd CLI, install it globally via npm:
npm install -g groddUsage
1. Initialize a New Project
Create a new React + TypeScript project with Chakra UI and other essential dependencies:
grodd init my-appThis will:
- Create a Vite-powered React + TypeScript project.
- Install
@chakra-ui/react,axios,jotai,react-router-dom, and other dependencies. - Set up Chakra UI in
main.tsx. - Configure TypeScript paths in
tsconfig.app.json. - Set up
vite.config.tswith tsconfig paths support. - Display a cool gorilla ASCII art!
After installation:
cd my-app
npm run dev2. Create a Feature Module
To generate a new feature module with the required structure, run:
grodd cf feature-nameThis will:
- Create a
features/feature-namefolder insidesrc. - Generate subfolders:
components,hooks, andservices. - Create a
store.tsfile with a Jotai atom. - Create a
feature-namePage.tsxcomponent. - Generate an
index.tsfile for easy imports.
Example
grodd init jungle-app
cd jungle-app
grodd cf dashboardThis will create a project named jungle-app and a new feature module dashboard inside src/features/.
Notes
"Keep Your code clean or something bad will happen 🥷"
Author
🦍 Fadi Bassam Alhabib
License
MIT License
