velvix-ui
v1.1.0
Published
A command-line interface tool for easily adding Velvet UI components to your Typescript Next project.
Downloads
5
Maintainers
Readme
Velvix UI CLI
A command-line interface tool for easily adding Velvet UI components to your Typescript Next project.
Installation
npm install -g velvix-ui
# or
yarn global add velvix-uiUsage
The CLI provides a simple command to add Velvet UI components to your project:
velvix add <component-name> (if installed globally)
or
npx velvix-ui add <component-name>Example
velvix add ButtonThis will:
- Download the component code from the Velvet UI repository
- Create a
velvixdirectory in your project's components folder (either insrc/componentsorcomponents) - Add the component file to the
velvixdirectory
Features
- 🚀 Quick component installation
- 📦 Automatic directory structure creation
- 🎨 Direct integration with Velvix UI components
Requirements
- Node.js 14.x or higher
- npm or yarn package manager
- A Typescript Next project
Directory Structure
The CLI will automatically create the following structure in your project:
your-project/
├── src/
│ └── components/
│ └── velvix/
│ └── <component-name>.tsxIf your project doesn't have a src directory, it will create:
your-project/
├── components/
│ └── velvix/
│ └── <component-name>.tsxError Handling
The CLI provides clear error messages if:
- No component name is provided
- The component doesn't exist in the library
- There are network issues
- File system operations fail
