1.0.0 • Published 5 months ago

create-exinertia v1.0.0

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

create-exinertia

A project scaffolding tool for ExInertia projects that helps you quickly set up a new frontend with React or Svelte.

Features

  • Support for multiple frontend frameworks:
    • React + TypeScript
    • React + JavaScript (soon)
    • Svelte + JavaScript (soon)
  • Automatic Tailwind configuration
  • Project name customization
  • Interactive CLI with colored output
  • Smart template management

Installation

# Using bun
bunx create-exinertia

# Or with specific options
bunx create-exinertia --template react-ts --name my-project

Usage

Interactive Mode

Simply run:

bunx create-exinertia

Follow the prompts to select: 1. Project name 2. Template type

Command Line Mode

bunx create-exinertia --template <template-name> --name <project-name>

Available templates:

  • react-ts - React with TypeScript
  • react-js - React with JavaScript
  • svelte-js - Svelte with JavaScript

Project Structure

The generated project will be created in your assets directory with the following structure:

assets/
├── js/
│   ├── pages/
│   │   └── Dashboard.tsx
│   └── inertia.tsx
├── package.json
├── tsconfig.json (for TypeScript templates)
└── vite.config.ts

Features

  • Vite-based build system
  • Inertia.js integration
  • Tailwind CSS support
  • TypeScript support (for TS templates)
  • ESLint configuration
  • Modern JavaScript features

Post-Installation

After creating your project:

  1. Change to the assets directory:

    cd assets
  2. Install dependencies:

    bun install

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

License

MIT

1.0.0

5 months ago