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

1.1.1Β β€’Β PublicΒ β€’Β Published

πŸ¦„ nextrate

A CLI tool for quickly generating Next.js components.

✨ Features

  • Automatically add the file type to the component name using the folder name.
  • Automatically adds the boilerplate code for components and pages.
  • Helps you maintain a clean and consistent file naming convention.

🌈 Installation

  • To install globally:

    npm install -g nextrate
  • Installing it as a dev dependency:

    npm install nextrate --save-dev
  • Trying it out using npx:

    npx nextrate

πŸ”Œ Usage

  • nextrate generate

  • nextrate boilerplate

  • nextrate help [COMMAND]

    nextrate generate

    πŸ‘€ Generate a new Next.js component using nextrate

    USAGE
    $ nextrate generate
    
    DESCRIPTION
    πŸ‘€ Generate a new Next.js component using nextrate

    nextrate boilerplate

    🌈 Customize the default nextrate boilerplate

    USAGE
    $ nextrate boilerplate
    
    OPTIONS
    -f, --file=file (required) πŸ“¦ Path to the file which contains the boilerplate
    
    -t, --type=type (required) πŸŒ€ Type of boilerplate, whether it is a boilerplate for 'components' or
    'pages'
    
    EXAMPLE
    $ nextrate boilerplate -file=boilerplate.txt -type=components

    nextrate help [COMMAND]

    Display help for nextrate.

    USAGE
    $ nextrate help [COMMAND] [-n]
    
    ARGUMENTS
    COMMAND Command to show help for.
    
    FLAGS
    -n, --nested-commands Include all nested commands in the output.
    
    DESCRIPTION
    Display help for nextrate.

πŸŽ‰ Demo

⭐ Show your support

Give a ⭐️ if this project helped you!

If you are using nextrate in your project, consider adding the below badge to your README.md:

![](https://img.shields.io/badge/using-nextrate%20%F0%9F%A6%84-blue?style=for-the-badge)

πŸ“ License

Copyright Β© 2022 Kira.
This project is MIT licensed.

Package Sidebar

Install

npm i nextrate

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

23 kB

Total Files

40

Last publish

Collaborators

  • kira272921