This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-07
Channels
- # announcements (2)
- # asami (2)
- # babashka (15)
- # babashka-sci-dev (31)
- # beginners (130)
- # boot (4)
- # cider (5)
- # circleci (12)
- # clj-kondo (10)
- # cljs-dev (8)
- # clojure (7)
- # clojure-czech (14)
- # clojure-europe (19)
- # clojure-france (5)
- # clojure-uk (2)
- # clojured (23)
- # clojurescript (11)
- # conjure (8)
- # datomic (5)
- # emacs (1)
- # etaoin (8)
- # events (2)
- # fulcro (10)
- # graalvm (18)
- # gratitude (1)
- # holy-lambda (16)
- # honeysql (4)
- # introduce-yourself (1)
- # jobs (2)
- # kaocha (3)
- # london-clojurians (1)
- # lsp (53)
- # off-topic (16)
- # other-languages (2)
- # pathom (4)
- # pedestal (3)
- # podcasts-discuss (1)
- # portal (10)
- # re-frame (69)
- # reitit (2)
- # shadow-cljs (11)
- # vim (7)
- # xtdb (29)
shadow-cljs does not update page when my public/index.html is changed. Do I need to do something to get it to hot reload?
html is not looked at or reloaded. you have to do that yourself. as in press f5 😉
@i your CLJS dependencies declaring them as dependencies via :npm-deps
in deps.cljs
files. you can skip the installation by setting :npm-deps {:install false}
in shadow-cljs.edn
well something using markdown I guess. in shadow-cljs clj-repl
you can call (shadow.cljs.devtools.server.npm-deps/get-deps-from-classpath)
. that should tell you where it comes from
can someone help me figure out this thing? I have some cljs tests :target :karma
. They are running fine locally, but for whatever reason npx shadow-cljs compile :test
failing on GitHub Actions.
Here's some log output:
##[group]Run npx shadow-cljs compile :test
shell: /usr/bin/bash -e {0}
env:
JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/18.0.1-10/x64
CLOJURE_INSTALL_DIR: /opt/hostedtoolcache/ClojureToolsDeps/latest.0.0-3-6/x64/lib/clojure
##[endgroup]
shadow-cljs - config: /home/runner/work/iroh-front-end/iroh-front-end/shadow-cljs.edn
shadow-cljs - starting via "clojure"
WARNING: Use of :main-opts with -A is deprecated. Use -M instead.
Unknown option: "-m"
Unknown option: "--npm"
USAGE:
clj -m cognitect.test-runner <options>
-d, --dir DIRNAME Name of the directory containing tests. Defaults to "test".
-n, --namespace SYMBOL Symbol indicating a specific namespace to test.
-r, --namespace-regex REGEX Regex for namespaces to test.
-v, --var SYMBOL Symbol indicating the fully qualified name of a specific test.
-i, --include KEYWORD Run only tests that have this metadata keyword.
-e, --exclude KEYWORD Exclude tests with this metadata keyword.
-H, --test-help Display this help message
Clojure version is the same (via DeLaGuardo/[email protected]
); shadow-cljs version is the same (`2.19.1`) - both in deps.edn and in package.json. jdk version is the same; node version is the same. Why is it failing?I think I solved it. I moved shadow-cljs dependency to an alias, as described here: https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn