thiru 2019-08-25T03:22:37.069800Z

Oh cool will need to check that out.. thanks!

dominicm 2019-08-25T05:07:26.070200Z

There's something in pedestal for this

dominicm 2019-08-26T05:11:35.078200Z


roti 2019-08-25T07:49:53.071100Z

@dimovich @thiru0130 thanks


Hi Guys, has anyone experimented with setting up electronjs with figwheel-main - it'd be nice if you could share a link or some guidance here 🙂

mauricio.szabo 2019-08-27T13:24:20.083800Z

Ok, what I did was to create a JS project that would only load the Electron env, and activate node integration: Then I've configured a browser target:

mauricio.szabo 2019-08-27T13:26:03.084200Z

When I need to require things, I've used (js/require "my-dependency") for example. There's a configuration for shadow-cljs to resolve these things to you so you can use the namespace format too

mauricio.szabo 2019-08-27T13:28:24.084400Z

For example, you can configure a :browser target and add the configuration :js-options {:js-provider :require} inside the browser target, so it'll emit require(...) commands on the JS side


Hmm, this seems nice @mauricio.szabo thanks for taking the time to look into it man 👍 ! Let me explore this direction more over the weekend.

scknkkrer 2019-08-29T21:29:04.001100Z


scknkkrer 2019-08-29T21:29:06.001300Z


practicalli-john 2019-08-25T21:26:53.077500Z

@abhi18av I am no expert, but it seems shadow-cljs may be easier for combining electronjs and ClojureScript. I saw a few figwheel related articles when googling cljsjs electron. Cljsjs doesn't seem to have electron, but it sounds like someone has packaged electron up as a foreign lib with externs themselves.

practicalli-john 2019-08-26T09:46:18.079300Z

Ah yes, looking through there is quite a bit to set up. I wonder if anyone has created a project template. I am interested in setting up shadow-cljs with the Clojure CLI tools (deps.edn) and getting that to all run from CIDER. I'll try find a day to work on that but it will be after my charity ride (so late September).

practicalli-john 2019-08-26T09:48:38.079500Z

If you can find a working electron via Cljsjs, that should be easier, just adding it as a dependency to your figwheel project. You may want to avoid advanced compilation if you are getting a lot of errors.

practicalli-john 2019-08-27T07:20:57.079700Z

There is a new article about shadow-cljs that looks interesting


Thanks for always being so helpful @jr0cket 😊 ! Let me give some time to this setup sometime this week and circle back to you on the progress, the article does clear out a few doubts I had about the reloadable code, which is ideally what we want in the electron-cljs workflow as well

mauricio.szabo 2019-08-25T23:34:30.078Z

I have an electron app with shadow-cljs, if you need any help :)