-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLJC files are incompatible with ClojureScript #26
Comments
sorry for the confusion. I did plan (defn exists? [path]
(fs/existsSync path))
(defn file? [path]
(.isFile (fs/lstatSync path)))
(defn directory? [path]
(.isDirectory (fs/lstatSync path)))
;; ...
(defn slurp [filename & {:keys [encoding]}]
(when (exists? filename)
(.toString
(if encoding
(fs/readFileSync filename encoding)
(fs/readFileSync filename))))) but what if it's not Node. and since I did not need it myself, time invested was minimal, but I did get to rename files to |
I think node makes the most sense, seeing as it has a large ecosystem and good support in some cljs build tools like shadow-cljs. But I could be biased :P |
I agree with @levitanong. |
Support for Node.js would be great, e.g. to be able to run Puppeteer from ClojureScript with more code sharing with a main server in Clojure. Having the same code for reading configuration in both cases would unify the setup a bit. |
I'm seeing use of java-only features, so I'm confused as to why the sources are in
.cljc
. Is clojurescript support planned?The text was updated successfully, but these errors were encountered: