Skip to content

Comments

Add logger class, rewrite and cleanup logging calls, and refactor generation workflow#27

Merged
nickesc merged 46 commits intomainfrom
dev
Feb 2, 2026
Merged

Add logger class, rewrite and cleanup logging calls, and refactor generation workflow#27
nickesc merged 46 commits intomainfrom
dev

Conversation

@nickesc
Copy link
Owner

@nickesc nickesc commented Feb 2, 2026

  • adds a Logger that replaces previous console.log, console.error and console.warn calls
    • handles quiet/silent options
    • supports pre-styled logs
    • managed newlines to avoid duplicate blank lines
    • updates logging across the entire package to be consistent and look polished
  • decouples readme and gitignore generation from lockfile generation (functions the same, but more modular as a package)
  • adds option to generate license file during lockfile generation
  • fixes duplicate license options
  • standardizes function parameter naming
  • adds Prettier configuration and applies formatting changes across the codebase

closes: #25

* decoupling: (32 commits)
  updated logs
  only print newline if last line was not a newline
  implemented quieting from options in exported methods
  add method to quiet from an options object
  changed console quieting method
  updated header formatting
  fixed empty lockfile summary
  logging cleanup
  updated generation logs to use generated method
  moved modpack.json generation to beginning of file generation
  updated imports
  added a pre-formatted 'generated' log
  updated label styles to use inverse colors
  fixed duplicates in license options
  updated gitignore file reference
  removed unused json description var
  updated modrinth query logging
  updated scanning logging
  cleaned up logs
  updated strings in logs
  ...
THIS IS A BREAKING CHANGE
no more breaking change, not worth it
@nickesc nickesc self-assigned this Feb 2, 2026
@nickesc nickesc added the enhancement New feature or request label Feb 2, 2026
Copy link
Owner Author

@nickesc nickesc left a comment

Choose a reason for hiding this comment

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

looks good, update docs, bump version, and publish to npm

@nickesc nickesc merged commit e8e97f9 into main Feb 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clean up the printing to the cli

1 participant