lambdaisland

Helins 2020-09-28T15:11:18.001500Z

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.

plexus 2020-09-28T16:07:06.002Z

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

Helins 2020-09-28T16:20:35.004600Z

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

dominicm 2020-09-28T19:33:10.005100Z

Clojure has a behavior when there's both.