figwheel-main

manas_marthi 2022-03-04T10:19:09.975189Z

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

practicalli-johnny 2022-03-04T10:24:30.916279Z

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

manas_marthi 2022-03-04T10:34:26.645049Z

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_marthi 2022-03-04T10:35:51.167629Z

I will try this and update.

manas_marthi 2022-03-04T10:51:13.221419Z

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

manas_marthi 2022-03-04T10:52:03.813599Z

$ 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_marthi 2022-03-04T10:52:24.393819Z

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

manas_marthi 2022-03-04T10:52:34.566899Z

Not sure what I messed up

manas_marthi 2022-03-04T12:02:22.095489Z

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

practicalli-johnny 2022-03-04T12:51:00.356599Z

An example that adds options with template

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

practicalli-johnny 2022-03-04T12:53:01.428049Z

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

practicalli-johnny 2022-03-04T12:53:44.118139Z

There are some other examples here https://github.com/practicalli/clojure-deps-edn#create-new-projects-from-templates

manas_marthi 2022-03-04T13:03:44.037859Z

Thank you. I will check it.

popeye 2022-03-04T18:32:27.370189Z

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 ?

jumar 2022-03-04T19:21:34.388489Z

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

popeye 2022-03-04T19:36:46.878169Z

yeah I started adding dependency manually, works as expected

popeye 2022-03-04T19:36:51.598499Z

thanks for your response

jumar 2022-03-04T19:54:43.514739Z

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

popeye 2022-03-04T18:36:40.282109Z

or I just have to add dependencies to convert?