This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-30
Channels
- # announcements (5)
- # babashka (2)
- # beginners (85)
- # cider (59)
- # cljs-dev (2)
- # clojure (10)
- # clojure-europe (61)
- # clojure-gamedev (20)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (5)
- # cursive (24)
- # data-science (4)
- # datascript (8)
- # emacs (1)
- # fulcro (8)
- # graalvm (30)
- # gratitude (9)
- # hyperfiddle (71)
- # introduce-yourself (1)
- # jackdaw (1)
- # leiningen (8)
- # london-clojurians (1)
- # missionary (3)
- # other-languages (10)
- # pathom (8)
- # pedestal (18)
- # polylith (4)
- # proletarian (5)
- # reitit (7)
- # releases (4)
- # ring (8)
- # sci (10)
- # shadow-cljs (27)
- # squint (3)
- # tools-deps (2)
- # xtdb (17)
Given the public documentation of the Polylith core API (with api-version
, projects-to-deploy
, and workspace
) for use in build.clj
scripts etc, has any thought been given to making some of the poly
commands available as functions in that API? check
and test
seem like good candidates (to me) -- especially since the test runner contract is also part of the public, documented API (although the actual create
function is not -- hence the initial breakage of test runners in 0.2.19-SNAPSHOT!).
Our build.clj
was spawning a new poly
process for changes, which I'm switching to projects-to-deploy
, and we also spawn a new poly
process to run changes from the build script... but it would be nice to be able to just invoke a test
function directly (with an appropriate since:
argument, at a minimum) -- especially given that we use an external test runner for classpath isolation/memory recovery.
I know I can do this sort of thing (with the appropriate require
s):
(let [args (user-input/extract-arguments
(into ["test"] (:main-opts opts)))]
(command/execute-command args))
But I'd prefer to use a public, stable, documented API for this...Yes, I think the time is right to add more functionality to that API. I can make sure we include check
and test
in 0.2.19
to start with. If someone out there feel we should add more, just comment here!