Skip to content

Refactor: improve CLI UX and code organization#29

Merged
DecampsRenan merged 6 commits intomainfrom
DecampsRenan/improve-cli-ux
Feb 5, 2026
Merged

Refactor: improve CLI UX and code organization#29
DecampsRenan merged 6 commits intomainfrom
DecampsRenan/improve-cli-ux

Conversation

@DecampsRenan
Copy link
Member

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:

  • Interactive project-type selection when --type is omitted
  • Project name validation with clear error messages
  • Better spinner feedback with separate download/creation steps
  • Named exports replacing default exports
  • Direct links to web/native repos in README with collapsible troubleshooting section

All changes pass linting, formatting, and build checks.

DecampsRenan and others added 4 commits February 5, 2026 12:02
- 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>
Copy link
Member

@yoannfleurydev yoannfleurydev left a comment

Choose a reason for hiding this comment

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

DecampsRenan and others added 2 commits February 5, 2026 12:16
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>
@DecampsRenan DecampsRenan merged commit d28ebc6 into main Feb 5, 2026
1 check passed
@DecampsRenan DecampsRenan deleted the DecampsRenan/improve-cli-ux branch February 5, 2026 11:36
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.

2 participants