Skip to content

feat: introduce nxt-gen-cli for Next.js project scaffolding with upda…#1

Merged
prabothcharith merged 1 commit intodevelopmentfrom
main
Dec 15, 2025
Merged

feat: introduce nxt-gen-cli for Next.js project scaffolding with upda…#1
prabothcharith merged 1 commit intodevelopmentfrom
main

Conversation

@prabothcharith
Copy link
Copy Markdown
Owner

This pull request primarily improves the usability and clarity of the nxt-gen-cli project by updating its documentation, renaming the CLI command for consistency, and modernizing code style. The most significant changes are a comprehensive rewrite of the README.md to provide better instructions and feature explanations, and standardizing the CLI tool's name across the codebase and package configuration.

Documentation improvements:

  • Completely rewrote and reorganized README.md to provide a clearer overview, detailed installation and usage instructions, feature breakdowns, example commands, and updated project structure. The new documentation is more comprehensive and user-friendly for both new and experienced users.

CLI command standardization:

  • Changed the CLI command name from cnp to nxt-gen-cli in both the package.json bin field and in the code, ensuring consistency in how users invoke the tool. [1] [2]

Code consistency and modernization:

  • Updated import statements in src/index.ts to use double quotes for consistency and modern JavaScript style.
  • Updated CLI help text and option descriptions in src/index.ts to match the new command name and improve clarity.…ted documentation and dependencies.

Copilot AI review requested due to automatic review settings December 15, 2025 02:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the nxt-gen-cli project by renaming the CLI command from cnp to nxt-gen-cli for better discoverability and consistency, updating code style to use double quotes, and providing comprehensive documentation improvements.

  • Renamed CLI command from cnp to nxt-gen-cli across package configuration and source code
  • Standardized quote style from single to double quotes in src/index.ts
  • Completely rewrote README.md with improved structure, detailed examples, and clearer feature explanations

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
package.json Updated bin field to reference the new CLI command name nxt-gen-cli
package-lock.json Updated bin reference to match package.json changes
src/index.ts Changed CLI name from cnp to nxt-gen-cli and standardized to double quotes throughout
README.md Comprehensive rewrite with better organization, detailed usage examples, feature tables, and updated command references

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"main": "dist/index.js",
"bin": {
"cnp": "./bin/cnp"
"nxt-gen-cli": "./bin/nxt-gen-cli"
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bin field references "./bin/nxt-gen-cli" but the actual file in the bin directory is still named "cnp". This will cause the CLI command to fail when users install the package, as npm will look for a file that doesn't exist. The physical file "bin/cnp" needs to be renamed to "bin/nxt-gen-cli" to match this reference.

Copilot uses AI. Check for mistakes.
import { Command } from "commander";
import prompts from "prompts";
import chalk from "chalk";
import path from "path";
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import path.

Suggested change
import path from "path";

Copilot uses AI. Check for mistakes.
import prompts from "prompts";
import chalk from "chalk";
import path from "path";
import fs from "fs-extra";
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import fs.

Suggested change
import fs from "fs-extra";

Copilot uses AI. Check for mistakes.
@prabothcharith prabothcharith merged commit 4cc9380 into development Dec 15, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants