-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
86 lines (78 loc) · 3.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
79
80
81
82
83
84
85
86
(defproject tradeshift-task "0.0.0"
:description "Tradeshift task"
:url "https://github.com/flexiana/tradeshift-task"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.9.0"]
;; Duct
[duct/core "0.6.2"]
[duct/module.logging "0.3.1"]
[duct/module.web "0.6.4"]
[duct.module.bidi "0.5.0"]
;; HTTP
[ring/ring-json "0.4.0"]
;; Utils
[funcool/struct "1.3.0"]
[hiccup "1.0.5"]
;; Frontend
[org.clojure/clojurescript "1.10.339"]
[reagent "0.8.1"]]
:plugins [[duct/lein-duct "0.10.6"]
[lein-kibit "0.1.6"]
[lein-cljsbuild "1.1.6"]]
:clean-targets ^{:protect false} ["resources/tradeshift_task/public/js" :target-path]
:main ^:skip-aot tradeshift-task.main
:uberjar-name "application.jar"
:uberjar {:aot :all}
:resource-paths ["resources" "target/resources"]
:prep-tasks ["javac" "compile" ["run" ":duct/compiler"]]
:source-paths ["src/clj" "src/cljc"]
:eastwood {:source-paths ["src/clj" "src/cljc"]}
:profiles
{:dev [:project/dev :profiles/dev]
:repl {:prep-tasks ^:replace ["javac" "compile"]
:repl-options {:init-ns user}}
:uberjar {:aot :all}
:profiles/dev {}
:project/dev {:source-paths ["dev/src"]
:resource-paths ["dev/resources"]
:dependencies [[integrant/repl "0.3.1"]
[eftest "0.5.2"]
[figwheel "0.5.16"]
[figwheel-sidecar "0.5.16"]
[binaryage/devtools "0.9.10"]]
:plugins [[lein-cloverage "1.0.10"]
[jonase/eastwood "0.2.5"]
[lein-kibit "0.1.6"]
[venantius/ultra "0.5.2"]
[lein-ancient "0.6.15"]]}}
:cljsbuild
{:builds
[{:id "dev"
:source-paths ["src/cljc" "src/cljs" "dev/src"]
:compiler {:main dev.client
:output-to "resources/tradeshift_task/public/js/main.js"
:output-dir "resources/tradeshift_task/public/js/out"
:asset-path "js/out"
:source-map-timestamp true
:preloads [devtools.preload]
:external-config {:devtools/config {:features-to-install :all}}}}
{:id "min"
:source-paths ["src/cljc" "src/cljs"]
:compiler {:main tradeshift_task.main
:output-to "resources/tradeshift_task/public/js/main.js"
:output-dir "resources/tradeshift_task/public/js/out-min"
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false
:parallel-build true}
:warning-handlers
[(fn [warning-type env extra]
(when (warning-type cljs.analyzer/*cljs-warnings*)
(when-let [s (cljs.analyzer/error-message warning-type extra)]
(binding [*out* *err*]
(println "WARNING:" (cljs.analyzer/message env s)))
(System/exit 1))))]}]}
:aliases {"min-app" ["do" "clean," "cljsbuild" "once" "min"]
"coverage" ["cloverage"
"--fail-threshold" "90"
"-e" "dev|user|local|tradeshift-task.main"]})