Fork me on GitHub
#figwheel-main
<
2023-01-10
>
kennytilton21:01:21

Background: I am trying to make a fresh start with a CLJS project that started with lein mies and then, after a half-baked attempt to switch to figwheel broke on the build, and now I am trying to get that project going again, while at the same time exploring the CLJS build field. Constraint: I do not want to involve React directly or indirectly thru Reagent et al. My plan is to get a minimalist hello world going and then grow back the original project just by copying in the original source. Working from the figwheel template page https://rigsomelight.com/figwheel-main-template/ I managed to get a lein-based minimal project running. yay. Then I tried the deps variant:

$ clj
Clojure 1.11.1
user=> ^C
$ clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.4.13"}' :as new
Installed new
$ clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag "v1.2.399"}' :as clj-new
Installed clj-new
$ clj -X:new clj-new/create :template figwheel-main :name yourname/hello-world :args '["--reagent"]'
Namespace could not be loaded: clj-new
I installed both clj-new and deps-new because the figwheel doc specifically mentioned clj-new, but the clj-new doc recommended deps-new. 🤷 Am I missing sth trivial? Mind you, I am just being a lazy sod and trying to get away with a quick start. I will go with the full tutorial after a quick lazy look at shadow-cljs quick starts.

kennytilton00:01:15

Full tutorial went fine. Nice doc! 👏