-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
107 lines (87 loc) · 4.54 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
(defproject datanl "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.764"
:exclusions [com.google.javascript/closure-compiler-unshaded
org.clojure/google-closure-library
org.clojure/google-closure-library-third-party]]
[thheller/shadow-cljs "2.9.3"]
[reagent "0.10.0"]
[re-frame "0.12.0"]
[day8.re-frame/tracing "0.5.5"]
[garden "1.3.10"]
[ns-tracker "0.4.0"]
[compojure "1.6.1"]
[yogthos/config "1.1.7"]
[ring "1.8.1"]
[cljs-ajax "0.8.0"]
[stylefy "2.2.1"]]
:plugins [[lein-shadow "0.2.0"]
[lein-garden "0.3.0"]
[lein-shell "0.5.0"]
[lein-ring "0.12.5"]]
:min-lein-version "2.9.0"
:jvm-opts ["-Xmx1G"]
:source-paths ["src/clj" "src/cljs"]
:test-paths ["test/cljs"]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"
"test/js"
"resources/public/css"]
:ring {:handler datanl.handler/sandler}
:garden {:builds [{:id "screen"
:source-paths ["src/clj"]
:stylesheet datanl.css/screen
:compiler {:output-to "resources/public/css/screen.css"
:pretty-print? true}}]}
:shell {:commands {"open" {:windows ["cmd" "/c" "start"]
:macosx "open"
:linux "xdg-open"}}}
:shadow-cljs {:nrepl {:port 8777}
:builds {:app {:target :browser
:output-dir "resources/public/js/compiled"
:asset-path "/js/compiled"
:modules {:app {:init-fn datanl.core/init
:preloads [devtools.preload
day8.re-frame-10x.preload]}}
:dev {:compiler-options {:closure-defines {re-frame.trace.trace-enabled? true
day8.re-frame.tracing.trace-enabled? true}}}
:release {:build-options
{:ns-aliases
{day8.re-frame.tracing day8.re-frame.tracing-stubs}}}
:devtools {:http-root "resources/public"
:http-port 8280
:http-handler datanl.handler/dev-handler}}
:browser-test
{:target :browser-test
:ns-regexp "-test$"
:runner-ns shadow.test.browser
:test-dir "target/browser-test"
:devtools {:http-root "target/browser-test"
:http-port 8290}}
:karma-test
{:target :karma
:ns-regexp "-test$"
:output-to "target/karma-test.js"}}}
:aliases {"dev" ["with-profile" "dev" "do"
["shadow" "watch" "app"]]
"prod" ["with-profile" "prod" "do"
["shadow" "release" "app"]]
"build-report" ["with-profile" "prod" "do"
["shadow" "run" "shadow.cljs.build-report" "app" "target/build-report.html"]
["shell" "open" "target/build-report.html"]]
"karma" ["with-profile" "prod" "do"
["shadow" "compile" "karma-test"]
["shell" "karma" "start" "--single-run" "--reporters" "junit,dots"]]}
:profiles
{:dev
{:dependencies [[binaryage/devtools "1.0.0"]
[day8.re-frame/re-frame-10x "0.6.5"]
[javax.servlet/servlet-api "2.5"]]
:source-paths ["dev"]}
:prod {}
:uberjar {:source-paths ["env/prod/clj"]
:omit-source true
:main datanl.server
:aot [datanl.server]
:uberjar-name "datanl.jar"
:prep-tasks ["compile" ["prod"]["garden" "once"]]}}
:prep-tasks [["garden" "once"]])