Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break Electrobun's CLI into separate (cli and dev launcher) binaries. #47

Open
YoavCodes opened this issue Jan 2, 2025 · 1 comment
Assignees

Comments

@YoavCodes
Copy link
Member

Currently the Electrobun CLI is a single-file-executable bun app. It has two main functions that should be broken up into two separate binaries

1. CLI

This is used for reading electrobun.config file, building application bundles, running BSDIFF for generating tiny update patches and so on. Consider rewriting this in zig to make the electrobun npm distributables much smaller.

2. Dev Launcher

For dev builds the current cli is just placed into the application bundle as the launcher. It was just easier to get all the stdio forwarding working in the prototype this way. There already exists a separate zig launcher for production builds. That should be expanded or a dedicated zig dev launcher should be created.

Should probably do this before adding windows/linux support

@YoavCodes YoavCodes moved this to Ready in Electrobun Roadmap Jan 2, 2025
@YoavCodes YoavCodes self-assigned this Jan 2, 2025
@YoavCodes
Copy link
Member Author

Might defer this till later since it's not blocking cross platform support

@YoavCodes YoavCodes moved this from Ready to Backlog in Electrobun Roadmap Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant