This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-29
Channels
- # beginners (29)
- # boot (17)
- # calva (1)
- # cider (31)
- # cljs-dev (3)
- # clojure (169)
- # clojure-europe (1)
- # clojure-france (1)
- # clojure-russia (40)
- # clojure-serbia (3)
- # clojure-uk (42)
- # clojurescript (19)
- # clr (3)
- # core-async (7)
- # core-typed (3)
- # cursive (43)
- # datascript (4)
- # datomic (2)
- # dirac (4)
- # emacs (2)
- # fulcro (85)
- # funcool (1)
- # nrepl (5)
- # off-topic (14)
- # shadow-cljs (28)
- # spacemacs (5)
- # tools-deps (2)
@heefoo you cannot currently publish libs with shadow-cljs. need another tool for that, I use lein
. no need to compile anything, just need to publish the source files themselves
so basically only need a project.clj
with :dependencies
and :source-paths
. nothing else.
I havent done any lib writitng but if i remember correctly there are other entries in project.clj i should have for a lib project
(defproject my-lib "0.1.0"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url ""}
:dependencies [[some/thing "1.2.3"]]
:source-paths ["src/main"])
just continue using shadow-cljs.edn
for everything else and just use project.clj
for publishing
Hi! I have a “library” for my Fulcro project in the main
directory, i.e. src/main/my_project/core/lib.cljc
. I would like to test it using devcards, so I created a file src/cards/my_project/core/lib.cljs
(mirroring the main
tree). I thought I would be apple to access methods define in my lib.cljc
file but it looks like it’s not getting compiled as part of shadow-cljs watch cards
. How can I remedy this?
(I am posting my question here as well as on #fulcro as I think the answer is shadow-related)
I solved the problem by renaming my cards namespace to lib_cards
, after which I could import the core/lib.cljc
namespace and take it from there. I would rather have both share the same namespace though, so my question still stands 🙂
@hmaurer 2 files can't share the same namespace. that is only allowed if one is a macro namespace.
@thheller I had two files shared the same namespace, which didn’t work, so I renamed them. But now I’m getting “undefined function” errors everywhere. I assume this is a cache issue? (aka I should clear .shadow-cljs
)?
hi, i’m having some trouble getting dirac to work with shadowcljs
using this as a guide: https://github.com/thheller/shadow-cljs/issues/167
anyone have any luck with this?
i think some sort of middleware being loaded by shadow is conflicting with the dirac one
We detected unexpected middleware setup in your nREPL server at <nrepl://localhost:8230>!