This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-21
Channels
- # beginners (82)
- # bitcoin (1)
- # boot (38)
- # cider (6)
- # cljs-dev (13)
- # cljsrn (5)
- # clojure (320)
- # clojure-italy (22)
- # clojure-losangeles (6)
- # clojure-russia (55)
- # clojure-spec (25)
- # clojure-uk (48)
- # clojurescript (64)
- # component (16)
- # core-async (6)
- # cursive (54)
- # data-science (2)
- # datascript (2)
- # datomic (8)
- # docker (1)
- # ethereum (1)
- # fulcro (1)
- # garden (1)
- # graphql (16)
- # heroku (6)
- # hoplon (12)
- # jobs (4)
- # juxt (1)
- # leiningen (9)
- # off-topic (39)
- # om (13)
- # om-next (2)
- # onyx (9)
- # pedestal (2)
- # portkey (12)
- # re-frame (25)
- # reagent (6)
- # ring-swagger (4)
- # schema (1)
- # shadow-cljs (10)
- # spacemacs (11)
- # testing (19)
- # uncomplicate (1)
- # unrepl (6)
- # vim (21)
- # yada (3)
@dnolen can you please give me a brief info about this https://dev.clojure.org/jira/browse/CLJS-2298
@lxsameer CLJS-2298 alludes to a similar feature in Clojure, where a user.clj
file at the root of the classpath will be auto-loaded when starting a REPL. Where Clojure users often have an (ns user)
with useful definitions, ClojureScript users might more often define a (ns cljs.user)
namespace in that file, but that is really just a convention, orthogonal to the fact that user.(cljs|cljc)
files in the root of the classpath should be automatically loaded upon REPL startup.
@mfikes so basically try to load cljs.user instead of user if there was such a namespace
Any user.cljs
and user.cljc
files that reside at the root of the Java classpath should essentially be subjected to load-file
, I would imagine
I would actually consult with what the bare Clojure REPL does with user.clj
for specifics
iirc it’s not a REPL feature, it’s part of the Clojure RT to find and load user.clj from the classpath if it exists
prob has never been updated to look at user.cljc, so that’s a reasonable enhancement
I've been working on getting Figwheel and ReactNative to play nicely, and its starting to become apparent that the targets for JS are just going to keep coming, and maybe we should think in terms of a separate/pluggable post compilation step that packages up a :main
entrypoint for a specific platform