forked from metosin/spec-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
70 lines (67 loc) · 3.72 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
(defproject metosin/spec-tools "0.10.1"
:description "Clojure(Script) tools for clojure.spec"
:url "https://github.com/metosin/spec-tools"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo
:comments "same as Clojure"}
:test-paths ["test/clj" "test/cljc"]
:deploy-repositories [["releases" :clojars]]
: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.2.176"]]
:profiles {:dev {:plugins [[jonase/eastwood "0.3.5"]
[lein-tach "1.0.0"]
[lein-doo "0.1.11"]
[lein-cljsbuild "1.1.7"]
[lein-cloverage "1.1.1"]
[lein-codox "0.10.7"]]
:jvm-opts ^:replace ["-server"]
;:global-vars {*warn-on-reflection* true}
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.520"]
[criterium "0.4.5"]
[prismatic/schema "1.1.12"]
[org.clojure/test.check "0.10.0"]
[org.clojure/tools.namespace "0.3.1"]
[com.gfredericks/test.chuck "0.2.10"]
[com.bhauman/spell-spec "0.1.1"]
[expound "0.8.4"]
[metosin/ring-swagger "0.26.2"]
[metosin/muuntaja "0.6.4"]
[metosin/scjsv "0.5.0"]]}
:perf {:jvm-opts ^:replace ["-server"]}}
:aliases {"all" ["with-profile" "dev"]
"perf" ["with-profile" "default,dev,perf"]
"test-clj" ["all" "do" ["test"] ["check"]]
"test-phantom" ["doo" "phantom" "test"]
"test-advanced" ["doo" "phantom" "advanced-test"]
"test-node" ["doo" "node" "node-test"]}
;; 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}}]})