0.0.1 • Published 9 months ago
morpho-ui-cli v0.0.1
MorphoUI CLI
A command-line interface for easily adding React components from the MorphoUI component library to your project.
Installation
# Install globally
npm install -g morpho-ui-cli
# Or use with npx
npx morpho-ui-cli [command]Usage
List Available Components
morpho listThis command lists all available components from the component library.
Get a Component
morpho get <componentName>This will fetch the component and place it in the ./components directory by default.
Options
-d, --dir <directory>: Specify the target directory (default: "./components")-r, --repo <url>: Specify a custom GitHub repository URL (default: "https://github.com/dev-jaysharma/StorageForComponents")
Example:
morpho get Button -d src/ui/elementsDevelopment
- Clone this repository
- Run
npm install - Link the package for local development:
npm link - Now you can use
morphocommand in your terminal
Repository Structure
By default, the CLI will search for components in the following locations:
/components//src/components/- Root directory
License
MIT
0.0.1
9 months ago