lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
richiardiandrea 2017-11-08T00:21:08.000173Z

@dominicm it is just a simple require, but you have to setup the module's package.json (`macrovich` in this case) in order for lumo to find your namespaces, more details here https://github.com/anmonteiro/lumo/issues/130

dominicm 2017-11-08T00:49:14.000324Z

Awesome!

2017-11-08T10:15:14.000364Z

I wonder if we should hold out a database of lumo packages hosted on npm...

dominicm 2017-11-08T10:17:36.000415Z

Could we tag them?

👍 1
dominicm 2017-11-08T10:17:42.000093Z

and then do it that way

dominicm 2017-11-08T10:17:50.000429Z

that's how other npm packages work

2017-11-08T11:48:11.000010Z

You mean keywords? Another idea would be prefixes like gulp-insertnamehere, but lumo-insertnamehere. Don't know, I just worry that packages that can save me the time to write interop functions won't be found.

dominicm 2017-11-08T12:31:41.000010Z

keywords probably sounds right

2017-11-08T12:53:00.000306Z

I'd like to see someone make lumo-express and lumo-electron, throwing ideas out there 🙂

2017-11-08T16:39:44.000041Z

yes, I'd always welcome writing my code (function arg) instead of (.method (js/require "package") arg), and more example where the interop can be abstracted to clojure records/methods and simple functions. But I get your point.

richiardiandrea 2017-11-08T19:57:32.000623Z

that's a good point actually, there is a distinction between cljs lumo packages and javascript lumo packages at the moment

👍 1
richiardiandrea 2017-11-08T19:58:30.000377Z

the former will contain only clj/cljs/cljc files...and it can be required with normal (ns myns.core (:require [...]))

richiardiandrea 2017-11-08T19:59:34.000433Z

the latter (the whole npm minus one package - macrovich) can be required with eithr js/require (old way) and (:require [bunyan[) (new way) and contains JS code

richiardiandrea 2017-11-08T20:00:17.000781Z

for JS consumption, we could compile packages down in a package.json script: {"prepare"} step

souenzzo 2017-11-08T23:35:13.000083Z

But is a work in progress feature on cljs require "native" js as in java https://clojurescript.org/news/2017-07-12-clojurescript-is-not-an-island-integrating-node-modules