1.0.0 โ€ข Published 6 months ago

michael-reactsmith v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

๐Ÿš€ 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

  1. Run the CLI:

    npx your-package-name
  2. Follow the interactive prompts to configure your project:

    • Project name
    • TypeScript/JavaScript
    • Libraries selection
  3. Once the project is created:

    cd your-project-name
    npm install
    npm run dev
  4. 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 server
  • npm run build - Build for production
  • npm run preview - Preview production build

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch:
    git checkout -b feature/amazing-feature
  3. Commit your changes:
    git commit -m 'Add some amazing feature'
  4. Push to the branch:
    git push origin feature/amazing-feature
  5. Open a Pull Request

Development Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/your-project.git
  2. Install dependencies:

    npm install
  3. 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:


Made with โค๏ธ by Michael Peter

1.0.0

6 months ago