Skip to content

feat: improve cli init template for better stability#21

Merged
jsongo merged 3 commits intomainfrom
feat/improve-init-template
Feb 8, 2026
Merged

feat: improve cli init template for better stability#21
jsongo merged 3 commits intomainfrom
feat/improve-init-template

Conversation

@jsongo
Copy link
Owner

@jsongo jsongo commented Feb 8, 2026

Summary

This PR improves the stability of the project template generated by the CLI:

  • Switched from localhost to 127.0.0.1 to avoid IPv6/DNS resolution issues.
  • Added -a 127.0.0.1 to the http-server command.
  • Updated default composition resolution to 1920x1080 and duration to 120 frames.
  • Ensured <Composition /> is always mounted (hidden) in main.tsx to facilitate composition discovery.

Test plan

  • Initialized a test project using the built CLI.
  • Verified package.json contains the updated render script.
  • Verified src/main.tsx contains the updated config and hidden composition element.

🤖 Generated with Claude Code

jsongo and others added 3 commits February 8, 2026 11:43
Update package.json and main.tsx templates in CLI init command:
- Use 127.0.0.1 instead of localhost for better network stability
- Add -a 127.0.0.1 to http-server
- Update default resolution to 1080p and duration to 120 frames
- Ensure Composition is always mounted in main.tsx for better discovery

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jsongo jsongo merged commit d87bf68 into main Feb 8, 2026
1 check passed
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.

1 participant