flyover / imgui-js

JavaScript bindings for Dear ImGui using Emscripten and TypeScript
https://flyover.github.io/imgui-js/example/
MIT License
915 stars 98 forks source link

Better packaging? #55

Open miker2049 opened 1 year ago

miker2049 commented 1 year ago

As of right now, this implementation feels a little too oriented around building and showing the demo. I am not sure how many people use System.js, but I do think some better defaults around the module would help a lot of people. Just so one could do a typical import ImGui from "imgui-js", even import {ImGui, ImGui_Impl} from "imgui-js" out of the box.

I can certainly take this on and do a PR, (I already have a fork with the minimal changes needed to do a regular import) but just wanted to see if the library maintainers have any interest in it, because it would be some substantial, breaking changes depending on how people are using the library.

Buffele commented 1 year ago

Hi!

I would be interested in this fork / pull request with regular typescript support.

Could you push your modified branch or create a PR? Thanks in advance!

naychrist commented 1 year ago

I would love to see this. A basic example or two showing how to set a boilerplate project up using different frameworks would be great.

flowstate247 commented 8 months ago

This is what prevents me from using imgui-js, actually. I hope someone will make it happen soon. It's such a shame that we are left stuck without solution.

MiguelRipoll23 commented 5 months ago

This is such a good project that's a shame that its setup is so complicated for starters. I gave up after trying to integrate it to a TypeScript project...