Fork me on GitHub
#clojurescript
<
2020-05-01
>
Chris McCormick12:05:49

does anybody know if there exists a clojurescript distribution that can be loaded via a <script> tag which will then execute the code in any <script type="application/clojurescript"> tags on the same page? like a zero-tooling distribution for beginners.

Helins13:05:00

Transit CLJS supports metadata right? For some reason write-metadoesn't seem to be doing anything

Helins13:05:11

Damn, :transform is not being called at all, am I doing something terribly wrong?

dnolen14:05:29

@adam678 there seems to be a strange issue with the cljs artifact - you need to explicitly state the transit-js dep to the latest in whatever dep tool you use

Helins14:05:50

Woaw, that one was particularly tricky, works now

henryw37414:05:48

I blogged about how to package Clojurescript libraries which use npm - cross posting here from Clojureverse https://clojureverse.org/t/blog-how-to-package-clojurescript-libraries/5898. Any feedback appreciated 🙂

dnolen14:05:04

@adam678 it's looks like a PEBCAK on my end, @alexmiller is cutting a new release which should be fixed up

dominicm16:05:43

How can I use a function named "delete" from a foreign lib? I'm assuming I'm having problems due to it being a reserved keyword. Trying to use like (Auth/delete)

dnolen18:05:48

@dominicm change your :language-out

dominicm18:05:18

@dnolen what to? It's not set currently. :es6?

dnolen18:05:14

@dominicm sorry misread your last comment

dnolen18:05:23

to whatever ES language allows delete

dnolen18:05:31

I don't know when that was introduced off the top of my head

dominicm18:05:01

Np. I'll have a noodle, thanks.

Spaceman19:05:17

Is there a cljs test runner that works on emacs and not in the browser that offers good navigation between tests and simplifies information about which tests passed and which failed?l

borkdude20:05:43

what is a full list of all tags like number here: (fn [x] (* ^number x 1)) that are handled by the CLJS compiler?

dnolen20:05:40

just number there's a couple of cases where we can't infer where we don't say anything

borkdude21:05:47

ok - thanks

dnolen21:05:09

for ease of interop/porting we do respect ^long and ^double but of course ^long has no real meaning / effect

lilactown22:05:10

what about ^boolean ?

dnolen22:05:13

not numeric

lilactown22:05:08

yeah it wasn’t clear if @borkdude was asking about numerics specifically or all tags

borkdude22:05:17

sorry if I hadn't made that clear. more specifically: all tags that aren't in CLJ, like number