Skip to content

alexy-os/vite-workspace-bunjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite + React + BunJS Workspace

A minimal monorepo starter kit built with Vite, React, and BunJS. This workspace demonstrates how to set up a modular React application with a shared UI component library.

Features

  • 📦 Monorepo setup with Workspaces
  • ⚡️ Vite for fast development and building
  • 🏃 BunJS for enhanced performance
  • 🎨 Shared UI component library
  • 📱 System font stack for optimal rendering
  • 💪 TypeScript support

Project Structure

root/
  ├── packages/
  │   └── ui/          # Shared UI components
  │       ├── src/
  │       └── ...
  └── apps/
      └── app/         # Main application
          ├── src/
          └── ...

Prerequisites

  • Bun (latest version)

Getting Started

  1. Clone the repository:

    git clone [repository-url]
  2. Install dependencies:

    bun install
  3. Start development server:

    bun run dev
  4. Build for production:

    bun run build
  5. Preview production build:

    bun run preview

Available Scripts

  • bun run dev - Start development server
  • bun run build - Build for production
  • bun run preview - Preview production build
  • bun run clean - Clean all node_modules directories

Contributing

Feel free to submit issues and pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.