# 🎨 create-cc-ts

> Your magical project starter for ComputerCraft TypeScript adventures! ✨

## 🚀 Quick Start

```bash
bun create cc-ts my-awesome-project
```

## ✨ Features

-   🎯 **Zero Config** - Get started in seconds
-   🎨 **Project Templates** - Choose your adventure:
    -   📦 **Bundled App** - Complete application with hot reload and bundling
    -   📚 **CC Library** - Shareable modules for the CC community
-   🛠️ **Modern Setup** - TypeScript + TSTL preconfigured
-   🚀 **Dev Tools** - Watch mode, dev server, and more!
-   🎮 **CC Ready** - Built-in types for ComputerCraft

## 🎮 Project Types

### 📦 Bundled App

Perfect for building complete applications! Includes:

-   🏗️ `@cc-ts/builder` for smart bundling
-   🔎 Dependency analysis and external runtime rules
-   🔄 Hot reload development server
-   📦 Dependency management
-   🗜️ Optional minification

```bash
bun create cc-ts my-app
# Select "Bundled App" when prompted
cd my-app
bun install
bun run dev # Start development server
```

### 📚 CC Library

Create shareable libraries for the community! Features:

-   📦 Optimized for npm publishing
-   🎯 TypeScript declaration files
-   🔧 Minimal bundle size
-   🧩 TSTL library mode

```bash
bun create cc-ts my-library
# Select "CC Library" when prompted
cd my-library
bun install
bun run build # Build your library
```

## 🛠️ CLI Options

```bash
create-cc-ts [options] [target-dir]

Options:
  -h, --help      Show this help message
  -v, --version   Show version number
  --pm            Specify package manager to use
```

## 📦 What's Included?

Both project types come with:

-   🎯 TypeScript configuration
-   🔧 TSTL setup for ComputerCraft
-   📝 Basic README and .gitignore
-   🎮 ComputerCraft type definitions
-   🚀 NPM scripts for development

## 🤝 Contributing

We love 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

## 📜 License

MIT - feel free to use in your own projects!

---

Made with ❤️ by the CC-TS team
