This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-19
Channels
- # aatree (33)
- # admin-announcements (70)
- # alda (6)
- # aleph (2)
- # announcements (6)
- # aws (7)
- # beginners (40)
- # bitcoin (1)
- # boot (138)
- # cider (24)
- # cljs-dev (9)
- # cljsjs (18)
- # cljsrn (35)
- # clojars (4)
- # clojure (211)
- # clojure-art (4)
- # clojure-austria (2)
- # clojure-hamburg (8)
- # clojure-russia (66)
- # clojure-sg (3)
- # clojured (1)
- # clojurescript (73)
- # cursive (9)
- # datomic (124)
- # dirac (8)
- # editors (3)
- # emacs (13)
- # euroclojure (10)
- # hoplon (207)
- # jobs (4)
- # ldnclj (27)
- # lein-figwheel (3)
- # leiningen (10)
- # mount (5)
- # music (1)
- # off-topic (9)
- # om (92)
- # onyx (36)
- # perun (30)
- # proton (47)
- # re-frame (11)
- # reagent (11)
- # ring-swagger (7)
- # yada (2)
Thanks. Input / feedback welcome at https://github.com/seancorfield/boot-new/issues
hi all, does anyone know where to find documentation for the *sift* boot task ? im trying to make a boot task to move files from the target directory to the root of the project.
@dviramontes: boot sift -h
?
ahh thanks!
sorry for the snipped I have a problem
or here -> https://github.com/boot-clj/boot/blob/master/doc/boot.task.built-in.md#sift
I have a problem in understanding with-eval-in
it is weird it always returns nil
but in the case of my function not executing in the pod everything is fine...moreover, no util/info
or dbug
works in a pod (is it expected?)
@richiardiandrea: dbug
etc should work in a pod
the expression you evaluate in the pod must not evaluate to anything that isn't printable
that's why then
I was returning a list of java.io.File
yes I put verbosity 3 in any case, I think I still need to learn a bit here and a bit there π
a tricky thing is that the boot.util
namespace in the pod isn't exactly the same as the main one
about the dbug
outside the pod, I had to add slf4j-simple
there was just a warning
the classic warning...about the fact that it cannot find SLF4J Static...i don't remember, I can disable one sec in build.boot
and by the way it was version 1.7.2 no others π
weird indeed, maybe jgit
I should see it in the deps tree maybe
[clj-jgit "0.8.8"]
βββ [com.jcraft/jsch "0.1.52"]
βββ [fs "1.3.2"]
β βββ [org.apache.commons/commons-compress "1.3"]
βββ [org.eclipse.jgit/org.eclipse.jgit.java7 "3.7.0.201502260915-r" :exclusions [[com.jcraft/jsch]]]
βββ [org.eclipse.jgit "3.7.0.201502260915-r"]
βββ [com.googlecode.javaewah/JavaEWAH "0.7.9"]
βββ [org.apache.httpcomponents/httpclient "4.1.3"]
β βββ [commons-codec "1.4"]
β βββ [commons-logging "1.1.1"]
β βββ [org.apache.httpcomponents/httpcore "4.1.4"]
βββ [org.slf4j/slf4j-api "1.7.2"]
found π
also all the built-in tasks are documented in the api docs here: https://github.com/boot-clj/boot/blob/master/doc/boot.task.built-in.md
https://github.com/boot-clj/boot/blob/master/doc/boot.task.built-in.md#target for instance
I was wondering about that: several array/set arguments that I've seen on Boot tasks seem singular...
Like aot and namespace, pom and license, push and file-regex...
how possible would it be to make a boot install
task that can be used like npm install
? as in boot install [email protected]
, and it modifies build.boot
+ installs the lib
Well, there's a lot of different ways to add a new project dependency...
If you have (set-env! :dependencies ...)
in your project build.boot
at the top level, it's as simple as adding [some-project "1.2.0"]
so I'm not sure whether it's worth a task for that little bit of editing?
Hi. I don't get the target task, yet. Do I need to call it between uber and jar or at the very end of my pipeline to create an uberjar?
@ska, at the very end, afaik
the order of tasks in comp
is still back magic to me (the comparison to transducers doesn't exactly make it clearer to me)
idea for a blog post maybe?
someone already did that: http://isaaccambron.com/blog/2014/12/13/transducer-composition.html
thanks @dm3!
@pesterhazy: thanks. But I am still getting the deprecation warning
@ska: I think the warning tells you how to suppress it
if you have a boot.properties
file you can add BOOT_EMIT_TARGET=no
@ska, also: https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-03.md
Trying to figure out testing. I saw this and I'm wondering what is the X.Y.Z? (set-env! :dependencies '[[adzerk/boot-test "X.Y.Z" :scope "test"]])
OK, I've got a dev-resources directory for the logger. With lein I didn't need to specify it. In boot, do I make it a source?
@laforge49: the logger configuration xml should be in resources, not sources (if that's what you mean)
Or actually, this: (deftask testing "Profile setup for running tests." [] (set-env! :source-paths #(conj % "test/clj")) (set-env! :resource-paths #(conj % "dev-resources")) identity)
I wonder if it makes sense to fork boot-notify? itβs nifty but that 2.5 patch has been sitting around for awhile
cool even better π
@laforge49: you could add it to the snippets section on the wiki: https://github.com/boot-clj/boot/wiki/Snippets
thanks!
@laforge49: Another solution for test resources is to put them into :source-paths
, this way you don't need to call set-env!
in a task. Files in :source-paths
are not copied into jar.
it should be safe to add both "test/clj"
and "dev-resources"
to :source-paths
in top-level because the files are not included in jar.
Though depending on your tasks, it is possible that some of your tasks will see the files and do something with them.
Yeah, the difference betwheen source-paths and resource-paths is that files in resource-paths will be present in "output" (e.g. jar): https://github.com/boot-clj/boot/wiki/Filesets#fileset-components
but the items in source-paths will be compiled and the binary included in the jar, no?
If you AOT compile ALL namespaces, but I don't think that's very common
I usually just AOT compile the main namespace
so unless you aot, items in the source-path will not be included at all in the jar. Seems a bit strange.
Yeah, it's a bit confusing as the terms are same as in Lein (and Maven) but they work differently
Yeah, for apps, but Clj and Cljs libs are just distributed as src
Modern Cljs tutorial 20 deals with packaging a library: https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-20.md
Can I use sift
using another directory (custom) as source?
(and hello guys)
@richiardiandrea: the sift task only works on the fileset
@micha that's a pity, it is really handy, would you consider a --source
option?
ah ok, yes I wanted to reuse the filtering by regex part of sift
and "linking" some part of my files from a temp dir to the fileset, I am using now by-re
and not-by-re
but then I have no way to use add-resource
on each java.io.File
so at the moment I have to filter files, then delete what I don't want from the temp dir
and then add-resource my-dir
oh wow wonderful
that saves my chickens
also :mergers
which can be used to resolve conflicts with files that are already in the fileset with the same name as a file you're adding
yes that option is very neat indeed
@richiardiandrea: the options are documented in the uber task docstring
except of course the defaults mentioned there are only default for the uber task, not for add-resource
@micha ok that's a perfect starting point thanks
I will copy from there and put in add-*