Add reflection script

This commit is contained in:
Michiel Borkent 2020-03-02 14:05:32 +01:00
parent ae6d0bcda6
commit a81b7a9737

6
script/reflection.clj Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bb
(require '[clojure.java.io :as io] '[clojure.string :as str] '[clojure.java.shell :refer [sh]])
(def version (str/trim (slurp (io/file "resources" "BABASHKA_VERSION"))))
(sh "lein" "with-profiles" "+reflection" "run")
(io/copy (io/file "reflection.json") (io/file (str "babashka-" version "-reflection.json")))