This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-01
Channels
- # aatree (3)
- # admin-announcements (2)
- # beginners (42)
- # boot (142)
- # cider (12)
- # cljsrn (11)
- # clojure (126)
- # clojure-greece (2)
- # clojure-poland (7)
- # clojure-russia (81)
- # clojure-uk (10)
- # clojurescript (81)
- # component (27)
- # core-typed (2)
- # cursive (18)
- # euroclojure (1)
- # gorilla (1)
- # hoplon (85)
- # immutant (2)
- # jobs (3)
- # leiningen (2)
- # off-topic (49)
- # om (151)
- # onyx (19)
- # parinfer (3)
- # re-frame (36)
- # reagent (2)
- # spacemacs (5)
- # untangled (32)
- # yada (9)
or to move all other .hl files in a temp folder to hide them? (not sure at all) (sift :move {#"^(?!index).*\.hl$" "vpc-hoplon/archives"})
(not sexy and maybe wrong...)
yeah, it is broken, index page doesn't load...
yeah this would work :
(sift :move {#"parcs\-beauport\.cljs\.hl|evenements\-vieux\-limoilou\.cljs\.hl|quartierouvert\.cljs\.hl" "src/vpc-hoplon/archives"})
@alandipert: Maybe you have better suggestion... still thanks for the sift
tip... seems to work
micha: is there any reason why Keywords are not converted into strings here?: https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs#L73-L75
@leontalbot: that looks good to me!
i know with some testing frameworks i've seen the idea is called "focus"
@alandipert: Great! I now use a fn that converts a set of files to excluded into a regex pattern to pass to sift
fn.
i have a minute to write up my idea though, let's see how it compares
Great!
oh that sounds cool too
programming ftw
^^^ my temp solution
(require '[boot.core :as core])
(core/deftask focus
"Only process a subset of the cljs.hl files on the fileset."
[s subset PATH #{str} "Set of fileset-relative paths of cljs.hl files to exclude from the fileset."]
(core/with-pre-wrap [fs]
(if (seq subset)
(->> (core/by-ext ["cljs.hl"] (core/input-files fs))
(filter #(contains? subset (core/tmp-path %)))
(core/rm fs)
core/commit!)
fs)))
;; example:
(comp (focus :subset #{"index2.cljs.hl"})
(hoplon)
(cljs))
@alandipert: Seems great though when I test, every .hl files seems to be laoded/reloaded. reloading takes about 12 sec...
I'll double check...
oh weird, yeah i put the hoplon
task after and it still compiles them
i didn't see the file when i did show -f
yep...
it seems to be still compiling everything
@micha: any idea why the above task wouldn't actually filter out cljs.hl files?
(I tried with .cljs.hl
(with a dot) still won't work...)
sift works, but i wanted to make a task to do it just out of by-ext and rm
like if you do boot focus -s foop.cljs.hl show -f
foop.cljs.hl doesn't show up
i will try
no dice w/ 2.6.0-SNAPSHOT
oh sorry, yeah there's also bar.cljs.hl in there
i see them both
hm i dont understand, how am i throwing it away?
(core/deftask focus
"Only process a subset of the cljs.hl files on the fileset."
[s subset PATH #{str} "Set of fileset-relative paths of cljs.hl files to exclude from the fileset."]
(core/with-pre-wrap [fs]
(if (seq subset)
(->> (core/by-ext ["cljs.hl"] (core/input-files fs))
(filter #(contains? subset (core/tmp-path %)))
(core/rm fs)
core/commit!))))
yeah it no do if subset empty
probably needless
(core/deftask focus
"Only process a subset of the cljs.hl files on the fileset."
[s subset PATH #{str} "Set of fileset-relative paths of cljs.hl files to exclude from the fileset."]
(core/with-pre-wrap [fs]
(->> (core/by-ext ["cljs.hl"] (core/input-files fs))
(filter #(contains? subset (core/tmp-path %)))
(core/rm fs)
core/commit!)))
better versionyeah - i will bust that out and see
ok cool
discard that feel
the filter part is empty
my logic is f'd
filter is wrong there
i need to rm the ones not in the set
@raywillig: i hope so...are we not?