Fork me on GitHub
#lumo
<
2018-05-30
>
hlolli00:05:13

@borkdude this probably won't work with native node modules. But I'm also not sure what your use case is, just throwing it out there.

borkdude07:05:22

I have no idea how native node modules work

borkdude07:05:39

but yeah it would probably break down there

borkdude10:05:50

so for now the deps + deploy on server probably is going to be: git pull, yarn install and for running, just lumo + some options

borkdude11:05:58

btw, I would assume native modules would also break the single js file deploy

hlolli11:05:01

The nice thing about wasm, is that you can convert the binary to a base64 and bundle it in single js file. But yeh, no way with native modules.

borkdude17:05:50

is anyone using cljs-ajax on node perhaps?

borkdude18:05:47

tried promesa, but their alet macro is not supported in self-hosted cljs

richiardiandrea18:05:27

@borkdude I am on a quest to post stuff to self-host, promesa is on my list but it is a difficult horse to tame

borkdude18:05:12

I used got for now

borkdude18:05:25

(.then (got WEATHER_API #js {:json true})
       #(let [body (js->clj (.-body %)
                            :keywordize-keys true)]
          ...))

johanatan20:05:58

does anyone see the problem here?:

ip-192-168-100-202:scripts jonathan$ lumo -sfKq --classpath `pwd`:/Users/jonathan/.m2/repository/clj-time/clj-time/0.14.2/clj-time-0.14.2.jar -A error
cljs.user=> 
cljs.user=> (require '[clj-time.core :as t])
No such namespace: clj-time.core, could not locate clj_time/core.cljs, clj_time/core.cljc, or JavaScript source providing "clj-time.core"

richiardiandrea20:05:13

@johanatan I am not sure that lib is self-host compatible

johanatan20:05:40

it's the canonical example on the deps.edn announcement on http://clojure.org

borkdude20:05:34

or moment, which is a fine js lib

richiardiandrea20:05:01

Typically Clojure does not work in self-host ootb - first problem is the namespace, should be .cljs, second problem is if there are macros involved

richiardiandrea21:05:04

having fun 😄

borkdude21:05:42

yeah, could probably make snake or tetris with this 😉

hlolli22:05:34

ha ha ha! I like!