This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-14
Channels
- # beginners (110)
- # boot (50)
- # cider (29)
- # cljs-dev (80)
- # cljsrn (10)
- # clojure (54)
- # clojure-italy (3)
- # clojure-korea (24)
- # clojure-russia (50)
- # clojure-spec (12)
- # clojure-taiwan (1)
- # clojure-uk (67)
- # clojurebridge (14)
- # clojurescript (118)
- # component (3)
- # cursive (11)
- # datomic (28)
- # dirac (31)
- # emacs (45)
- # flambo (2)
- # hoplon (53)
- # immutant (3)
- # jobs (5)
- # mount (8)
- # off-topic (10)
- # om (5)
- # onyx (52)
- # other-languages (2)
- # parinfer (1)
- # pedestal (1)
- # proton (39)
- # protorepl (2)
- # re-frame (22)
- # remote-jobs (1)
- # ring (13)
- # ring-swagger (2)
- # test-check (9)
- # untangled (28)
- # vim (12)
in boot.user, calling (foo), where foo is a task defined with deftask
returns a function. But ((foo)) will fail, complaining that more than zero arguments are needed.. How can I invoke a task from boot.user ?
@pseud (boot (foo))
With a cljs edn located at dashboard/resources/public/js/dashboard.cljs.edn
, boot-reload tries to reload a path that includes /public
. However, I want to serve my /public
classpath as /
, not /public
(as I do in production).
I've tried to come up with the right value for :cljs-asset-path
for boot-reload
, but no luck so far.
N.b. the problem only occurs in reloading; the first devenv load works.
I've rephrased my question as a GitHub issue 🙂
@tmtwd you can only add directories to the fileset, there isn't a way to really add individual files
it does prevent you from doing things like making a file named foo/bar
and then another file named foo/bar/baz
so I could do
(deftask add-version-txt []
(with-pre-wrap fs
(let [t (tmp-dir!)]
(spit ( t “foo/version.txt") version)
(-> fs (add-resource t) commit!))))
I would like to get https://github.com/crisptrutski/boot-cljs-test to throw an exception in the event that an error occurs. I would like this so that I can short circuit running my really slow test if my medium speed test fail. Sort of illustrated the idea here.
Hey samedhi - probably the simplest would be to break it up into two test suites
@micha sorry to bother, took a look at the jgit stuff, and unfortunately clj-jgit doesn’t implement push, so I have to work directly with jgit. Thing is, I use ssh authentication, so it seems I need to use with-identity
, but I’m at a loss for how to reference my private and public keys. slurp
ing the path doesn’t seem to work—I’m guessing this is a filesystem path vs classpath thing. Any tips?
And throw after first - just working on a new version out at the moment actually
@crisptrutski Conceptually, I think that is where I was going. But how can I know when the result is failing?
I see that you added a exit! task, but of course that actually blows me out every time. 🙂
Going to push a more up to date version now, overhauled the snapshot last night actually 😉
Removed exit, wasn’t really doing the right thing. Throwing is far more natural than System/exit
>_<
branch is 0.3.0-reboot
@crisptrutski Cool, I got my standup soon, but will let you know by end of day how it worked out.
Haha, what work? 😛 This library has been super neglected
Glad to know it’s still solving problems. Wish I was doing Clojurescript work so I could use it myself 😛