1.0.0 โข Published 6 months ago
michael-reactsmith v1.0.0
๐ Michael Vite React Project Generator
A CLI tool to quickly scaffold React projects with Vite, including optional support for TypeScript, Tailwind CSS, shadcn/ui, and other popular libraries.
โจ Features
- ๐ ๏ธ Vite-powered React setup
- ๐จ Optional Tailwind CSS configuration
- ๐ง TypeScript support (optional)
- ๐ Integration with popular libraries:
- shadcn/ui components
- Framer Motion
- React Router
- React Icons
๐ฆ Installation
npm install -g your-package-name
Or run directly using npx:
npx your-package-name
๐ Quick Start
Run the CLI:
npx your-package-name
Follow the interactive prompts to configure your project:
- Project name
- TypeScript/JavaScript
- Libraries selection
Once the project is created:
cd your-project-name npm install npm run dev
If you selected shadcn/ui:
npx shadcn-ui@latest init
Follow the prompts to complete the setup.
๐ Project Structure
your-project/
โโโ src/
โ โโโ main.(jsx|tsx) # Entry point
โ โโโ App.(jsx|tsx) # Root component
โ โโโ index.css # Global styles
โโโ public/ # Static assets
โโโ package.json # Dependencies and scripts
โโโ vite.config.js # Vite configuration
โโโ postcss.config.js # PostCSS config (if using Tailwind)
โโโ tailwind.config.js # Tailwind config (if selected)
โ๏ธ Configuration Options
TypeScript
- Adds TypeScript dependencies
- Configures tsconfig.json
- Updates file extensions to .ts/.tsx
Tailwind CSS
- Installs and configures Tailwind CSS
- Sets up PostCSS
- Adds base CSS directives
shadcn/ui
- Configures required dependencies
- Prepares project for component installation
- Sets up necessary utility functions
Additional Libraries
- Framer Motion: Animation library
- React Router: Routing solution
- React Icons: Icon library
๐ Available Scripts
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production build
๐ค Contributing
We welcome contributions! Here's how you can help:
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
Development Setup
Clone the repository:
git clone https://github.com/yourusername/your-project.git
Install dependencies:
npm install
Run tests:
npm test
๐งช Testing
Run the test suite:
npm test
This will:
- Create a test project
- Verify project structure
- Check dependencies
- Validate configurations
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
๐ Support
If you have any questions or need help:
- ๐ง Email: your.email@example.com
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
Made with โค๏ธ by Michael Peter
1.0.0
6 months ago