This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-14
Channels
- # beginners (31)
- # boot (9)
- # cider (10)
- # cljs-dev (9)
- # cljsrn (16)
- # clojure (222)
- # clojure-austin (4)
- # clojure-france (13)
- # clojure-italy (21)
- # clojure-nl (2)
- # clojure-russia (71)
- # clojure-spec (9)
- # clojure-uk (39)
- # clojurescript (50)
- # cursive (16)
- # datomic (69)
- # dirac (2)
- # figwheel (1)
- # graphql (19)
- # hoplon (4)
- # jobs (1)
- # klipse (3)
- # leiningen (4)
- # liberator (3)
- # luminus (9)
- # lumo (9)
- # off-topic (3)
- # om (21)
- # onyx (11)
- # parinfer (2)
- # pedestal (8)
- # planck (19)
- # re-frame (17)
- # reagent (12)
- # remote-jobs (1)
- # ring-swagger (3)
- # spacemacs (17)
- # specter (23)
- # sql (1)
- # unrepl (64)
- # untangled (19)
- # yada (5)
Are there any static analysis tools for cljs yet to find things like unused bindings and otherwise dead code?
1. the (testing "...")
string for a failed test is not outputted, making it pretty pointless to include at all
2. unable to do more than 1 async test in a (deftest)
3. poor error output on exceptions being thrown in tests, but there appears to be an issue for this already: https://github.com/crisptrutski/boot-cljs-test/issues/59
How do you build the clojurescript compiler on Windows?
https://docs.google.com/document/d/1uD5CSxUhDgFGVq6e8Nf0a74DpjKbE3J4D5jyrqiYwa4/edit?usp=sharing
Hmm.. is double-bundle style still the way to go for integrating / experimenting with npm libraries?
Or, really, if I want to live on the bleeding edge, is :npm-deps
viable for non-node.js cljs?
ah damn, this js module relies on builtins (events, util)… not sure how to get around that .. seems browserify / webpack inject shims when they’re required
Hi! I'm using Spacemacs and opened two repl processes: 1- jvm, 2-cljs +figwheel. When I send cljs S-exp to REPL I got a stacktrace, cause S-exp is evaluated in JVM repl. How to send CLJS S-exp to appropriate repl?
tried adding them to npm-deps but didn’t seem to be able to get it to work.. moved on to another similarly-purposed library instead
How to access this
in a js react-component from a Rum component?
I’ve dropped a gist of the problem here: https://gist.github.com/gmp26/619b8bbf0be2244f151e4c5cee01f4bb
Out of interest, what does setting goog.DEBUG
to false
actually do?
you can also use it in your own code to elide some stuff in non-debug builds, this eliding is done by closure compiler, nothing to do with cljs compiler
I prefer to use macros in cljs (when I have full control over the code and it is in ClojureScript), it is more predictable
Ah, thanks @darwin
@weavejester you can use code like this in cljs macros to detect :advanced mode build: https://github.com/binaryage/cljs-oops/blob/dcf6ef5f55ed858016fdd7554adc631dda11e614/src/lib/oops/config.clj#L21-L23
In enfocus, is it possible to use (at ... (html-content ...)) but have the current html-content available?
As in I have five divs with the same class, and for each want to read, transform and store the content back into the div
Not sure if this has been discussed. As of Firefox 54 Dirac/Devtools should now work in Firefox 🎉
@darwin I'm sure you can also use the fact there's an additional sidebar api added if Fx. https://hacks.mozilla.org/2017/06/firefox-54-e10s-webextension-apis-css-clip-path/
Dirac is not going to work, I cannot imagine this could be possible except for Firefox to use Chromium codebase and change the icon 😉
doesn't look like this could happen anytime soon: https://bugzilla.mozilla.org/show_bug.cgi?id=1262914
(defn simple-component [] [:div [:p "I am a component!"] [:p.someclass "I have " [:strong "bold"] [:span {:style {:color "red"}} " and red "] "text."]])
That's client side routing, not server side
You should probably have a link that points to specified route
@roman01la Thank you. I found a handler.clj in which I added the following and now I see the page.