Clojurians
#lumo
<
2017-04-02
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

pesterhazy09:04:32

What's my best option for distributing a lumo app? Specifically, a new REPL client: https://github.com/pesterhazy/unravel

pesterhazy09:04:17

Seems like what https://github.com/juxt/mach is doing might be a good option (install via npm)

dominicm09:04:24

@pesterhazy #!/usr/bin/env lumo at the top of a main.cljs that you mark as a script/bin in your package.json.

dominicm09:04:40

(or anything.cljs really)

pesterhazy10:04:19

@dominicm how do I require packages then?

dominicm10:04:33

@pesterhazy npm or cljs?

pesterhazy10:04:56

say I have foo.cljs, bar.cljs, and main.cljs

pesterhazy10:04:09

I move main.cljs to bin/unravel with the shebang

dominicm10:04:15

Gotta do this

pesterhazy10:04:40

nah, this one just calls lumo

pesterhazy10:04:57

i.e. not using a shebang

dominicm10:04:33

I know. We used to use a shebang, but then we wanted to do classpath stuff :slightly_smiling_face:

pesterhazy10:04:25

ok so a shell wrapper is the best option?

dominicm10:04:04

For now, yep

pesterhazy10:04:39

man I love copy 'n paste

pesterhazy10:04:46

best programming experience

pesterhazy12:04:39

that worked, thanks @dominicm, you can install unravel with npm now: https://github.com/pesterhazy/unravel

dominicm12:04:52

Great :smile:. I need to actually try unrepl in practice.

pesterhazy12:04:44

now I know why npm is so popular ... you can actually author a package in just a few minutes. Very smooth