This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-18
Channels
- # announcements (5)
- # aws (14)
- # babashka (5)
- # beginners (39)
- # brompton (9)
- # chlorine-clover (10)
- # cider (2)
- # clj-kondo (107)
- # cljfx (2)
- # cljsrn (7)
- # clojure (40)
- # clojure-australia (2)
- # clojure-conj (5)
- # clojure-europe (11)
- # clojure-japan (2)
- # clojure-nl (3)
- # clojure-spec (1)
- # clojure-uk (6)
- # clojurescript (8)
- # cursive (20)
- # datahike (6)
- # degree9 (2)
- # deps-new (2)
- # development-containers (11)
- # fulcro (26)
- # jobs (1)
- # joker (1)
- # kaocha (1)
- # lambdaisland (1)
- # malli (6)
- # membrane (1)
- # nbb (1)
- # news-and-articles (2)
- # off-topic (3)
- # pedestal (23)
- # re-frame (19)
- # reagent (6)
- # sci (110)
- # shadow-cljs (7)
- # tools-deps (9)
- # xtdb (20)
I'm experimenting with shadow-cljs run from clj, and I noticed I can't run pom
action
$ clj -Sdeps '{:deps {thheller/shadow-cljs {:mvn/version "2.15.4"}}}' -M -m shadow.cljs.devtools.cli pom
Unknown action.
compile
watch
work fine, but pom
doesn't. Any idea what is wrong with this call?This is how the help looks like:
$ clj -Sdeps '{:deps {thheller/shadow-cljs {:mvn/version "2.15.4"}}}' -M -m shadow.cljs.devtools.cli -h
Usage:
shadow-cljs <action> <zero or more build ids>
Supported actions are:
compile - ...
watch - ...
check - ...
release - ...
classpath - ...
node-repl - ...
browser-repl - ...
cljs-repl - ...
clj-repl - ...
clj-eval - ...
clj-run - ...
run - ...
info - ...
pom - ...
npm-deps - ...
test - ...
aot - ...
init - ...
help - ...
server - ...
start - ...
stop - ...
restart - ...
Options:
-----
--npm internal, used by the shadow-cljs npm package
-d, --dependency DEP adds an additional dependency (eg. -d foo/bar:1.2.3 -d another/thing:4.0.0)
--config-merge DATA merges additional EDN data into the build config
-A, --aliases ALIASES adds aliases for use with clj, only effective when using deps.edn
--source-maps temporarily enable source-maps for release debugging
--pseudo-names temporarily enable pseudo-names for release debugging. DO NOT SHIP THIS CODE!
--debug enable source-maps + pseudo-names. DO NOT SHIP THIS CODE!
--stdin clj-eval from stdin
-v, --verbose verbose build log
--force-spawn spawn new process, do not connect to running server
--cli-info prints a bunch of information
--via VIA internal option, used by node script
-h, --help
-----
So theoretically the pom
is supported. but for some reason it doesn't work.pom
is done by the npm shadow-cljs
script and only works when using shadow-cljs.edn
. Otherwise there is no point and so the JVM code doesn't support it.
I had shadow-cljs.edn in the project, and yes, using npm shadow-cljs pom
worked fine for me. I've just thought there is a parity between js and jvm version
you seem to be misunderstanding something here. what do you mean by "js and jvm version"?