This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-30
Channels
- # aws (1)
- # bangalore-clj (2)
- # beginners (64)
- # boot (29)
- # cider (4)
- # clara (14)
- # cljsjs (22)
- # cljsrn (24)
- # clojure (248)
- # clojure-austin (5)
- # clojure-berlin (1)
- # clojure-china (5)
- # clojure-france (1)
- # clojure-greece (1)
- # clojure-italy (2)
- # clojure-korea (6)
- # clojure-russia (76)
- # clojure-spec (2)
- # clojure-uk (59)
- # clojurescript (67)
- # cursive (12)
- # datascript (6)
- # datomic (126)
- # defnpodcast (2)
- # devcards (1)
- # docker (1)
- # events (2)
- # hoplon (14)
- # leiningen (1)
- # luminus (2)
- # midje (2)
- # mount (1)
- # off-topic (4)
- # om (6)
- # onyx (8)
- # parinfer (2)
- # perun (6)
- # proton (5)
- # re-frame (41)
- # reagent (6)
- # ring-swagger (3)
- # rum (1)
- # spacemacs (10)
- # specter (12)
- # yada (25)
so, it's interesting how writing (js/document.body.appendChild domEl)
works I thought I will have to write this differently
turns out that data access for objects designed for a C-style syntax language are useful to have infix operations for đ
you can use (.. js/document -body (appendChild domEl))
if it makes you feel more lispy (i think that syntax is right)
I'm wondering, has anyone ever given any though to building clojurescript tooling that works with or uses native js tools like yarn/gulp rather than lein? How about publishing cljs libraries to npm?
@mikeb npm
is somewhat at odds with what cljs/closure want to do .. so publishing cljs libaries on npm is a bad idea
yeah, it's only possible if you decide ahead what you want to use, compile everything together and put it up
because for example when i wanted to use datascript and mori from javascript, i needed this: https://github.com/typeetfunc/datascript-mori/
yeah exactly everything from the CLJS side should be bundled together and compiled separately
so the cljs things live happily in the cljs world without getting to close to the node world
https://github.com/typeetfunc/datascript-mori/blob/master/src/datascript_mori/core.cljs
since all of https://github.com/typeetfunc/datascript-mori/tree/master/release-js is done for you
Is it possible to get the docstring of the current namespace from CLJS (ie, not from a macro context)?
runtime metaprogramming stuff around nses & vars are not portable between Clojure/ClojureScript
Yeah, I don't need it to be portable, just to get to it. I'd like to use the ns docstring in a devcard
@peeja well in theory it should work - I havenât seen requests for getting at this kind of ns info at runtime so it may be that information is missing - you should try it and report if it doesnât work for some reason
Hopefullly I get a documentation reference to answer my question. Given an existing Javascript nodejs framework... How would I create a plugin written in Clojurescript? Particularly the framework I care about is https://webgme.org/ but any highly opinionated framework, like http://nodeframework.com/index.html#full-stack, would face the same issues.
@phreed regular ClojureScript just isnât well suited for creating JS plugins, bootstrapped ClojureScript on Node.js maybe - but thatâs a community effort and still very new
Anyone have a good Gist or other hints on doing http GET or POSTs from raw nodejs interop? I am trying to use AWS lambda, and it doesnât support xmlhttpRequest, thus no cljs-http..
@fingertoe Node.js has standard libraries for that