Fork me on GitHub
#lambdaisland
<
2020-09-28
>
Adam Helins15:09:18

Hey, is there a hack for using garden-watcher with CLJC files? This would be quite useful, for instance for sharing a color palette between static files and dynamic components.

plexus16:09:06

seems like ".clj" is hard coded at the moment, I guess we weren't thinking of cljc back then. A PR would be more than welcome! https://github.com/lambdaisland/garden-watcher/blob/master/src/garden_watcher/core.clj#L12-L18

Adam Helins16:09:35

Yes, the issue I see is that converting namespaces to filenames is tricky with more than one extension allowed (ie. what if there are both a CLJ and a CLJC file?). The PR should allow for directly specifying filenames. I don't have time at the moment but I could open an issue and add it to my (long) todo list

dominicm19:09:10

Clojure has a behavior when there's both.