-
Notifications
You must be signed in to change notification settings - Fork 16
/
project.clj
49 lines (49 loc) · 2.77 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
(defproject metosin/schema-tools "0.13.1"
:description "Common utilities for Prismatic Schema"
:url "https://github.com/metosin/schema-tools"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v20.html"}
:dependencies [[prismatic/schema "1.1.12"]]
:plugins [[funcool/codeina "0.5.0"]
[lein-doo "0.1.11"]]
:test-paths ["test/clj" "test/cljc"]
:codeina {:target "doc"
:src-uri "http://github.com/metosin/schema-tools/blob/master/"
:src-uri-prefix "#L"}
:deploy-repositories [["releases" {:url "https://repo.clojars.org/"
:sign-releases false}]]
:profiles {:dev {:plugins [[jonase/eastwood "0.3.7"]]
:dependencies [[criterium "0.4.6"]
[org.clojure/clojure "1.10.2"]
[org.clojure/clojurescript "1.10.773"]]}
:1.8 {:dependencies [[org.clojure/clojure "1.8.0"]]}
:1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]}}
:aliases {"all" ["with-profile" "dev:dev,1.8:dev,1.9"]
"all-cljs" ["with-profile" "dev"]
"test-clj" ["all" "do" ["test"] ["check"]]
"test-cljs" ["all-cljs" "do" ["test-node"] ["test-chrome"] ["test-advanced"]]
"test-chrome" ["doo" "chrome-headless" "test" "once"]
"test-advanced" ["doo" "chrome-headless" "advanced-test" "once"]
"test-node" ["doo" "node" "node-test" "once"]}
:doo {:paths {:karma "npx karma"}}
:cljsbuild {:builds [{:id "test"
:source-paths ["src" "test/cljc" "test/cljs"]
:compiler {:output-to "target/out/test.js"
:output-dir "target/out"
:main schema-tools.doo-runner
:optimizations :none}}
{:id "advanced-test"
:source-paths ["src" "test/cljc" "test/cljs"]
:compiler {:output-to "target/advanced_out/test.js"
:output-dir "target/advanced_out"
:main schema-tools.doo-runner
:optimizations :advanced}}
;; 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 schema-tools.doo-runner
:optimizations :none
:target :nodejs}}]})