Skip to content

Replace cli-progress with direct line printing for progress reporting - #168

Merged
fulldecent merged 2 commits into
mainfrom
copilot/fix-167
Sep 16, 2025
Merged

Replace cli-progress with direct line printing for progress reporting#168
fulldecent merged 2 commits into
mainfrom
copilot/fix-167

Conversation

Copilot AI commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

This PR removes the cli-progress dependency and replaces it with direct line printing for progress reporting in the HTML validation script.

Changes

  • Removed cli-progress dependency from package.json
  • Updated test/build-html-validate.mjs to use direct console output instead of progress bars
  • Implemented the exact format specified in the issue:
    • ✅ (N of total) file/path for passing files
    • ❌ (N of total) file/path for failing files
    • - Error message lines for detailed error output

Example Output

Before (with cli-progress):

[████████████████████████████████████████] 100% | 2/2 | test.html
❌ build/test.html
Error message here

After (direct line printing):

❌ (1 of 2) build/fail.html
- undefined:undefined:undefined: error [pacific-medical-training/canonical-link] <head> is missing <link rel="canonical" ...>
✅ (2 of 2) build/pass.html

Benefits

  • Simpler code without external progress bar library
  • Cleaner output that's easier to read and parse
  • Immediate feedback as each file is processed
  • Maintained all existing functionality including parallel processing and error handling

All tests pass and the functionality remains identical except for the improved progress reporting format.

Fixes #167.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: fulldecent <382183+fulldecent@users.noreply.github.com>
Copilot AI changed the title [WIP] Rip out cli-progress Replace cli-progress with direct line printing for progress reporting Sep 16, 2025
Copilot AI requested a review from fulldecent September 16, 2025 19:44
@fulldecent
fulldecent marked this pull request as ready for review September 16, 2025 19:55
@fulldecent
fulldecent merged commit 38d222c into main Sep 16, 2025
5 checks passed
@fulldecent
fulldecent deleted the copilot/fix-167 branch December 8, 2025 17:08
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.

Rip out cli-progress

2 participants