Fork me on GitHub
#boot
<
2017-01-28
>
sihingkk14:01:01

Hey guys I wonder if anyone has experience using electron-packager together with boot-cljs I’m experimenting with https://github.com/martinklepsch/electron-and-clojurescript When building app this way:

boot build-prod target
electron-packager target/ MyApp --platform=darwin --arch=x64 --version=0.31.2
open MyApp-darwin-x64/MyApp.app
I’m getting on app starting (after building it with electron-packager:
Error: Cannot find module '/main.out/goog/bootstrap/nodejs.js'
and it’s because there is main.js generated which use
require(path.join(path.resolve("."),"app/main.out","goog","bootstrap","nodejs.js"));
to require files. the problem is path.resolve(”.”) evaluates to /. do you have perhaps solution for that issue?

sihingkk14:01:34

seems to be connected to clojurescript compiler itself https://github.com/clojure/clojurescript/blob/cdaeff298e0f1d410aa5a7b6860232270d287084/src/main/clojure/cljs/closure.clj#L1405 - I’m moving this question to #clojurescript

mobileink20:01:56

working on boot-ask, a task lib for Alexa Skills Kit development in clj. lookin for help debugging. not really a boot problem, but boot makes it all possible. if interested see #aws and/or #google-cloud .

richiardiandrea22:01:37

@juhoteperi I tried boot-figreload in a project with the new cljs and all good 😀

richiardiandrea22:01:48

I will need to try this new way of importing node stuff but I feel good about it because we don't mingle with compiler stuff, for us it should be transparent

richiardiandrea22:01:02

Also I wanted to ask what are your thoughts on supporting runtime change and reload of dependencies: figwheel does it, but I haven't needed it myself so for now it is not in boot-figreload

richiardiandrea23:01:57

Also after reading https://clojurescript.org/guides/javascript-modules it looks like boot again is a winner here because we could just add tasks that add stuff to the fileset incrementally (like process.js) before boot-cljs and when cljs core will sort things out the tasks won't be necessary anymore