@djadrianof/components-cli
v1.0.4
Published
This project is a component library setup using Plop and Inquirer to manage and copy React components.
Readme
Shadcn Copy
This project is a component library setup using Plop and Inquirer to manage and copy React components.
Getting Started
Prerequisites
- Node.js (>=18)
- pnpm
Installation
Clone the repository:
git clone <repository-url> cd <repository-directory>Install dependencies:
pnpm install
Usage
Initialize the Project
To initialize the project with a components.json file, run:
pnpm run plop initAdd a Component
To copy a React component from components-source to your project, run:
pnpm run plop addUpdate a Component
To update an existing component with the latest source files, run:
pnpm run plop updateFile Descriptions
bin.mjs: Entry point for the CLI.components-source/: Source directory for components.plopfile.mjs: Plop configuration file.src/: Target directory for copied components.
