This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-28
Channels
- # aws (1)
- # aws-lambda (1)
- # beginners (19)
- # boot (7)
- # cider (9)
- # cljs-dev (311)
- # cljsjs (34)
- # cljsrn (8)
- # clojars (7)
- # clojure (41)
- # clojure-argentina (3)
- # clojure-russia (15)
- # clojure-spec (15)
- # clojure-uk (11)
- # clojurescript (83)
- # datomic (45)
- # emacs (7)
- # hoplon (13)
- # klipse (2)
- # lein-figwheel (1)
- # luminus (3)
- # om-next (1)
- # parinfer (5)
- # perun (1)
- # planck (1)
- # reagent (5)
- # spacemacs (2)
- # untangled (1)
- # yada (1)
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?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
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 .
@juhoteperi I tried boot-figreload
in a project with the new cljs and all good 😀
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
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
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