-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
186 lines (176 loc) · 8.95 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
(defproject madek "0.4.0"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "GPL"
:url "https://de.wikipedia.org/wiki/GNU_General_Public_License"}
:dependencies [
[camel-snake-kebab "0.4.0"]
[cljs-http "0.1.43"]
[cljsjs/moment "2.17.1-0"]
[com.lucasbradstreet/cljs-uuid-utils "1.0.2"]
[com.taoensso/sente "1.11.0"]
[compojure "1.6.0"]
[environ "1.1.0"]
[fipp "0.6.9"]
[hiccup "1.0.5"]
[inflections "0.13.0"]
[json-roa_clj-client "0.2.1"]
[log4j/log4j "1.2.17" :exclusions [javax.mail/mail javax.jms/jms com.sun.jdmk/jmxtools com.sun.jmx/jmxri]]
[logbug "4.2.2"]
[org.apache.commons/commons-lang3 "3.5"]
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.671" :exclusions [org.apache.ant/ant]]
[org.clojure/core.async "0.3.442"]
[org.clojure/data.codec "0.1.0"]
[org.immutant/web "2.1.6" :exclusions [ch.qos.logback/logback-classic]]
[org.slf4j/slf4j-log4j12 "1.7.25"]
[reagent "0.6.1"]
[ring "1.6.0"]
[ring-undertow-adapter "0.2.2"]
[ring/ring-core "1.6.0"]
[ring/ring-defaults "0.3.0"]
[ring/ring-json "0.4.0"]
[secretary "1.2.3"]
[timothypratley/patchin "0.3.5"]
[venantius/accountant "0.2.0" :exclusions [org.clojure/tools.reader]]
; DON'T REMOVE THIS the clojurescript stuff depends on this version
; check and upgrade it when updating clojurescript
[com.google.guava/guava "21.0"]
]
; jdk 9 needs ["--add-modules" "java.xml.bind"]
:jvm-opts #=(eval (if (re-matches #"^(9|10)\..*" (System/getProperty "java.version"))
["--add-modules" "java.xml.bind"]
[]))
:plugins [
[lein-cljsbuild "1.1.5"]
[lein-environ "1.0.2"]
[lein-externs "0.1.6"]
[lein-libdir "0.1.1"]
[lein-shell "0.5.0"]
]
:source-paths ["jvm_main/src"]
:profiles {:dev {:dependencies [[figwheel "0.5.10"]]
:env {:dev true}
:plugins [[lein-figwheel "0.5.10" :exclusions [org.clojure/core.cache]]
[lein-sassy "1.0.7"]]
:repl-options {:init-ns madek.app.server.main}
:source-paths ["jvm_main/src", "electron_front/src/dev"]
:resource-paths["jvm_main/resources/dev"]
}
:prod {}
:uberjar {
:prep-tasks ["compile"]
:source-paths ["jvm_main/src"]
:resource-paths["jvm_main/resources/prod"]
:env {:production true}
:uberjar-name "../app/prod/jvm-main.jar"
:aot [madek.app.server.main]
:jar true
:main madek.app.server.main
}
}
:aliases {"descjop-help" ["new" "descjop" "help"]
"descjop-version" ["new" "descjop" "version"]
"descjop-init" ["do"
["shell" "npm" "install"]
["shell" "node_modules/grunt/bin/grunt" "download-electron"]]
"descjop-init-win" ["do"
["shell" "cmd.exe" "/c" "npm" "install"]
["shell" "cmd.exe" "/c" "grunt" "download-electron"]]
"descjop-figwheel" ["trampoline" "figwheel" "electron-front-dev"]
"descjop-once" ["do"
["cljsbuild" "once" "electron-main-dev"]
["cljsbuild" "once" "electron-front-dev"]
["cljsbuild" "once" "electron-main-prod"]
["cljsbuild" "once" "electron-front-prod"]]
"descjop-once-dev" ["do"
["cljsbuild" "once" "electron-main-dev"]
["cljsbuild" "once" "electron-front-dev"]]
"descjop-once-prod" ["do"
["cljsbuild" "once" "electron-main-prod"]
["cljsbuild" "once" "electron-front-prod"]]
;; electron packager for production
"descjop-uberapp-osx" ["shell" "electron-packager" "./app/prod" "madek-exporter" "--platform=darwin" "--arch=x64" "--electron-version=1.6.0"]
"descjop-uberapp-app-store" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "madek-exporter" "--platform=mas" "--arch=x64" "--electron-version=1.6.0"]
"descjop-uberapp-linux" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "madek-exporter" "--platform=linux" "--arch=x64" "--electron-version=1.6.0"]
"descjop-uberapp-win64" ["shell" "electron-packager" "./app/prod" "madek-exporter" "--platform=win32" "--arch=x64" "--electron-version=1.6.0"]
"descjop-uberapp-win32" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "madek-exporter" "--platform=win32" "--arch=ia32" "--electron-version=1.6.0"]
}
;:hooks [leiningen.cljsbuild]
:cljsbuild {:builds
{:electron-main-dev
{:source-paths ["electron_main/src/all" "electron_main/src/dev"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/dev/js/main.js"
:externs ["app/dev/js/main_externs.js"
"node_modules/closurecompiler-externs/path.js"
"node_modules/closurecompiler-externs/process.js"
"js-yaml_externs.js"]
:warnings true
:elide-asserts true
:target :nodejs
:output-dir "app/dev/js/out_main"
:source-map true
:optimizations :none
:main "madek.app.main.main"
:pretty-print true
:output-wrapper true}}
:electron-main-prod
{:source-paths ["electron_main/src/all" "electron_main/src/prod"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/prod/js/main.js"
:externs ["app/prod/js/main_externs.js"
"node_modules/closurecompiler-externs/path.js"
"node_modules/closurecompiler-externs/process.js"]
:warnings true
:elide-asserts true
:target :nodejs
:output-dir "app/prod/js/out_main"
:optimizations :advanced
:source-map "app/prod/js/main.js.map"
:pretty-print true
:output-wrapper true}}
:electron-front-dev
{:source-paths ["electron_front/src/all" "electron_front/src/dev"]
:incremental true
;:figwheel {:on-jsload madek.main/init!}
:jar true
:assert true
:compiler {:output-to "app/dev/js/front.js"
:externs ["app/dev/js/front_externs.js"]
:warnings true
:elide-asserts true
:optimizations :none
:main "madek.app.front.init"
:output-dir "app/dev/js/out_front"
:asset-path "js/out_front"
:source-map true
:pretty-print true
:output-wrapper true}}
:electron-front-prod
{:source-paths ["electron_front/src/all" "electron_front/src/prod"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/prod/js/front.js"
:externs ["app/prod/js/front_externs.js"]
:warnings true
:elide-asserts true
:output-dir "app/prod/js/out_front"
:optimizations :advanced
:source-map "app/prod/js/front.js.map"
:pretty-print true
:output-wrapper true}}
:uberjar {
:source-paths ["jvm_main/src"]
:jar false
:compiler {}
}
}}
:figwheel {:http-server-root "public"
:ring-handler madek.app.front.figwheel-middleware/app
:server-port 8384})