This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-16
Channels
- # aleph (2)
- # announcements (1)
- # beginners (162)
- # calva (16)
- # cider (37)
- # cljdoc (9)
- # cljs-dev (2)
- # cljsrn (3)
- # clojure (86)
- # clojure-dev (17)
- # clojure-europe (3)
- # clojure-houston (1)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-spec (10)
- # clojure-uk (20)
- # clojuredesign-podcast (15)
- # clojurescript (7)
- # data-science (14)
- # datascript (1)
- # datomic (5)
- # emacs (8)
- # figwheel-main (8)
- # fulcro (25)
- # graalvm (1)
- # jobs (10)
- # jobs-discuss (4)
- # keechma (14)
- # leiningen (2)
- # off-topic (31)
- # onyx (1)
- # other-languages (4)
- # pathom (4)
- # pedestal (1)
- # re-frame (20)
- # remote-jobs (4)
- # shadow-cljs (25)
- # sql (6)
- # tools-deps (15)
- # vim (18)
- # xtdb (9)
@deleted-user we usually put them under the dev/
directory
We include the dev path when running lein repl and then yeah load them in via the editor or tools.namespace refresh.
@deleted-user Definitely somewhere in a development path so they don't get compiled into the app or uberjar. Like @nate mentioned, our default choice is dev/fiddle
.
Ah yes. lein
has tons of options. What I mean by "dev path" is a path that is only included when you run the repl. In lein, that would be the :dev
profile. Let me get an example....
So I have this inside my project.clj
file:
:profiles
{:uberjar
{:aot :all}
:dev
{:resource-paths ^:replace
["dev" "resources"]
:plugins
[[lein-ancient "0.6.15"]
[jonase/eastwood "0.2.6"]]
:dependencies
[[org.clojure/tools.namespace "0.2.11"]
[com.stuartsierra/component.repl "0.2.0"]]
:eastwood
{:add-linters [:keyword-typos :unused-namespaces :unused-private-vars]}
}})
This is the closest we have to a "demo" right now: https://github.com/app-sauce/fiddle-driven-development-2018-talk