This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-08
Channels
- # bangalore-clj (4)
- # beginners (88)
- # boot (12)
- # cljs-dev (10)
- # cljsjs (1)
- # clojure (284)
- # clojure-denmark (2)
- # clojure-dev (35)
- # clojure-italy (8)
- # clojure-russia (36)
- # clojure-spec (38)
- # clojure-uk (51)
- # clojurescript (145)
- # cursive (6)
- # data-science (1)
- # datomic (8)
- # duct (43)
- # emacs (9)
- # figwheel (2)
- # fulcro (29)
- # graphql (1)
- # immutant (3)
- # instaparse (1)
- # jobs (1)
- # jobs-discuss (1)
- # lumo (16)
- # off-topic (50)
- # onyx (90)
- # re-frame (6)
- # reagent (20)
- # remote-jobs (3)
- # ring-swagger (18)
- # schema (8)
- # shadow-cljs (141)
- # slack-help (3)
- # spacemacs (36)
- # unrepl (7)
- # vim (1)
- # yada (2)
@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
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.
I'd like to see someone make lumo-express and lumo-electron, throwing ideas out there 🙂
all packages on npm are lumo package... as lumo runs on node...
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.
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
that's a good point actually, there is a distinction between cljs lumo packages and javascript
lumo packages at the moment
the former will contain only clj/cljs/cljc
files...and it can be required with normal (ns myns.core (:require [...]))
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
for JS consumption, we could compile packages down in a package.json
script: {"prepare"}
step