Fork me on GitHub
#clojurescript
<
2018-05-05
>
wei04:05:55

any cljs libs to help you write pop-up libraries like stripe.js? looking to compile the cljs into a js file that can be included in other projects

vigilancetech22:05:05

is there an easy way to list the namespaces available in a cljs repl?

mfikes23:05:42

@vigilancetech Not really. If you happen to be in a self-hosted environment (Lumo, Planck, etc.), you could

(-> @cljs.env/*compiler* :cljs.analyzer/namespaces keys)
and if you are not, you could employ a macro like
(defmacro namespaces []
  `'~(-> @cljs.env/*compiler* :cljs.analyzer/namespaces keys))

mfikes23:05:11

Actually, a simpler solution is to

(defmacro namespaces [] `'~(cljs.analyzer.api/all-ns))

mfikes23:05:06

^ That variant uses stable API

mv23:05:08

Are there any best practice guides or frameworks for making a cljs frontend app?