Fork me on GitHub

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


Ah, thank you 🙂


neil add test
neil add build
neil dep add cheshire/cheshire


I think that’s what I was thinking of


But I didn’t know about deps-new! Thanks for that one


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


Personally, I still like lein, but I’ve been using deps.edn for new things


> 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


But I want to add something like neil init or neil new to neil as well


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)


In some projects I use both, especially when it was easier to lein deploy clojars, but with neil add build it's a couple of minutes before I can deploy now too. It's just not an out of the box experience with vanilla deps.edn


it’s the deploy piece that keeps bringing me back to leiningen