Fork me on GitHub
#deps-new
<
2021-06-22
>
Chase19:06:30

Is there a list of user created templates using clj-new? I'm looking for a full stack template with ring/reitit/integrant on the backend run through deps.edn and reagent/re-frame ran through shadow-cljs on the frontend. I found some repos from https://github.com/prestancedesign but wanted to see if I could get my own similar app started with clj-new

seancorfield20:06:25

@chase-lambert In the readme, under Templates https://github.com/seancorfield/clj-new#templates there are links to searches on Clojars for templates.

seancorfield20:06:12

Remember that you can use clj-new to create projects from lein templates as well as clj templates — but you would likely end up with project.clj instead of deps.edn and you’d have to convert the project yourself.

seancorfield20:06:04

Compared to Leiningen, this is still all a bit new, so there are only 30 clj templates listed on Clojars right now.

seancorfield20:06:52

shadow-cljs seems to be “its own thing” for frontend stuff — looking at its doc page I see almost no mention of either project.clj/`lein` or deps.edn/CLI. I know you can use Figwheel Main with the CLI and deps.edn. And obviously you can build your backend with the CLI/`deps.edn`.

Chase20:06:50

Thanks for the guidance. I'm leaning towards just starting from absolute scratch and actually learning my tools here. I will explore Figwheel Main, I haven't tried that yet. I know shadow cljs "just works" with my editor (nvim + conjure) but I'm sure I can get the same with Figwheel Main and then I get to use deps.edn to run all of it huh?

seancorfield20:06:25

Yeah, I am dabbling in cljs again these days — after a long break — and I felt Shadow was too npm-heavy for my tastes, so I liked the streamlined approach of Figwheel Main and was able to get up and running with the CLI / deps.edn on that, just following the docs, without a template.

Chase21:06:00

Side question as I am rolling my own, clj-new provides a pom.xml file. I'm gathering from skimming the docs that this is if I was planning on submitting to clojars? (I'm not)

seancorfield23:06:01

@chase-lambert Right, pom.xml files are only needed if you plan to deploy a library to Maven/Clojars.

seancorfield23:06:31

(and it is not needed if you are building an app rather than a library)