π¦ 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
π Generate a new Next.js component using nextrateUSAGE $ nextrate generate DESCRIPTION π Generate a new Next.js component using nextrate
nextrate boilerplate
π Customize the default nextrate boilerplateUSAGE $ 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 you are using nextrate in your project, consider adding the below badge to your README.md:

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