-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.clj
208 lines (181 loc) · 10.1 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
(defproject orgpad "0.1.0-SNAPSHOT"
:description "Orgpad - universal tool for thoughts managing and co-sharing."
:url "http://www.orgpad.org/"
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.520"]
[org.clojure/tools.deps.alpha "0.5.442"]
[org.clojure/core.async "0.4.490"]
[org.clojure/test.check "0.9.0"]
[datascript "0.18.2"]
[datascript-transit "0.3.0"
:exclusions [com.cognitect/transit-clj
com.cognitect/transit-cljs]]
[com.rpl/specter "1.1.2"]
;; [rum "0.9.1"] ;; local modified copy src/rum 0.10.8
[sablono "0.7.7"]
[com.cemerick/url "0.1.1"]
[cljs-ajax "0.7.3"]
[cljsjs/react "15.6.1-0"]
[cljsjs/react-dom "15.6.1-0"]
[cljsjs/react-sanfona "0.0.14-0"]
[cljsjs/react-tinymce "0.5.1-0"] ;; *
[cljsjs/react-tagsinput "3.13.5-0"] ;; *
[cljsjs/react-motion "0.3.1-0"] ;; *
[cljsjs/react-select "1.0.0-rc.3"]
[cljsjs/latlon-geohash "1.1.0-0"] ;; *
[doo "0.1.11"]
;; [org.clojure/data.avl "0.0.17"] ;; we have own fixed copy
[io.replikativ/superv.async "0.2.9"]
[com.cognitect/transit-cljs "0.8.256"]
[com.taoensso/sente "1.13.1"]
[com.taoensso/timbre "4.10.0"]]
:npm {:dependencies [;;["jupyter-js-services" "0.48.0"]
["jupyter-js-services" "0.21.1"]
["babel-polyfill" "6.23.0"]
;; ["mathjax" "2.7.2"]
["bezier-js" "2.2.5"]
["react-treebeard" "2.1.0"]
]}
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"] ;; needs update to lein 2.5.3 at least
[lein-less "1.7.5"]
[lein-localrepo "0.5.3"]
[lein-doo "0.1.11"]
[lein-npm "0.6.2"]
;;[lein-tools-deps "0.4.1"]
;;[lein-git-deps "0.0.1-SNAPSHOT"]
]
:hooks [leiningen.less leiningen.cljsbuild]
;;:git-dependencies [["https://github.com/tomby42/datascript"]]
;;:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
;;:lein-tools-deps/config {:config-files [:install :user :project]}
:source-paths ["src"]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target" "resources/test/js/compiled"]
:less {:source-paths ["src/orgpad/styles"]
:target-path "resources/public/css"}
:profiles {:dev
{:dependencies [[cider/piggieback "0.3.6"]
[org.clojure/tools.nrepl "0.2.13"]
[figwheel-sidecar "0.5.18"]
[binaryage/devtools "0.9.10"]]
}
:repl {:plugins [[cider/cider-nrepl "0.17.0"]] }}
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
:cljsbuild
{
:builds [{:id "dev"
:source-paths ["src" "env/dev"]
:figwheel {:websocket-host "localhost"
:on-jsload "orgpad.core.boot/on-js-reload" }
:compiler {:main orgpad.core.boot
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/orgpad.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true
:language-in :ecmascript5
;; :install-deps true
;; :npm-deps {:bezier-js "2.2.5"
;; :jupyter-js-services "0.21.1"
;; :react-treebeard "3.1.0"}
:externs ["node_modules/jupyter-js-services/dist/index.js"
"dev-resources/js/bezier.js"
"dev-resources/js/react-treebeard.js"]
:foreign-libs [{:file "node_modules/jupyter-js-services/dist/index.js"
:provides ["jupyter.services"]}
{:file "dev-resources/js/bezier.js"
:provides ["Bezier"]}
{:file "dev-resources/js/react-treebeard.js"
:provides ["treebeard"]}]
}}
{:id "test"
:source-paths ["src" "test" "env/dev"]
:compiler {:main orgpad.test
:output-to "resources/test/js/compiled/orgpad.js"
:output-dir "resources/test/js/compiled/out"
:asset-path "js/compiled/out"
:optimizations :whitespace
:pretty-print true
:language-in :ecmascript5
;; :install-deps true
;; :npm-deps {:bezier-js "2.2.5"}
:externs ["node_modules/babel-polyfill/dist/polyfill.js"
"node_modules/jupyter-js-services/dist/index.js"
"dev-resources/js/bezier.js"
"dev-resources/js/react-treebeard.js"]
:foreign-libs [{:file "node_modules/babel-polyfill/dist/polyfill.js"
:provides ["babel.polyfill"]},
{:file "node_modules/jupyter-js-services/dist/index.js"
:provides ["jupyter.services"]}
{:file "dev-resources/js/bezier.js"
:provides ["Bezier"]}
{:file "dev-resources/js/react-treebeard.js"
:provides ["treebeard"]}]
}}
{:id "prod"
:source-paths ["src" "env/prod"]
:compiler {:output-to "resources/public/js/compiled/orgpad.js"
:main orgpad.core.boot
:optimizations :advanced
:pretty-print false
:language-in :ecmascript5
:closure-warnings {:externs-validation :off :non-standard-jsdoc :off}
;; :install-deps true
;; :npm-deps {:bezier-js "2.2.5"}
:externs ["node_modules/jupyter-js-services/dist/index.js"
"dev-resources/js/bezier.js"
"dev-resources/js/react-treebeard.js"]
:foreign-libs [{:file "node_modules/jupyter-js-services/dist/index.js"
:provides ["jupyter.services"]}
{:file "dev-resources/js/bezier.js"
:provides ["Bezier"]}
{:file "dev-resources/js/react-treebeard.min.js"
:provides ["treebeard"]}]
}}
{:id "online"
:source-paths ["src" "env/online"]
:compiler {:output-to "resources/public/js/compiled/online/orgpad.js"
:output-dir "resources/public/js/compiled/online/out"
:main orgpad.core.boot
:optimizations :advanced
:pretty-print false
:language-in :ecmascript5
:closure-warnings {:externs-validation :off :non-standard-jsdoc :off}
:externs ["node_modules/jupyter-js-services/dist/index.js"
"dev-resources/js/bezier.js"
"dev-resources/js/react-treebeard.js"]
:foreign-libs [{:file "node_modules/jupyter-js-services/dist/index.js"
:provides ["jupyter.services"]}
{:file "dev-resources/js/bezier.js"
:provides ["Bezier"]}
{:file "dev-resources/js/react-treebeard.min.js"
:provides ["treebeard"]}]
}}]
:test-commands {"test" ["phantomjs"
"resources/test/test.js"
"resources/test/test.html"]}
}
:figwheel {
;; :http-server-root "public" ;; default and assumes "resources"
;; :server-port 3449 ;; default
;; :server-ip "127.0.0.1"
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process
;; :nrepl-port 7888
;; Server Ring Handler (optional)
;; if you want to embed a ring handler into the figwheel http-kit
;; server, this is for simple ring servers, if this
;; doesn't work for you just run your own server :)
;; :ring-handler hello_world.server/handler
;; To be able to open files in your editor from the heads up display
;; you will need to put a script on your path.
;; that script will have to take a file path and a line number
;; ie. in ~/bin/myfile-opener
;; #! /bin/sh
;; emacsclient -n +$2 $1
;;
;; :open-file-command "myfile-opener"
;; if you want to disable the REPL
;; :repl false
;; to configure a different figwheel logfile path
;; :server-logfile "tmp/logs/figwheel-logfile.log"
})