diff options
Diffstat (limited to 'challenge-117/tyler-wardhaugh/clojure/bb.edn')
| -rw-r--r-- | challenge-117/tyler-wardhaugh/clojure/bb.edn | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/challenge-117/tyler-wardhaugh/clojure/bb.edn b/challenge-117/tyler-wardhaugh/clojure/bb.edn index 6b36f27eb2..d6814eab4a 100644 --- a/challenge-117/tyler-wardhaugh/clojure/bb.edn +++ b/challenge-117/tyler-wardhaugh/clojure/bb.edn @@ -1,6 +1,6 @@ { :paths ["src"] - :deps {org.clojure/math.numeric-tower {:mvn/version "0.0.4"}} + :deps {} :tasks { @@ -30,9 +30,35 @@ (let [bb-cmd (format "bb -m %s " (get-task-ns task))] (shell (apply str bb-cmd args))))) + clean {:doc "Clean out temporary files" + :task (run! fs/delete-tree [".nrepl-port" ".cpcache" ".lsp"])} + + generate-pom {:doc "Generate POM file" + :task (clojure "-X:deps mvn-pom")} + + generate-jar {:doc "Generate JAR file" + :depends [generate-pom] + :task (clojure "-X:jar")} + + publish {:doc "Publish branch via git-push to REPO (default: origin)" + :requires ([clojure.string :as str] + [babashka.process :as p :refer [process]]) + :task (let [repo (or (first *command-line-args*) "origin") + current-branch (-> (p/$ git branch --show-current) + p/check + :out + slurp + str/trim-newline) + cmd '[git push --force-with-lease --set-upstream] + args [repo current-branch]] + (-> (process (concat cmd args) {:inherit true}) + p/check))} + test {:doc "Run tests" :task (clojure "-M:test:runner")} + c**** {:doc "CHALLENGE TASKS"} + task-1 {:doc "Run Task 1 (via clojure)" :task (run-task :t1 *command-line-args*)} @@ -59,20 +85,5 @@ (println "\nTask 2:") (run 'task-2-bb))} - - publish {:doc "Publish branch via git-push to REPO (default: origin)" - :requires ([clojure.string :as str] - [babashka.process :as p :refer [process]]) - :task (let [repo (or (first *command-line-args*) "origin") - current-branch (-> (p/$ git branch --show-current) - p/check - :out - slurp - str/trim-newline) - cmd '[git push --force-with-lease --set-upstream] - args [repo current-branch]] - (-> (process (concat cmd args) {:inherit true}) - p/check))} - } } |
