1.0.10 • Published 2 years ago

nxt-create-page v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

nxt-create-page

A CLI tool to quickly create Next.js pages with a standardized structure.

Installation

You can install this package globally using npm:

npm install -g nxt-create-page

For local installation:

npm install nxt-create-page

Usage

nxt create page [options] [page-name]

shorthand

nxt c p [options] [page-name]

Example

nxt create page

then select the options

or

if you are using the default options i.e typescript and src folder then run the command like this

nxt c p -y mypage

Features

  • Interactively creates Next.js pages
  • Supports both JavaScript (.jsx) and TypeScript (.tsx)
  • Option to create pages in the src directory or root
  • Automatically capitalizes the component name
  • Creates a basic component structure

Options

When you run the command, you'll be prompted to:

  1. Specify whether you're using a src folder
  2. Choose between JavaScript and TypeScript
  3. Enter the name of your new component
1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago