diff options
| author | Tyler Wardhaugh <tyler.wardhaugh@gmail.com> | 2022-01-17 16:10:20 -0800 |
|---|---|---|
| committer | Tyler Wardhaugh <tyler.wardhaugh@gmail.com> | 2022-01-17 16:10:20 -0800 |
| commit | 372f5a0356160acd39e64dba3aafeec710eb7653 (patch) | |
| tree | 47488444143d5735891dd523d4bb2bc576876824 | |
| parent | 9c9cb3dcb25537525090902ca4b8d10ae17e8960 (diff) | |
| download | perlweeklychallenge-club-372f5a0356160acd39e64dba3aafeec710eb7653.tar.gz perlweeklychallenge-club-372f5a0356160acd39e64dba3aafeec710eb7653.tar.bz2 perlweeklychallenge-club-372f5a0356160acd39e64dba3aafeec710eb7653.zip | |
Ch148 (Clojure): prep for challenge
| -rw-r--r-- | challenge-148/tyler-wardhaugh/clojure/README.md | 4 | ||||
| -rw-r--r-- | challenge-148/tyler-wardhaugh/clojure/build.clj | 19 | ||||
| -rw-r--r-- | challenge-148/tyler-wardhaugh/clojure/deps.edn | 4 |
3 files changed, 23 insertions, 4 deletions
diff --git a/challenge-148/tyler-wardhaugh/clojure/README.md b/challenge-148/tyler-wardhaugh/clojure/README.md index 6d6c624fdc..5b17ca2536 100644 --- a/challenge-148/tyler-wardhaugh/clojure/README.md +++ b/challenge-148/tyler-wardhaugh/clojure/README.md @@ -1,6 +1,6 @@ -# c147 +# c148 -The Weekly Challenge — #147 — Tyler Wardhaugh +The Weekly Challenge — #148 — Tyler Wardhaugh ## Usage diff --git a/challenge-148/tyler-wardhaugh/clojure/build.clj b/challenge-148/tyler-wardhaugh/clojure/build.clj new file mode 100644 index 0000000000..09cad66424 --- /dev/null +++ b/challenge-148/tyler-wardhaugh/clojure/build.clj @@ -0,0 +1,19 @@ +(ns build + (:refer-clojure :exclude [test]) + (:require [org.corfield.build :as bb])) + +(def lib 'net.clojars.c148/c148) +(def version "0.1.0-SNAPSHOT") +(def main 'c148.c148) + +(defn test "Run the tests." [opts] + (bb/run-tests opts)) + +(def clean bb/clean) + +(defn ci "Run the CI pipeline of tests (and build the uberjar)." [opts] + (-> opts + (assoc :lib lib :version version :main main) + (bb/run-tests) + (bb/clean) + (bb/uber))) diff --git a/challenge-148/tyler-wardhaugh/clojure/deps.edn b/challenge-148/tyler-wardhaugh/clojure/deps.edn index ebc13b0949..a58ebaa80d 100644 --- a/challenge-148/tyler-wardhaugh/clojure/deps.edn +++ b/challenge-148/tyler-wardhaugh/clojure/deps.edn @@ -2,8 +2,8 @@ :deps {org.clojure/clojure {:mvn/version "1.11.0-alpha4"} com.hypirion/primes {:mvn/version "0.2.2"}} :aliases - {:t1 {:main-opts ["-m" "c147.t1"]} - :t2 {:main-opts ["-m" "c147.t2"]} + {:t1 {:main-opts ["-m" "c148.t1"]} + :t2 {:main-opts ["-m" "c148.t2"]} :build {:deps {io.github.seancorfield/build-clj {:git/tag "v0.6.3" :git/sha "9b8e09b" ;; since we're building an app uberjar, we do not |
