Skip to content

Add --verbose Flag and Debug Logging #46

@Josephat-S

Description

@Josephat-S

What to build

Add a --verbose flag that shows detailed output during generation: which files are being processed, which Handlebars tags are being replaced, which dependencies are being injected, and timing information.

Files to modify

  • src/generate.js
  • src/dependencies.js
  • index.js

Specs

  • Normal mode: only spinners and success/fail messages (current behavior).
  • Verbose mode: log every file processed, every dependency injected, timing for each phase.
  • Format: [phase] action — detail (e.g., [compile] Processing — app/layout.tsx (3 tags replaced)).

Acceptance criteria

  • opusify create --verbose shows detailed file-by-file output.
  • Each phase shows timing (e.g., "Template compilation: 120ms").
  • Dependency injection logs which packages were added and why.
  • Normal mode (no flag) remains clean with just spinners.

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeatureRequest for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions