-
Notifications
You must be signed in to change notification settings - Fork 94
/
project.clj
78 lines (73 loc) · 4.37 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
(defproject metosin/spec-tools "0.10.7"
:description "Clojure(Script) tools for clojure.spec"
:url "https://github.com/metosin/spec-tools"
:license {:name "Eclipse Public License", :url "https://www.eclipse.org/legal/epl-2.0/"}
:test-paths ["test/clj" "test/cljc"]
:deploy-repositories [["releases" {:url "https://repo.clojars.org/"
:sign-releases false
:username :env/CLOJARS_USER
:password :env/CLOJARS_DEPLOY_TOKEN}]]
:codox {:output-path "doc"
:source-uri "https://github.com/metosin/spec-tools/{version}/{filepath}#L{line}"
:metadata {:doc/format :markdown}}
:scm {:name "git"
:url "https://github.com/metosin/spec-tools"}
:dependencies [[org.clojure/spec.alpha "0.5.238"]]
:profiles {:dev {:plugins [[jonase/eastwood "1.4.2"]
[lein-tach "1.1.0"]
[lein-doo "0.1.11"]
[lein-cljsbuild "1.1.8"]
[lein-cloverage "1.2.4"]
[lein-codox "0.10.8"]
[lein-pprint "1.3.2"]]
:jvm-opts ^:replace ["-server"]
;:global-vars {*warn-on-reflection* true}
:dependencies [[org.clojure/clojure "1.11.3"]
[org.clojure/clojurescript "1.11.132"]
[criterium "0.4.6"]
[prismatic/schema "1.4.1"]
[org.clojure/test.check "1.1.1"]
[org.clojure/tools.namespace "1.5.0"]
[com.gfredericks/test.chuck "0.2.14"]
; com.bhauman/spell-spec library doesn't get any updates, so it has to be copied here
; under spec-tools.spell-spec namespace in order to fix its bugs.
; If the library gets updated with fixes it would be desirable to switch back to it.
;[com.bhauman/spell-spec "0.1.1"]
[expound "0.9.0"]
[metosin/muuntaja "0.6.10"]
[metosin/ring-swagger "1.0.0"]
[metosin/jsonista "0.3.8"]
[metosin/scjsv "0.6.2"]]}
:perf {:jvm-opts ^:replace ["-server"]}}
:aliases {"all" ["with-profile" "dev"]
"perf" ["with-profile" "default,dev,perf"]
"test-clj" ["all" "do" ["test"] ["check"]]
"test-browser" ["doo" "chrome-headless" "test"]
"test-advanced" ["doo" "chrome-headless" "advanced-test"]
"test-node" ["doo" "node" "node-test"]}
:doo {:paths {:karma "node_modules/karma-cli/bin/karma"}}
;; Below, :process-shim false is workaround for <https://github.com/bensu/doo/pull/141>
:cljsbuild {:builds [{:id "test"
:source-paths ["src" "test/cljc" "test/cljs"]
:compiler {:output-to "target/out/test.js"
:output-dir "target/out"
:main spec-tools.doo-runner
:optimizations :none
:process-shim false}}
{:id "advanced-test"
:source-paths ["src" "test/cljc" "test/cljs"]
:compiler {:output-to "target/advanced_out/test.js"
:output-dir "target/advanced_out"
:main spec-tools.doo-runner
:optimizations :advanced
:process-shim false}}
;; Node.js requires :target :nodejs, hence the separate
;; build configuration.
{:id "node-test"
:source-paths ["src" "test/cljc" "test/cljs"]
:compiler {:output-to "target/node_out/test.js"
:output-dir "target/node_out"
:main spec-tools.doo-runner
:optimizations :none
:target :nodejs
:process-shim false}}]})