nextcomp-gen
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

NextComp-Gen

NextComp-Gen is a CLI tool designed to streamline the process of generating Next.js components. Whether you're working on the client-side or the server-side, NextComp-Gen has got you covered.

Installation

To install the NextComp-Gen CLI globally, use:

npm install -g nextcomp-gen

Usage

To run the CLI tool, simply use:

nextcomp-gen

Commands

Generate a server component:

nextcomp-gen -s -n [COMPONENT_NAME]

Generate a client component:

nextcomp-gen -c -n [COMPONENT_NAME]

Replace [COMPONENT_NAME] with the desired name for your component. Ensure the name is a single word.

Features

  • Easily generate Next.js components with pre-configured templates.
  • Support for both client and server components.
  • Intelligent error handling and validations.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Package Sidebar

Install

npm i nextcomp-gen

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

30.1 kB

Total Files

28

Last publish

Collaborators

  • dirheimerb1