figwheel-main 2022-03-04

Hi All, I am looking for a "Create-FighwheelMain-Reagent-Reframe-App" tool. Or , such a barebones project repo. Can someone help.

I use this template for figwheel-main and reagent projects, works very well https://github.com/bhauman/figwheel-main-template

Hi John, thank you. I was following Figwheel documentation and started using cljtools based project. Somewhere along the line, the build broke. Besides, the fighwheel documenttion does not show how to add Reagent, Reframe to the project when using clj tools instead of leiningen..

I will try this and update.

clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag "v1.2.381"}' :as clj-new

$ clojure -X:new clj-new/create :template figwheel-main :name bse/core :args '["+npm-bundle","+bare-index","+deps","--reagent"]' Namespace could not be loaded: clj-new

It is unable to find clj-new, even though I installed it

Not sure what I messed up

This worked: clojure -Tclj-new create This did not work: X:new

An example that adds options with template

clojure -Tclj-new create :template figwheel-main :name practicalli/landing-page :args '["--reagent"]'

In my practicalli/clojure-deps-edn I use an alias rather than install the tool. The alias calls the creat function, so it doesn't need to be specified

clojure -T:project/new :template figwheel-main :name practicalli/landing-page :args '["--reagent"]'

Thank you. I will check it.

i have a small project which is running in prod, now I am writing frontend code to it, Wanted to do it in figwheel, Is there any lein command which converts it to figwheel project ?

I don't think so but look at figwheel-main-template

yeah I started adding dependency manually, works as expected

thanks for your response

Let me know if something doesn't work. I've been converting an old project from lein-figwheel to figwheel-main and had to solve a bunch of issues so maybe I can help

or I just have to add dependencies to convert?