1.0.0 β’ Published 10 months ago
@doffu/uigen v1.0.0
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.
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 π
- Aceternity UI
- More coming soon...
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.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- 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 π
- Inspired by shadcn/ui
- Built with Commander.js
- Uses TypeScript
1.0.0
10 months ago