Refactor: improve CLI UX and code organization#29
Merged
DecampsRenan merged 6 commits intomainfrom Feb 5, 2026
Merged
Conversation
- Split monolithic functions.ts into focused modules (download, env, extract) - Replace global verbose state with module-scoped setter - Add interactive project-type selection when --type is omitted - Validate project names to reject invalid folder characters - Improve spinner feedback with separate steps for download and project creation - Replace default exports with named exports (runWebPostSetup, runNativePostSetup) - Add URL encoding for branch names - Simplify git initialization with try/catch instead of Future pattern - Enhance README with direct links to web/native repos and collapsible troubleshooting - Add lint & format check step to build workflow Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Derive Target type and all usages (validation, select choices, error messages) from a shared `targets` array exported by repos.ts. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Member
yoannfleurydev
left a comment
There was a problem hiding this comment.
Maybe take a look at https://github.com/es-tooling/module-replacements/blob/main/docs/modules/chalk.md to replace chalk
Drop the chalk dependency in favor of Node.js built-in styleText API (available since Node 20.12). Update @types/node to 20.17.0 for type support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Splits the monolithic functions.ts into focused modules, improves CLI feedback with interactive project-type selection, validates project names, and enhances documentation. Also adds URL encoding for branch names, replaces global state with module scoping, and includes a lint/format check in the build workflow.
Key improvements:
--typeis omittedAll changes pass linting, formatting, and build checks.