-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
160 lines (150 loc) · 8.44 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 free-lunch "1.0.0"
:description "Free Lunch on the Ethereum blockchain"
:url "https://github.com/domkm/free-lunch"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[akiroz.re-frame/storage "0.1.2"]
[camel-snake-kebab "0.4.0"]
[cljs-web3 "0.19.0-0-10"]
[cljsjs/buffer "5.1.0-1"]
[cljsjs/d3 "4.12.0-0"]
[cljsjs/react-infinite "0.13.0-0"]
[com.andrewmcveigh/cljs-time "0.5.2"]
[com.taoensso/encore "2.92.0"]
[com.taoensso/timbre "4.10.0"]
[district0x/bignumber "1.0.3"]
[district0x/cljs-ipfs-native "0.0.5-SNAPSHOT"]
[district0x/cljs-solidity-sha3 "1.0.0"]
[district0x/district-cljs-utils "1.0.3"]
[district0x/district-encryption "1.0.0"]
[district0x/district-format "1.0.0"]
[district0x/district-format "1.0.1"]
[district0x/district-graphql-utils "1.0.5"]
[district0x/district-server-config "1.0.1"]
[district0x/district-server-db "1.0.3"]
[district0x/district-server-graphql "1.0.15"]
[district0x/district-server-logging "1.0.2"]
[district0x/district-server-middleware-logging "1.0.0"]
[district0x/district-server-smart-contracts "1.0.8"]
[district0x/district-server-web3 "1.0.1"]
[district0x/district-server-web3-watcher "1.0.2"]
[district0x/district-time "1.0.0"]
[district0x/district-ui-component-active-account "1.0.0"]
[district0x/district-ui-component-active-account-balance "1.0.0"]
[district0x/district-ui-component-form "0.1.10-SNAPSHOT"]
[district0x/district-ui-component-notification "1.0.0"]
[district0x/district-ui-component-tx-button "1.0.0"]
[district0x/district-ui-graphql "1.0.6"]
[district0x/district-ui-logging "1.0.1"]
[district0x/district-ui-notification "1.0.1"]
[district0x/district-ui-now "1.0.2"]
[district0x/district-ui-reagent-render "1.0.1"]
[district0x/district-ui-router "1.0.3"]
[district0x/district-ui-router-google-analytics "1.0.0"]
[district0x/district-ui-smart-contracts "1.0.5"]
[district0x/district-ui-web3 "1.0.1"]
[district0x/district-ui-web3-account-balances "1.0.2"]
[district0x/district-ui-web3-accounts "1.0.5"]
[district0x/district-ui-web3-balances "1.0.2"]
[district0x/district-ui-web3-sync-now "1.0.3"]
[district0x/district-ui-web3-tx "1.0.9"]
[district0x/district-ui-web3-tx-id "1.0.1"]
[district0x/district-ui-web3-tx-log "1.0.2"]
[district0x/district-ui-window-size "1.0.1"]
[district0x/district-web3-utils "1.0.2"]
[district0x/re-frame-ipfs-fx "0.0.2"]
[medley "1.0.0"]
[mount "0.1.12"]
[org.clojars.mmb90/cljs-cache "0.1.4"]
[org.clojure/clojurescript "1.10.238"]
[org.clojure/core.match "0.3.0-alpha4"]
[print-foo-cljs "2.0.3"]
[re-frame "0.10.5"]]
:exclusions [express-graphql
cljsjs/react-with-addons]
:plugins [[lein-auto "0.1.2"]
[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.16"]
[lein-shell "0.5.0"]
[lein-solc "1.0.1"]
[lein-doo "0.1.8"]
[lein-npm "0.6.2"]
[lein-pdo "0.1.1"]]
:npm {:dependencies [;; needed until v0.6.13 is officially released
[chalk "2.3.0"]
[express-graphql "./resources/libs/express-graphql-0.6.13.tgz"]
[graphql-tools "3.0.1"]
[graphql "0.13.1"]
[express "4.15.3"]
[cors "2.8.4"]
[graphql-fields "1.0.2"]
[solc "0.4.20"]
[source-map-support "0.5.3"]
[ws "4.0.0"]
;; this isn't required directly by free-lunch but 0.6.1 is broken and
;; district0x/district-server-web3 needs [ganache-core "2.0.2"] who also needs "ethereumjs-wallet": "~0.6.0"
;; https://github.com/ethereumjs/ethereumjs-wallet/issues/64
[ethereumjs-wallet "0.6.0"]]}
:solc {:src-path "resources/public/contracts/src"
:build-path "resources/public/contracts/build"
:solc-err-only true
:verbose false
:wc true
:contracts :all}
:source-paths ["src"]
:figwheel {:server-port 4598
:css-dirs ["resources/public/css"]
:repl-eval-timeout 30000}
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target" "server" "dev-server" "resources/public/js/compiled" "resources/public/contracts/build"]
:aliases {"clean-prod-server" ["shell" "rm" "-rf" "server"]
"build-prod-server" ["do" ["clean-prod-server"] ["cljsbuild" "once" "server"]]
"build-prod-ui" ["do" ["clean"] ["cljsbuild" "once" "ui"]]
"build-prod" ["pdo" ["build-prod-server"] ["build-prod-ui"]]}
:profiles {:dev {:dependencies [[org.clojure/clojure "1.9.0"]
[binaryage/devtools "0.9.10"]
[com.cemerick/piggieback "0.2.2"]
[figwheel-sidecar "0.5.16"]
[org.clojure/tools.reader "1.3.0"]
[re-frisk "0.5.3"]]
:source-paths ["dev" "src"]
:resource-paths ["resources"]}}
:cljsbuild {:builds [{:id "dev-server"
:source-paths ["src/free_lunch/server" "src/free_lunch/shared"]
:figwheel {:on-jsload "free-lunch.server.dev/on-jsload"}
:compiler {:main "free-lunch.server.dev"
:output-to "dev-server/free-lunch.js"
:output-dir "dev-server"
:target :nodejs
:optimizations :none
:closure-defines {goog.DEBUG true}
:source-map true}}
{:id "dev"
:source-paths ["src/free_lunch/ui" "src/free_lunch/shared"]
:figwheel {:on-jsload "district.ui.reagent-render/rerender"}
:compiler {:main "free-lunch.ui.core"
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:source-map-timestamp true
:preloads [print.foo.preloads.devtools
re-frisk.preload]
:closure-defines {goog.DEBUG true}
:external-config {:devtools/config {:features-to-install :all}}}}
{:id "server"
:source-paths ["src"]
:compiler {:main "free-lunch.server.core"
:output-to "server/free-lunch.js"
:output-dir "server"
:target :nodejs
:optimizations :simple
:source-map "server/free-lunch.js.map"
:closure-defines {goog.DEBUG false}
:pretty-print false}}
{:id "ui"
:source-paths ["src"]
:compiler {:main "free-lunch.ui.core"
:output-to "resources/public/js/compiled/app.js"
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false
:pseudo-names false}}]})