This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-26
Channels
- # arachne (80)
- # beginners (76)
- # boot (16)
- # cider (66)
- # cljs-dev (62)
- # cljsjs (1)
- # clojure (106)
- # clojure-dev (5)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (61)
- # clojure-uk (130)
- # clojurescript (21)
- # core-async (9)
- # cursive (3)
- # datomic (37)
- # events (41)
- # figwheel (31)
- # fulcro (27)
- # hoplon (1)
- # jobs (2)
- # lumo (11)
- # off-topic (155)
- # re-frame (71)
- # reagent (27)
- # ring-swagger (3)
- # shadow-cljs (132)
- # spacemacs (5)
- # specter (1)
- # sql (37)
- # test-check (10)
- # uncomplicate (5)
- # unrepl (2)
- # yada (3)
@seancorfield Putting the :eval stuff in doublequotes as strings didn't do anything, it's just probably eval'ing to the string itself. When I use
:eval '(require 'mount.core) :eval '(mount.core/start)
it's still giving me java.lang.ClassNotFoundException: mount.coreI've only done it from the command line -- never tried invoking the task inside another task,
Did you try boot dev call -e "(require 'mount.core)" -e "(mount.core/start)"
(which was what I was actually suggesting)? I guess it'll depend on what your dev
task does...
Does anyone know how to programmatically get the value of :asset-path
that was set in a main.cljs.edn file? Other than directly reading and parsing the file. For example, if boot-cljs
has already parsed it, is that easily available somewhere?
@seancorfield yup, I tried it on the command line as well.
boot dev call -e "(require 'mount.core)" -e "(mount.core/start)" -e "(println 1234)"
actually does print 1234 in the console, so the lines are probably getting executed. However, the things that supposed to be mounted aren't starting unless I connect to the nrepl and start it there. Unfortunate..@kanwei Yeah, sorry, it's really going to depend what your dev
task is doing... I think there's a way to specify code to execute when an nREPL server starts up...? But I haven't used nREPL for ages (I use ProtoREPL in Atom, and we use a plain Socket Server REPL in some of our apps).
i have this feeling that everything would be so easy, but i can't really put one and one together 😞
@ashnur you can bump BOOT_CLOJURE_VERSION
in boot.properties
- does that answer your question?
@moxaj that worked, thanks, although it's still confusing a bit because i haven't had any such config in the project, nor have i set any env variable related to boot or clojure
next thing i tried to find out and failed so far was how to have a dev task that just builds a .jar or something standalone. without clojurescript or any fancy stuff, just something i could run from cli for example
@ashnur If you run boot -d boot/new new -n example -t app
in a new folder, it’ll generate a build.boot
file you can use as an example — with a build
task to create an uberjar and a run
task to run your application as source code.
@seancorfield i am a bit confused, i probably misunderstand what you wrote but neither of those options seems like a "dev task"?