easy-cli-cp
v1.2.2
Published
easy component is a very small library that helps you create your component files without having to do it manually
Readme
easy-cli-cp
easy-cli-cp is a lightweight CLI tool to quickly scaffold React components, Next.js pages, lists, and forms without writing boilerplate manually.
Technologies
- commander
- inquirer
- colorette
- fs/promises
Features
- [x] Generate React components
- [x] Generate Next.js pages
- [x] Generate List components
- [x] Generate Form components
- [x] Fully TypeScript-ready templates
- [x] Ask user for target path
Installation
npm i easy-cli-cpUsage
1. Generate a Page
ecp p <page-name>
# or
ecp page <page-name>- Will ask for the path where you want to create the page.
- Creates a Next.js page file with a basic template.
2. Generate a List Component
ecp l <list-name>
# or
ecp list <list-name>- Will ask for the path where you want to create the list component.
- Checks if any file with
Listin its name already exists. - Generates a ready-to-use DataTable list component.
3. Generate a Form Component
ecp f <form-name>
# or
ecp form <form-name>- Will ask for the path where you want to create the form component.
- Checks if any file with
Formin its name already exists. - Generates a ready-to-use Form component using Formik and DynamicForm.
