Skip to content

Add --verbose flag and enable debug logging#67

Merged
Josephat-S merged 1 commit into
devfrom
feat/debug-logging
May 26, 2026
Merged

Add --verbose flag and enable debug logging#67
Josephat-S merged 1 commit into
devfrom
feat/debug-logging

Conversation

@Josephat-S
Copy link
Copy Markdown
Contributor

This pull request adds a new --verbose option to the CLI, providing users with detailed output during project generation. When enabled, verbose mode surfaces additional insights about configuration, file operations, dependency injection, template compilation, and install durations, making the generation process more transparent and easier to debug.

Verbose mode support:

  • Added a --verbose CLI flag to the main program, and passed the verbose option through all relevant functions and config objects (index.js, src/generate.js, src/dependencies.js). [1] [2] [3] [4] [5]

Detailed output in project generation:

  • In generateProject, added verbose logging for configuration details, template copy source and duration, file compilation counts and durations, install duration, and total generation time. [1] [2] [3] [4] [5] [6]

Dependency resolution transparency:

  • In resolveDependencies, verbose mode now lists each dynamically added dependency with its reason, and the final message includes a count of injected packages.

These changes enhance the developer experience by making the project scaffolding process more observable and easier to troubleshoot.

Closes #46

@Josephat-S Josephat-S requested a review from a team May 26, 2026 09:48
@Josephat-S Josephat-S merged commit 977a8f5 into dev May 26, 2026
6 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.

Add --verbose Flag and Debug Logging

1 participant