Fork me on GitHub
#figwheel-main
<
2022-03-04
>
manas_marthi10:03:09

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

practicalli-johnny10:03:30

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

manas_marthi10:03:26

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..

manas_marthi10:03:51

I will try this and update.

manas_marthi10:03:13

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

manas_marthi10:03:03

$ 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

manas_marthi10:03:24

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

manas_marthi10:03:34

Not sure what I messed up

manas_marthi12:03:22

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

practicalli-johnny12:03:00

An example that adds options with template

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

practicalli-johnny12:03:01

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"]'

manas_marthi13:03:44

Thank you. I will check it.

popeye18:03:27

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 ?

jumar19:03:34

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

popeye19:03:46

yeah I started adding dependency manually, works as expected

popeye19:03:51

thanks for your response

jumar19:03:43

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

popeye18:03:40

or I just have to add dependencies to convert?