This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-12
Channels
- # admin-announcements (56)
- # beginners (67)
- # boot (159)
- # cider (5)
- # cljs-dev (16)
- # cljsjs (7)
- # clojure (142)
- # clojure-dev (15)
- # clojure-japan (1)
- # clojure-poland (1)
- # clojure-russia (33)
- # clojurebridge (2)
- # clojurecup (1)
- # clojurescript (56)
- # cursive (3)
- # datavis (2)
- # datomic (29)
- # devops (6)
- # editors (1)
- # emacs (3)
- # hoplon (95)
- # ldnclj (15)
- # leiningen (18)
- # off-topic (10)
- # om (12)
- # onyx (7)
- # parinfer (6)
- # proton (1)
- # spacemacs (3)
- # yada (2)
@solicode: so, you mean, with :target-path? Do you understand what it does?, :target-path I mean.
@pupeno: It's where compiled files, uberjars, and things like that get placed when you're compiling Clojure (the default path is just "target"). ClojureScript, on the other hand, you have defined in :cljsbuild (the output directories). So maybe you want all 3, like this?
:clean-targets [:target-path
[:cljsbuild :builds :app :compiler :output-dir]
[:cljsbuild :builds :app :compiler :output-to]]
solicode: that is what I have already, and js is not being cleaned.
[:clj :cljsbuild :builds :app :compiler :output-dir]
vs.
[:cljsbuild :builds :app :compiler :output-dir]
@pupeno: Also, I'm not sure if ^{:protect false}
is needed. It seems like it would be unnecessary, but if it's a problem, try adding it back in.
Let me try.
Yup, now it’s working.
Do you have any ideas what protect used to be for?
I think if you want to delete stuff outside your project directory. So by default, it doesn’t let you do that
Ah, I think it’s a bit different than what I described: https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L305-L308
@pupeno: By the way, did the vector thing make sense? Basically what clean target does when it sees a vector is:
(get-in project-map [:cljsbuild :builds :app :compiler :output-dir])
Yeah, it did. I was just confused about :target-path.