This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-03
Channels
- # aleph (1)
- # beginners (42)
- # boot (34)
- # cider (157)
- # cljs-dev (12)
- # cljsrn (3)
- # clojure (165)
- # clojure-conj (1)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-russia (20)
- # clojure-spec (27)
- # clojure-uk (173)
- # clojurescript (116)
- # cursive (30)
- # datomic (87)
- # devcards (1)
- # docs (9)
- # emacs (2)
- # ethereum (2)
- # events (2)
- # fulcro (60)
- # graphql (10)
- # hoplon (2)
- # jobs-rus (6)
- # keechma (1)
- # lein-figwheel (9)
- # leiningen (36)
- # luminus (2)
- # mount (3)
- # off-topic (16)
- # om (14)
- # onyx (12)
- # pedestal (19)
- # portkey (107)
- # re-frame (9)
- # reagent (5)
- # ring (26)
- # shadow-cljs (149)
- # spacemacs (3)
- # sql (6)
hey guys is there something in lein that will reload my app when there are changes? so i don't have to ctrl + c and restart?
Although editors with repl functionality usually have the ability to reload a namespace
Also, be aware that reloading on save may cause issues if you're not completely sure of what you're saving
If you're running an editor with repl integration, they usually have a motion to send the current form off, so full namespace reload is only usually needed when playing with protocols and other fun things
thanks for all the advice, i'm gonna check out some of the plugins and see how bad it could possibly be
Oh, if you're running a ring
server you'll want the reload middleware from that instead
Reloading the namespace changes the functions, but not the ones attached to the routes
hey folks, is there an easy way to swap the name of my jar and uberjar in lein?
say :jar-name foo-min-SNAPSHOT-1.1.jar and :uberjar-name foo-SNAPSHOT-1.1.jar?
assuming project name is foo
@markbastian yes, you can customize the jar & uberjar names. See https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L400-L404
;; Including %s will splice the project version into the filename. :jar-name "sample.jar"
so, does this mean I can do "sample-%s.jar" for example?
are other project variables available, like in maven (e.g. http://books.sonatype.com/mvnref-book/reference/resource-filtering-sect-properties.html)?
it appears only :version
is supported. Here’s the source code of that: https://github.com/technomancy/leiningen/blob/0edda36f63a3f714230fe93104f9eff7174ccba7/src/leiningen/jar.clj#L221-L222
actually, it looks like :version and :name are both being referenced. I wonder if there's a way to get the project in a repl and dump the map.
You can use the profile in the target directory name, so maybe that too?