forked from status-im/status-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
160 lines (144 loc) · 9.72 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
(defproject status-desktop "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
[org.clojure/clojurescript "1.9.908"]
[org.clojure/core.async "0.3.443"]
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
[re-frame "0.10.1"]
[alandipert/storage-atom "2.0.1"]
[com.andrewmcveigh/cljs-time "0.5.0"]
[com.taoensso/timbre "4.10.0"]
[ring/ring-core "1.5.1"]
[figwheel "0.5.14"]
[hickory "0.7.1"]
[re-frisk-remote "0.5.3"]]
:plugins [[lein-re-frisk "0.5.5"]
[lein-cljsbuild "1.1.5"]
[lein-externs "0.1.6"]
[lein-shell "0.5.0"]
[lein-figwheel "0.5.14" :exclusions [org.clojure/core.cache]]]
:source-paths ["src_tools"]
:aliases {"descjop-help" ["new" "descjop" "help"]
"descjop-version" ["new" "descjop" "version"]
"descjop-init" ["do"
["shell" "npm" "install"]
["shell" "grunt" "download-electron"]]
"descjop-init-win" ["do"
["shell" "cmd.exe" "/c" "npm" "install"]
["shell" "cmd.exe" "/c" "grunt" "download-electron"]]
"descjop-externs" ["do"
["externs" "dev-main" "app/dev/js/externs.js"]
["externs" "dev-front" "app/dev/js/externs_front.js"]
["externs" "prod-main" "app/prod/js/externs.js"]
["externs" "prod-front" "app/prod/js/externs_front.js"]]
"descjop-externs-dev" ["do"
["externs" "dev-main" "app/dev/js/externs.js"]
["externs" "dev-front" "app/dev/js/externs_front.js"]]
"descjop-externs-prod" ["do"
["externs" "prod-main" "app/prod/js/externs.js"]
["externs" "prod-front" "app/prod/js/externs_front.js"]]
"descjop-figwheel" ["trampoline" "figwheel" "dev-front"]
"descjop-once" ["do"
["cljsbuild" "once" "dev-main"]
["cljsbuild" "once" "dev-front"]]
"descjop-once-dev" ["do"
["cljsbuild" "once" "dev-main"]
["cljsbuild" "once" "dev-front"]]
"descjop-once-prod" ["do"
["cljsbuild" "once" "prod-main"]
["cljsbuild" "once" "prod-front"]]
;; electron packager for production
"descjop-uberapp-osx" ["shell" "electron-packager" "./app/prod" "status-desktop" "--platform=darwin" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
"descjop-uberapp-app-store" ["shell" "electron-packager" "./app/prod" "status-desktop" "--platform=mas" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
"descjop-uberapp-linux" ["shell" "electron-packager" "./app/prod" "status-desktop" "--platform=linux" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
"descjop-uberapp-win64" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "status-desktop" "--platform=win32" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
"descjop-uberapp-win32" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "status-desktop" "--platform=win32" "--arch=ia32" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]}
:hooks [leiningen.cljsbuild]
:cljsbuild {:builds {:dev-main {:source-paths ["src"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/dev/js/cljsbuild-main.js"
:externs ["app/dev/js/externs.js"
"node_modules/closurecompiler-externs/path.js"
"node_modules/closurecompiler-externs/process.js"]
:warnings true
:elide-asserts true
:target :nodejs
;; no optimize compile (dev)
;;:optimizations :none
:output-dir "app/dev/js/out_main"
;; simple compile (dev)
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/dev/js/test.js.map"
:pretty-print true
:output-wrapper true}}
:dev-front {:source-paths ["src_front" "src_front_profile/dev"
"../status-react/src"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/dev/js/front.js"
:externs ["app/dev/js/externs_front.js"]
:warnings true
:elide-asserts true
;; :target :nodejs
;; no optimize compile (dev)
:optimizations :none
:output-dir "app/dev/js/out_front"
;; simple compile (dev)
;;:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/dev/js/test.js.map"
:pretty-print true
:output-wrapper true}}
:prod-main {:source-paths ["src"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/prod/js/cljsbuild-main.js"
:externs ["app/prod/js/externs.js"
"node_modules/closurecompiler-externs/path.js"
"node_modules/closurecompiler-externs/process.js"]
:warnings true
:elide-asserts true
:target :nodejs
;; no optimize compile (dev)
;;:optimizations :none
:output-dir "app/prod/js/out_main"
;; simple compile (dev)
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/prod/js/test.js.map"
:pretty-print true
:output-wrapper true}}
:prod-front {:source-paths ["src_front" "src_front_profile/prod"
"../status-react/src"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/prod/js/front.js"
:externs ["app/prod/js/externs_front.js"]
:warnings true
:elide-asserts true
;; :target :nodejs
;; no optimize compile (dev)
:optimizations :none
:output-dir "app/prod/js/out_front"
;; simple compile (dev)
;;:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/prod/js/test.js.map"
:pretty-print true
:output-wrapper true}}}}
:figwheel {:http-server-root "public"
:ring-handler figwheel-middleware/app
:server-port 3449})