1.0.0 β€’ Published 10 months ago

@doffu/uigen v1.0.0

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

UI Gen

A modern CLI tool for scaffolding and managing UI components across different component libraries. Generate, customize, and maintain your UI components with ease.

asciicast

Features ✨

  • πŸš€ Quick component generation
  • πŸ“š Support for multiple UI libraries
  • 🎨 Customizable templates
  • πŸ”„ Auto-install dependencies
  • πŸ“¦ Built-in component registry
  • πŸ›  TypeScript support
  • πŸ§ͺ Test file generation

Installation πŸ”§

not yet published to npm, you can build it locally and link it to your project.

# Using npm
npm install -g uigen

# Using yarn
yarn global add uigen

# Using pnpm
pnpm add -g uigen

Usage πŸ’»

Basic Commands

# Generate a new component
uigen add button

# Generate with specific options
uigen add -c button -l aceternity -o ./components/ui

# List available components
uigen list

# Show help
uigen help

# Show version
uigen --version

Command Options

Options:
  -c, --component <name>    Component name
  -l, --library <name>      UI library (default: "shadcn")
  -o, --outDir <path>      Output directory

Supported Libraries πŸ“š

Project Structure πŸ“

your-project/
β”œβ”€β”€ components/
β”‚   └── ui/
β”‚       β”œβ”€β”€ button/
β”‚       β”‚   β”œβ”€β”€ button.tsx
β”‚       β”‚   └── button.test.tsx
β”‚       └── form/
β”‚           β”œβ”€β”€ form.tsx
β”‚           └── form.test.tsx
└── lib/
    └── utils/
        └── cn.ts

Configuration (wip) βš™οΈ

Create a uigen.config.js file in your project root:

module.exports = {
  outDir: './components/ui',
  library: 'shadcn',
  typescript: true,
  test: true,
  prettier: true,
  registry: {
    // Custom component registry
  },
};

Contributing 🀝

Contributions are welcome! Please read our Contributing Guide for details.

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

Roadmap πŸ—ΊοΈ

  • Add more UI libraries
  • Component dependency management
  • Interactive component customization
  • Component documentation generator
  • Component showcase generator
  • Visual component editor

License πŸ“„

MIT Β© DoffuXx

Acknowledgments πŸ™