Fork me on GitHub
#tools-deps
<
2019-08-14
>
Lone Ranger11:08:49

So I'm looking for a command line solution to handling generic tooling tasks such as "bump version number", or "modify deps.edn to add something to :deps" ... do we just write our own scripts to do that sort of thing or is there a canonical solution?

dominicm11:08:02

(and lots of other useful tools there too)

Lone Ranger11:08:26

Also I'm still really curious what the heck a build.clj file is, such this:

(require '[cljs.build.api :as b])

(b/build "src"
  {:output-dir "out"
   :output-to "out/main.js"
   :optimizations :none
   :main 'example.core
   :install-deps true
   :npm-deps {:react "15.6.1"
              :react-dom "15.6.1"}})
reference here and here and and here

dominicm11:08:51

It's nothing special. It's just a clojure program that can be run.

Lone Ranger11:08:30

Maybe an intermediate step on the way to tools-deps?

dominicm11:08:44

No. tools-deps doesn't care abut build tools at all.

dominicm11:08:17

To run their example, back in 2017 you did this: java -cp ls ../../lib/*.jar | paste -sd ":" -`:../../src/main/cljs:../../src/main/clojure:src clojure.main build.clj` with tools-deps you can do this though: clojure build.clj

Lone Ranger11:08:29

2017 was rough 😬

dominicm11:08:01

probably why so many used lein

Lone Ranger11:08:02

Is there a place in deps.edn where we put license/version info or does that go somewhere else now?

dominicm11:08:46

somewhere else. pom.xml like before would be fine I think.

dominicm15:08:39

@alexmiller in tools.deps.alpha.reader, is it worth having the user-deps locator as a separate function? In pack the issue has been raised to include part of the user deps.edn which seems acceptable. That part is just for including maven repo settings which are user-local.

dominicm15:08:16

will open a jira