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

Idea: Development scaffolding similar to front-end #435

Open
jinzhongjia opened this issue Jun 28, 2024 · 5 comments
Open

Idea: Development scaffolding similar to front-end #435

jinzhongjia opened this issue Jun 28, 2024 · 5 comments

Comments

@jinzhongjia
Copy link
Collaborator

Recently when I was trying to develop the front end, I found that the overall development experience was not very good. Maybe we can try to refer to elecron-vite

Make similar scaffolding to help development

@jinzhongjia
Copy link
Collaborator Author

But I think this is not the main demand at the moment.

@hassandraga
Copy link
Member

electron-vite is a build tool that aims to provide a faster and leaner development experience for Electron

It's a good idea to have a build tool that helps to speed up the development process. However, let us think about how to add similar tools for every wrapper depending on the wrapper language and needs while we keep the core as simple as possible (c compiler, and a make file).

@tvortsa
Copy link

tvortsa commented Jun 29, 2024

for other wrappers, the role of webUI is better the smaller it is, it’s just a binary protocol between the backend and frontend.

The webUI itself does not serve as a backend, for example, in the case of deno.js and this, in my opinion, is more good than bad.

For the C++ version, etc. maybe everything is different

@jinzhongjia
Copy link
Collaborator Author

In fact, the current difficulty is that if we combine webui with front-end vue react, then we have to introduce a different port js webui.js into index.html during development. When using packaged files, we need to directly introduce webui.js
And the code of backend is also different between develop and release

It would be nice if these differences could be smoothed out.But I haven’t thought of a solution for price comparison at the moment.

@cwegener
Copy link
Contributor

cwegener commented Jul 8, 2024

Just adding my .02$

I quite prefer that I have the freedom to implement whatever development tools I like into the development workflow in WebUI.

I think that one option would be to provide examples as part of the WebUI documentation of how existing frontend tooling like tsc, rollup/webpack can be easily integrated into a WebUI based development set up.

Modern dev tools like mise could come in quite handy in devising such examples.

(I am currently in the process of integrating mise watch, tsc + rollup for a webui-go project. The tooling is not quite ready to share yet though)

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

No branches or pull requests

4 participants