This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-18
Channels
- # 100-days-of-code (2)
- # beginners (10)
- # boot (1)
- # calva (8)
- # cider (13)
- # cljdoc (7)
- # clojure (32)
- # clojure-uk (15)
- # clojurescript (9)
- # code-reviews (1)
- # cursive (8)
- # datomic (1)
- # emacs (1)
- # fulcro (9)
- # hoplon (4)
- # nrepl (1)
- # off-topic (30)
- # onyx (2)
- # re-frame (11)
- # reitit (3)
- # shadow-cljs (33)
- # tools-deps (3)
- # vim (5)
I think I don't understand the testing workflow with shadow-cljs yet. I'm used to figwheel-main where I start it up and automatically get two pages I can check: one for the actual app, one for a test hosting page (similar to what I accomplished with shadow-cljs and the :browser-test
target).
I can shadow-cljs watch browser-test
to get this, but then I don't have the app running as well. Do I need 2 watch
processes? Can I combine them somehow? Or should I just use the :node-test
target?
also as separate watch
if you prefer to split the terminals and not have all output in one
Thanks a lot for all the work. I don't regret giving it a try one bit so far. The best thing compared to what I used before is how blazingly fast the hot reloading is.
Is there a (default) way to get notifications about the test results in the second browser tab? That is, maybe change the icon or show a popup once something breaks?
I'm planning to hook up https://github.com/bhauman/cljs-test-display but didn't get to that yet
Ah yes, that's the one that's default in figwheel-main (same author). It looks pretty, but that's not really necessary for me. It's just a convenience.
Hey @thheller, have a barcode lib that’s not behaving https://serratus.github.io/quaggaJS/
(require '["quagga" :default Quagga]) ; default export is nil, as it looks like what's in node_modules, doesn't have a nice index.js, etc
(require '["quagga/dist/quagga" :default Quagga])
; blows up with
failed to resolve: ./config.node.js from /Users/erichkoliphant/Dropbox/projects/jv-consumer/node_modules/quagga/dist/quagga.js
{:relative-to #object[java.io.File 0x400fd1fa "/Users/erichkoliphant/Dropbox/projects/jv-consumer/node_modules/quagga/dist/quagga.js"], :entry "./config.node.js"}
ExceptionInfo: failed to resolve: ./config.node.js from /Users/erichkoliphant/Dropbox/projects/jv-consumer/node_modules/quagga/dist/quagga.js
clojure.core/ex-info (core.clj:4739)
clojure.core/ex-info (core.clj:4739)
shadow.build.npm/find-relative (npm.clj:268)
; it works on node and in the browser, guessing that there's something going on with the conditional stuff?
@eoliphant AFACIT (require '["quagga" :as Quagga])
seems to work fine. not sure why it has a default property in node
the files in dist
are not for build consumption and look like standalone builds that you'd include directly via <script>