@aashdit-technology/own-cli
v1.0.0
Published
Custom CLI to bootstrap React apps
Readme
Own CLI
A custom CLI tool to bootstrap a React + Vite application with a specific folder structure and pre-installed libraries (Axios, Redux Toolkit, Tailwind CSS, React Router, React Hot Toast).
Installation
You can link this package globally to use it anywhere on your machine.
- Open a terminal in this directory (
d:\Ajay\own-cli). - Run:
npm link
Usage
Once linked, you can create a new project by running:
create-my-app <project-name>Example:
create-my-app my-new-projectFeatures
- Vite + React: Uses the latest Vite template.
- Folder Structure: Automatically creates a scalable folder structure:
src/api,src/components,src/features,src/store, etc.
- Libraries Pre-installed & Configured:
- TailwindCSS: Configured with
@tailwindcss/vite. - Redux Toolkit: Store and Auth slice setup.
- React Router DOM: Basic routing with Layouts.
- Axios: Custom axios instance with interceptors.
- React Hot Toast: For notifications.
- TailwindCSS: Configured with
Project Structure Created
my-new-project/
├── src/
│ ├── api/
│ │ ├── axiosInstance.js
│ │ └── auth.api.js
│ ├── components/
│ ├── config/
│ ├── features/
│ │ └── auth/
│ ├── layouts/
│ ├── pages/
│ ├── routes/
│ ├── store/
│ ├── App.jsx
│ ├── main.jsx
│ └── index.css
└── vite.config.js