1.0.0 • Published 5 months ago
create-exinertia v1.0.0
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 TypeScriptreact-js
- React with JavaScriptsvelte-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:
Change to the assets directory:
cd assets
Install dependencies:
bun install
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
License
MIT
1.0.0
5 months ago