This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-03
Channels
- # admin-announcements (241)
- # beginners (53)
- # boot (134)
- # cider (20)
- # clara (3)
- # clojure (170)
- # clojure-argentina (13)
- # clojure-brasil (1)
- # clojure-canada (3)
- # clojure-italy (9)
- # clojure-nl (3)
- # clojure-russia (55)
- # clojurescript (115)
- # code-reviews (18)
- # cursive (8)
- # datomic (14)
- # events (8)
- # hoplon (51)
- # immutant (38)
- # jobs (8)
- # ldnclj (11)
- # melbourne (6)
- # off-topic (2)
- # om (5)
- # onyx (9)
- # re-frame (3)
- # reagent (8)
- # sneer-br (1)
- # sydney (1)
- # testing (14)
@micha: most likely you're going to call it from something like build.boot where it won't resolve to what you want I guess.
Hi. How do I include js file to Hoplon nowadays?
@andrewboltachev: best way is :foreign-libs
via cljsjs or your compiler-options
ok, I'll try it
Once added cljsjs dependency such as [cljsjs/jquery-ui "1.11.3-1"] to :dependencies in build.boot, do I need to add it somewhere else, like to my local deps.cljs?
ah. I need to (:require cljsjs.jquery-ui). Sorry
Whats the easy way to track if a file has changed since the last cycle? Do I need to store mtime somewhere and do that manually?
@martinklepsch: fileset-diff can do it
@micha: when I do that I still need to store an old fileset somewhere right?
yeah ok 👍
@micha: Do you have ideas what would be good way to build multiple jars from a project? One core jar containing few namespaces and several modules having specific dependencies and ~one namespace.
i think perhaps a function that splits the pipeline, you run tasks in parallel, and then merge
How should I filter the inputs to each pipeline?
Ah right I didn't remember I can't redefine dependencies in core pod
Hmm, it's possible to redefine :dependencies
so that it affects pom
etc. but the stuff won't be removed from classpath?
Should be enough for me, I really want everything to the classpath for development and then I just want to split stuff to several jars
Not sure but I think it could perhaps be a function
tasks return a middleware function so it should possible to wrap that?
pom
does that inside wrap
(fn [next-handler]
(fn [fileset]
(let [deps (get-env :dependencies)]
(set-env! :dependencies #(into % (:dependencies (get modules module))))
(((pom :project (if (#{:core} module)
'metosin/palikka
(symbol (str "metosin/palikka." (name module)))))
(fn [fileset]
(set-env! :dependencies deps)
(next-handler fileset)))
fileset))))
I thought Slack would support highlighting
Well, this is surprisingly hard
custom pom task would be easy solution 😄
@juhoteperi: slack supports highlight if you create a text snippet
I have disabled all the fancy slack stuff
Or maybe it asked if I wanted to create snippet
@martinklepsch: did you have any luck making boot shirts? i'd definitely buy one!
@alandipert: didn’t continue pursuing that yet, but thanks for reminding me!
I just had this brilliant idea that I could exit my cljs-repl, add a dependency using set-env!
and jump back in all without ever quitting boot. Didn’t work though 😛 cljs runs in a pod that doesn’t get the dependency update.
@martinklepsch: Do you still have Cljs stickers?
A few I still have
Maybe only the bigger ones, not 100% sure.
@martinklepsch: I'd be happy with just one My new laptop looks bland
I’ll bring them and some other stickers I have around.
I can trade for Neovim/Vim stickers, or maybe even NPM/Node/Bower/Ubuntu 😄
it would be cool if that worked, perhaps boot-cljs could add a watch on the env atom
It definitely would be something to brag about haah
definitely when developing clojure things i almost never restart boot, i use set-env!
and update the build.boot for when i do eventually restart
No need for watch? cljs task could check if deps have been changed when it's run?
even better
@micha: https://gist.github.com/Deraen/716ed7d856e3099d438c Quite near I think
Something doesn't work with filtering and merging filesets. Should I modify something else besides :tree?
I don't know how I could use add-resource as I don't have any dirs
Hmm, might be better to create tempdir and copy stuff from fileset to that etc.
That should be possible with public api :
But I'm not sure about merging?
Could be it doesn't make any sense
Looks like :tree will refer to files which won't be on the tempdirs
Is the stuff removed from blob dir when I remove stuff from .tree?
For some reason (install) will try to retrieve a file from from tempdir after merge
Aha, commit! after merge does something
Now I just need good way to filter which files belong to which jar. I thought using separate resource-paths but looks like that won't be useful.