This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-28
Channels
- # aatree (3)
- # alda (8)
- # avi (21)
- # beginners (37)
- # boot (193)
- # cbus (1)
- # cider (29)
- # cljs-dev (8)
- # cljsjs (3)
- # cljsrn (20)
- # clojure (76)
- # clojure-dev (13)
- # clojure-miami (20)
- # clojure-portugal (2)
- # clojure-russia (220)
- # clojure-sg (2)
- # clojurebridge (5)
- # clojurescript (94)
- # community-development (14)
- # conf-proposals (110)
- # core-async (12)
- # cursive (12)
- # datascript (6)
- # datomic (14)
- # dirac (72)
- # emacs (49)
- # hoplon (86)
- # jobs (33)
- # jobs-discuss (1)
- # ldnclj (6)
- # lein-figwheel (1)
- # off-topic (56)
- # om (139)
- # onyx (29)
- # pedestal (17)
- # proton (23)
- # re-frame (45)
- # reagent (35)
- # ring-swagger (4)
- # test-check (1)
- # testing (8)
- # yada (11)
the boot-in-boot thing is like this https://github.com/micha/multi-module-build/blob/master/build.boot
that task would be great to have for tests 😄
but I cannot hack then in because it refers to boot.user
@richiardiandrea: https://github.com/micha/multi-module-build/blob/master/build.boot#L22
instead of (future (boot.App/runBoot core worker args)))
, can I call direcly sift
?
yeah, so there is no way to make it execute clojure-y expressions like?
(sift :add-meta {regex :boot-test-tag}
:add-jar {'org.clojure/tools.reader regex})
ok I will try that
I guess it is the only way for now, it would be great if runBoot
accepted clojure forms 😄
unit tests, which don't need boot.core for anything (since boot.core is really just a proxy for other namespaces)
it does not look too complicated to do btw, a call to tools.reader
on the
but I am adding tests IN boot.built-in
gotcha
as bash
scripts?
it's good I asked 😄
yeah, my plan was to run a simple:
(deftest add-meta
(let [regex #"(?i).*\.(clj|cljs|cljc|js)$"]
(boot (sift :add-meta {regex :boot-test-tag}
:add-jar {'org.clojure/tools.reader regex}))))
but it does not work, nothing is initializedwith your runBoot it would work but as you said it is not ideal
in a deftask
it would be perfect, as you have access to the fileset
a bit like show
you can see the result of the pipeline
where verify-task1 is a task that looks at the fileset and checks to make sure it's correct
it would be great but where exactly? that does not work in the test namespaces
yes that would work, so we need to tell lein
to execute boot integration-test
on the shell, and it will read build.boot
where integration-tests
is a custom task
good idea
github is down here 😱
@chris-andrews: @sooheon I can confirm that boot repl -c
blows away the contents of target
can anyone help me figure out how to serve a js file compiled by boot-cljs
while Github is down and I can't look the docs?
you can use boot-http
@samflores
@samflores: i put the usage wiki page on dropbox, https://dl.dropboxusercontent.com/u/12379861/usage.html
@micha, I'm not sure. Will boot-http
start it's own server? My app already runs a http server that the hiccup generated html. I think I'll have to write the .js file to the fs (the latest boot version does not default target
, right?)
thank you, @alandipert
if your app's http server can serve classpath resources as well as files then you should be good to go
@micha, how to reset the fileset as before execution of the task pipeline? Like at the pipe (boot | (task) ....)
aka discard all the changes to a fileset
@richiardiandrea: when you use the boot
function that should happen automatically, no?
yes but I am composing inside boot
, like (boot (test1) (reset-fs) (test2))
because I am doing
(deftask integration-tests []
(comp #_(sift-add-meta)
(sift-with-meta)
;; "Other test tasks here
))
maybe reset-build!
?
java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to clojure.lang.IAtom
clojure.core/reset! core.clj: 2251
boot.core/reset-build! core.clj: 742
Nope ^ I am bending the spoon too much 😄disable cache -> refresh -> enable cache fixes this, the browser kept looking for the previous project main
help! @jellea's boot has color, but mine doesn't
@pesterhazy: see configuration wiki page
I don't see where I set BOOT_COLOR=no anywhere
can be controlled via env var
try setting it to yes
locally and if that changes things?
tried that, but it doesn't work
if you inspect $BOOT_COLOR
I guess it's unset?
I'm doing BOOT_COLOR=yes boot dev
there's also -C/--no-colors
but I guess you don't have that anywhere either?
@pesterhazy: are you on windows?
might be terminal settings?
you can test whether ansi colors show up on your terminal with this line:
printf '\e[32mtest\n'
@jethroksy, that's what I use
your line gives me a green test
actually maybe I'm overestimating the amount of color I should be seeing
stacktraces are colored, and I do see something lines in bold print
http://blog.cognitect.com/blog/2016/1/28/state-of-clojure-2015-survey-results boot is up to 13% usage in the State of Clojure Survey
sweet!
@pesterhazy: that's odd
Just wanted to drop in and say how awesome boot is once you know what you're doing. Just converted another project to boot in less than 5 minutes!
iterm, solarized
I'm already on 2.5.5
I do see more dolors in Terminal.app (white background)
xterm-256color
in both iterm and Terminal.app
no change if I change it to plain xterm
env
is exactly the same in both iterm and terminal.app
thanks for your help!
after the encouraging results of the survey (boot up 13%!) we need to keep this project rolling 😄 😄 I wanted to congratulate you all guys, very good job!
@micha: thank you for all the work and knowledge 🍻
Only I can't get it to work. 😞 I'm trying to convert https://github.com/MarcoPolo/servant-demo and this is what I came up with: https://github.com/aatree/aademos/tree/master/servant-demo Obviously there are issues with my boot file. Or perhaps the html is referencing the wrong .js file, hmm? I'm seeing this when I do a show :fileset true ??? boot ? ??? cljs ? ??? main8226.cljs ? ??? main8226.cljs.cache.edn ? ??? main8226.js ? ??? main8226.js.map Perhaps I need to specify output-to on the compile? Thanks!
Here's my index.html: <!DOCTYPE html> <html> <head> </head> <body> <p> Look in the console </p> </body> <script src="main.js" ></script> </html>
@laforge49: that looks correct, but your html file is loading js from the wrong place
usually target
, from the classpath
Put it after the cljs? (deftask dev "Build for local development." [] (comp (watch) (speak) (reload) (cljs-repl) (cljs) (show :fileset true) (serve :port 9000)))
Starting reload server on <ws://localhost:58859> Writing boot_reload.cljs... Writing boot_cljs_repl.cljs... Starting file watcher (CTRL-C to quit)... nREPL server started on port 58861 on host 127.0.0.1 - <nrepl://127.0.0.1:58861> Writing main.cljs.edn... Compiling ClojureScript... ò main.js adzerk ??? boot_cljs_repl.cljs ??? boot_reload.cljs main.cljs.edn main.js main.out ??? adzerk ? ??? boot_cljs_repl.cljs ? ??? boot_cljs_repl.cljs.cache.edn ? ??? boot_cljs_repl.js ? ??? boot_cljs_repl.js.map
??? weasel ??? impls ? ??? websocket.cljs ? ??? websocket.cljs.cache.edn ? ??? websocket.js ? ??? websocket.js.map ??? repl.cljs ??? repl.cljs.cache.edn ??? repl.js ??? repl.js.map servant_demo ??? core.cljs Starting Jetty on port 9000... 2016-01-28 18:21:26.152:INFO::clojure-agent-send-off-pool-0: Logging initialized @21849ms 2016-01-28 18:21:26.211:INFO:oejs.Server:clojure-agent-send-off-pool-0: jetty-9.3.1.v20150714 2016-01-28 18:21:26.310:INFO:oejw.StandardDescriptorProcessor:clojure-agent-send-off-pool-0: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet 2016-01-28 18:21:26.337:INFO:oejsh.ContextHandler:clojure-agent-send-off-pool-0: Started o.e.j.w.WebAppContext@40f78fe5{/,file:///C:/Users/Bill/.boot/cache/tmp/Users/Bill/Documents/aatree/aademos/servant-demo/bg/6g3ild/,AVAILABLE} 2016-01-28 18:21:26.355:INFO:oejs.ServerConnector:clojure-agent-send-off-pool-0: Started ServerConnector@4e8eb93d{HTTP/1.1,[http/1.1]}{0.0.0.0:9000} 2016-01-28 18:21:26.360:INFO:oejs.Server:clojure-agent-send-off-pool-0: Started @22057ms Elapsed time: 17.746 sec
Any webpages that will get me started on multi-output file builds? I'll want a separate .js file later for the .js
@micha have you had a look at how I can solve the "reset fileset" issue in my PR? https://github.com/boot-clj/boot/pull/401 I can walk you through what I did