Fork me on GitHub
#tools-deps
<
2022-03-19
>
mruzekw16:03:42

Is there a clojure.spec for deps.edn? I'm working if you can compose aliases in the deps.edn file

borkdude17:03:56

@mruzekw you can't compose them as in make one alias that consists of the merge of two other aliases

mruzekw17:03:20

Thanks. The idea was to be able to compose up simple commands for common workflows without having to think about what's needed upfront. So for instance, have a :env/dev specifying all dev deps/paths, and :dev using that definition in addition to a :main-opts Allows for a simple clj -M:dev entry point, while also allowing reuse of :env/dev separately.

borkdude17:03:34

yeah, you can right now only compose that on the command line, like clj -M:env/dev:dev

mruzekw17:03:42

Gotcha :thumbsup: Thanks

mruzekw18:03:05

Looks like I could achieve something similar with tools.build

dergutemoritz12:03:46

FTR, there is a ticket about this feature request: https://clojure.atlassian.net/browse/TDEPS-220

😍 1
mruzekw16:03:59

Nice! Having this feature would be awesome. For now I'm using tools.build and https://github.com/seancorfield/build-clj to create a simple singular interface for all tasks. My goal is for it to appeal to beginners.

clj -T:build run
clj -T:build run-dev
clj -T:build test
...
I'm building that out here for now: https://github.com/mruzekw/clojure-starters/tree/master/skaffold-dev