deps-new

Chase 2021-06-22T19:28:30.018Z

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

seancorfield 2021-06-22T20:32:25.018900Z

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

seancorfield 2021-06-22T20:33:12.019900Z

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.

seancorfield 2021-06-22T20:34:04.020700Z

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

seancorfield 2021-06-22T20:36:52.022200Z

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

Chase 2021-06-22T20:39:50.024Z

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?

seancorfield 2021-06-22T20:42:25.025200Z

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.

Chase 2021-06-22T21:56:00.027Z

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)

seancorfield 2021-06-22T23:12:01.027600Z

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

seancorfield 2021-06-22T23:12:31.028100Z

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