This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-21
Channels
- # announcements (3)
- # aws (8)
- # babashka (14)
- # beginners (39)
- # biff (22)
- # cider (5)
- # clj-kondo (1)
- # cljs-dev (12)
- # cljsjs (4)
- # clojure (16)
- # clojure-europe (47)
- # clojure-germany (6)
- # clojure-uk (2)
- # clojurescript (36)
- # core-async (29)
- # cursive (19)
- # datalevin (14)
- # etaoin (10)
- # helix (1)
- # hyperfiddle (6)
- # introduce-yourself (5)
- # kaocha (43)
- # keechma (1)
- # lsp (7)
- # nbb (68)
- # new-channels (1)
- # off-topic (12)
- # pathom (11)
- # quil (14)
- # rdf (3)
- # re-frame (5)
- # reitit (6)
- # shadow-cljs (88)
I seem to remember someone writing something for Babashka that would set up a new project directory with a single command. Did I imagine this, or does such a thing exist, please? Note: this is easy to write, but I’m looking for something that I can point a beginner at and say, “Run this command”.
@U051N6TTC This is usually what clj-new / deps-new are used for. But I think you might mean #babashka-neil which doesn't set up a project, but adds things to projects, like build.clj
file
+1 for deps-new
. Much easier to write templates for. The (obvious) downside is the incompatibility with lein
templates.
I used to tell people to download Leiningen, and then use lein new app
. But the world has moved on, and deps.edn is how these things ought to be done now. But telling a person who is new to Clojure to create a deps.edn
file, create src and test directories and reference them in the deps file… this is so 2000, and not the hallmark of a modern language.
> deps.edn is how these things ought to be done now That's an opinion though. Lein still works fine and is way more accessible for new people. I don't think it's necessarily wrong to still recommend it
I do feel like there is a push to build around deps.edn now. So I’ve been trying to put the effort in to make sure I’m learning it. But when it comes to large projects, I still like the comfort and ease of Leiningen. (Asami will never not be a Lein project)