This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-07
Channels
- # aws (2)
- # bangalore-clj (4)
- # beginners (62)
- # boot (74)
- # cider (408)
- # cljsrn (17)
- # clojure (117)
- # clojure-dusseldorf (1)
- # clojure-russia (21)
- # clojure-spec (17)
- # clojure-uk (15)
- # clojurescript (154)
- # cursive (3)
- # datomic (16)
- # emacs (33)
- # funcool (3)
- # hoplon (99)
- # off-topic (7)
- # om (10)
- # overtone (3)
- # portland-or (1)
- # protorepl (9)
- # re-frame (83)
- # reagent (11)
- # remote-jobs (1)
- # ring-swagger (24)
- # specter (10)
- # untangled (1)
- # yada (11)
so newbie question, how can I have doc
, apropos
, ... in all the namespaces of my project?
@micha http://stackoverflow.com/questions/20831029/how-is-it-possible-to-intern-macros-in-clojure/20831536
oh found: https://github.com/boot-clj/boot/commit/045d01101d61d947e1efd729e1f73b5690020928
you could probably make something fancy that uses ns-publics
to find the vars in the repl namespace and automatically intern them
(not true, but I feel always in a rush when I spend time these kind of things)
probably the :injections
part can just be copied in boot-shim.clj
the problem is what happens when a pod does not have it on the classpath?
yeah I will explore more, vyniasa is something I have always wanted to port to boot
Editors mask the need of doc
but the other functions are super useful, I wonder if dep hotload works ..Will try more
@flyboarder: Sorta. I have a .java file in the src dir. "boot javac" compiles it correctly, but I can't access the class from a subsequent repl or when starting the prog from a task. Well, for now I think I'm working with lein for this...
https://github.com/RadicalZephyr/boot-javac-star is an experimental option, based on https://github.com/ztellman/virgil
so I have in build.boot
(set-env! :resource-paths #{”src” “js”} …)
and this fileset:
build.boot
src/
| ...
js/
| index.cljs.edn
…
and, at a REPL, I execute: boot.user => (boot (comp (cljs) (target))
oh, hm, that seems to not be what I actually want to do anyway - when I run boot cljs -c '{:target :nodejs}’ target
from a terminal I just get the index.js
I want instead of main.js
huh, so boot cljs -c '{:target :nodejs}’
creates index.js
, but boot.user> (boot (cljs :compiler-options {:target :nodejs}))
creates main.js
aaand nevermind again - must be that the REPL had an out-of-date view of the files on disk because after a couple rounds of rm
and touch
I’ve convinced myself that the CLI will also make main.js
if there’s no index.cljs.edn
lying about