-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.clj
More file actions
119 lines (111 loc) · 4.7 KB
/
project.clj
File metadata and controls
119 lines (111 loc) · 4.7 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
(def compiler-defaults
{:install-deps true
:parallel-build true
:static-fns true
;; :pseudo-names true
;; :pretty-print true
;; :infer-externs true
:externs ["log_utils_externs.js"]})
(defn make-build-conf [id target-kw build-type-kw opt-level main]
(let [build-type-str (name build-type-kw)
target-str (if target-kw
(name target-kw)
"")
node? (= :node target-kw)
source-paths (case build-type-kw
:build ["src"]
:test ["src" "test"])
build-name (str target-str "_" build-type-str "_" (name opt-level))
output-name (case build-type-kw
:build "main.js"
:test "test_main.js")
output-dir (str "target/" build-type-str "/" build-name)
output-to (str output-dir "/" output-name)
source-map (if (= :none opt-level)
true
(str output-dir "/map.js.map"))
compiler (cond-> compiler-defaults
true (assoc :optimizations opt-level
:output-to output-to
:output-dir output-dir
:source-map source-map)
main (assoc :main main)
node? (assoc :target :nodejs))
node-test? (and node? (= :test build-type-kw))]
(cond-> {:id id
:source-paths source-paths
:compiler compiler}
node-test? (assoc :notify-command ["node" output-to]))))
(defproject deercreeklabs/log-utils "0.2.5-SNAPSHOT"
:description "A logging and debug library for Clojure and ClojureScript."
:url "http://www.deercreeklabs.com"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:lein-release {:scm :git
:deploy-via :clojars}
;; TODO: Figure out why chrome-test fails with this set
:pedantic? :abort
:profiles
{:dev
{:global-vars {*warn-on-reflection* true}
:repl-options {:init-ns user}
:plugins
[[lein-ancient "0.6.15"]
[lein-cljsbuild "1.1.7" :exclusions [org.clojure/clojure]]
[lein-cloverage "1.0.13" :exclusions [fipp org.clojure/clojure]]
[lein-doo "0.1.11"
:exclusions [org.clojure/clojure org.clojure/clojurescript]]
[lein-npm "0.6.2" :exclusions [com.fasterxml.jackson.core/jackson-core]]
;; Because of confusion with a defunct project also called
;; lein-release, we exclude lein-release from lein-ancient.
[lein-release "1.0.9" :upgrade false :exclusions [org.clojure/clojure]]]
:dependencies
[[doo "0.1.11"]
[org.clojure/tools.namespace "0.2.11"]]}}
:npm {:devDependencies [[karma "1.7.1"]
[karma-chrome-launcher "2.2.0"]
[karma-cljs-test "0.1.0"]
[karma-firefox-launcher "1.0.1"]
[source-map-support "0.4.17"]]}
:dependencies
[[clj-time "0.15.1"]
[com.andrewmcveigh/cljs-time "0.5.2"]
[com.taoensso/timbre "4.10.0"]
[mvxcvi/puget "1.1.0" :exclusions [org.clojure/core.rrb-vector]]
[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.439"
:exclusions [com.google.errorprone/error_prone_annotations
com.google.code.findbugs/jsr305]]
[prismatic/schema "1.1.9"]
[quantum/org.clojure.core.rrb-vector "0.0.12"]]
:cljsbuild
{:builds
[~(make-build-conf "node-test-none" :node :test :none
"deercreeklabs.node-test-runner")
~(make-build-conf "node-test-simple" :node :test :simple
"deercreeklabs.node-test-runner")
~(make-build-conf "node-test-adv" :node :test :advanced
"deercreeklabs.node-test-runner")
~(make-build-conf "doo-test-none" :doo :test :none
"deercreeklabs.doo-test-runner")
~(make-build-conf "doo-test-simple" :doo :test :simple
"deercreeklabs.doo-test-runner")
~(make-build-conf "doo-test-adv" :doo :test :advanced
"deercreeklabs.doo-test-runner")
~(make-build-conf "build-adv" nil :build :advanced nil)]}
:aliases
{"auto-test-cljs" ["do"
"clean,"
"cljsbuild" "auto" "node-test-none"]
"auto-test-cljs-adv" ["do"
"clean,"
"cljsbuild" "auto" "node-test-adv"]
"auto-test-cljs-simple" ["do"
"clean,"
"cljsbuild" "auto" "node-test-simple"]
"build-adv" ["do"
"clean,"
"cljsbuild" "once" "build-adv"]
"chrome-test" ["do"
"clean,"
"doo" "chrome" "doo-test-adv"]})